SHARE
TWEET

Untitled

a guest Jan 26th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
  3.  
  4. void FUN_0040144e(HWND param_1,undefined4 param_2,undefined4 param_3,int param_4)
  5.  
  6. {
  7.   FARPROC pFVar1;
  8.   int iVar2;
  9.   HMENU hMenu;
  10.   bool bVar3;
  11.   tagPOINT local_c;
  12.  
  13.   if (param_4 == 0x201) {
  14.     OutputDebugStringA(s_WM_LBUTTONDOWN_004050d8);
  15.     bVar3 = _DAT_0040310c == 0;
  16.     _DAT_0040310c = (uint)bVar3;
  17.     if (bVar3) {
  18.       OutputDebugStringA(s_LoadLibrary_004050ec);
  19.       DAT_00403000 = LoadLibraryA(s_SCHOOK_004050fc);
  20.       pFVar1 = GetProcAddress(DAT_00403000,(LPCSTR)0x2);
  21.       if (pFVar1 == (FARPROC)0x0) {
  22.         OutputDebugStringA(s_FreeLibrary1_00405104);
  23.         FreeLibrary(DAT_00403000);
  24.         _DAT_0040310c = 0;
  25.         MessageBoxA(param_1,s_GetProcAddress_Error!_00405114,(LPCSTR)0x0,0x10);
  26.       }
  27.       else {
  28.         iVar2 = (*pFVar1)(1);
  29.         if (iVar2 == 0) {
  30.           OutputDebugStringA(s_FreeLibrary2_0040512c);
  31.           FreeLibrary(DAT_00403000);
  32.           _DAT_0040310c = 0;
  33.           MessageBoxA(param_1,s_SetHookProc_Error!_0040513c,(LPCSTR)0x0,0x10);
  34.         }
  35.       }
  36.     }
  37.     else {
  38.       if (DAT_00403000 == (HMODULE)0x0) {
  39.         OutputDebugStringA(s_No_Operation!_004051ac);
  40.       }
  41.       else {
  42.         OutputDebugStringA(s_GetProcAddress2_00405150);
  43.         pFVar1 = GetProcAddress(DAT_00403000,(LPCSTR)0x2);
  44.         if (pFVar1 == (FARPROC)0x0) {
  45.           OutputDebugStringA(s_FreeLibrary3_00405164);
  46.           FreeLibrary(DAT_00403000);
  47.           _DAT_0040310c = 0;
  48.           MessageBoxA(param_1,s_GetProcAddress_Error!_00405174,(LPCSTR)0x0,0x10);
  49.         }
  50.         else {
  51.           iVar2 = (*pFVar1)(0);
  52.           if (iVar2 == 0) {
  53.             MessageBoxA(param_1,s_Unhook_Error!_0040518c,(LPCSTR)0x0,0x10);
  54.           }
  55.           OutputDebugStringA(s_FreeLibrary4_0040519c);
  56.           FreeLibrary(DAT_00403000);
  57.           DAT_00403000 = (HMODULE)0x0;
  58.         }
  59.       }
  60.     }
  61.   }
  62.   else {
  63.     if (param_4 == 0x204) {
  64.       OutputDebugStringA(s_WM_RBUTTONDOWN_004051bc);
  65.       GetCursorPos((LPPOINT)&local_c);
  66.       hMenu = CreatePopupMenu();
  67.       AppendMenuA(hMenu,0,0x321,&DAT_004051d0);
  68.       AppendMenuA(hMenu,0,0x322,&DAT_004051d8);
  69.       TrackPopupMenu(hMenu,2,local_c.x,local_c.y,0,param_1,(RECT *)0x0);
  70.     }
  71.     else {
  72.       OutputDebugStringA(s_MOUSE_DEFAULT!_004051e8);
  73.     }
  74.   }
  75.   FUN_00401326(param_1,1);
  76.   return;
  77. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top