Function at 0x402410
Capabilities:
Swap mouse buttons
Terminate process

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00402270
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x40243e
push 0x5b
push ebp
push ebp
push ebp
push ebp
push 0x649e18
mov ecx, esi
call fcn.00596c4b
jmp 0x402526
mov ebx, dword [sym.imp.USER32.dll_SwapMouseButton]
push ebp
call ebx
mov edi, eax
cmp edi, ebp
je 0x402451
push 1
call ebx
push 5
mov ecx, esi
call fcn.00596c9a
push 0xb
push ebp
push ebp
push ebp
push ebp
push 0x649dd8
mov ecx, esi
call fcn.00596c4b
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x40], ebp
je 0x402488
mov ecx, dword [esi + 0x1c]
push 1
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esi + 0x44], ebp
je 0x402526
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x14], 0x18f
mov dword [esp + 0x18], 0x12b
call fcn.00401a00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, edi
mov ebx, dword [sym.imp.USER32.dll_mouse_event]
neg edx
sbb edx, edx
push ebp
and edx, 6
push ebp
push eax
add edx, 2
push ecx
push edx
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
neg edi
sbb edi, edi
push ebp
and edi, 0xc
push ebp
push eax
add edi, 4
push ecx
push edi
call ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push ebp
push ebp
push ebp
lea edx, [esp + 0x44]
push ebp
push edx
xor edi, edi
call ebx
test eax, eax
je 0x402526
call fcn.005b2355
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x5c]
mov eax, edi
inc edi
cmp eax, 0x3e8
jg 0x402526
push ebp
push ebp
push ebp
lea ecx, [esp + 0x44]
push ebp
push ecx
call ebx
test eax, eax
jne 0x4024fe
mov eax, dword [esi + 0x44]
mov dword [esi + 0xc4], ebp
cmp eax, 2
mov dword [esi + 0xc0], ebp
jl 0x402567
cmp eax, 4
jg 0x402567
lea edi, [esi + 0x1a10]
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
mov ecx, esi
call fcn.00401ab0
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esi + 0x1a18], edx
mov dword [esi + 0x1a1c], eax
jmp 0x40259c
cmp eax, 6
jne 0x40259c
mov ecx, dword [esi + 0x1a10]
mov edx, dword [esi + 0x1a14]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00401a00
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [esi + 0x74]
mov dword [esp + 0x10], ebp
cmp eax, ebp
mov dword [esp + 0x14], ebp
je 0x4025ed
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, 1
mov dword [esi + 0x68], edi
mov dword [0x63df6c], esi
mov eax, dword [esi + 0x1a28]
mov dword [esi + 0x64], ebp
cmp eax, ebp
je 0x40261a
push edi
mov ecx, esi
call fcn.00401b70
cmp dword [esi + 0x44], edi
jne 0x40264f
push 0x7f00
push ebp
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esi + 0x1a14]
mov ecx, dword [esi + 0x1a10]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x1a08], ebp
call fcn.00404810
jmp 0x402678
call fcn.005b2355
mov eax, dword [eax + 0xc]
xor edx, edx
mov dx, word [esi + 0x1a0c]
push edx
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebp
push ebp
mov ecx, esi
call fcn.004035d0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x70], ebp
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call fcn.005939c0
mov ecx, esi
call fcn.00596d03
cmp dword [esi + 0x3c], ebp
je 0x4026af
push 0x402b70
push 0x96
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x1a04], eax
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
call ebp
test eax, eax
je 0x402783
lea edx, [esp + 0x38]
push edx
call edi
lea eax, [esp + 0x38]
push eax
call ebx
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40278b
push 0
push 0x113
push 0x113
lea ecx, [esp + 0x44]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40272d
push 0x113
push 0x113
lea edx, [esp + 0x40]
push 0
push edx
call ebp
lea eax, [esp + 0x38]
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call ebx
call fcn.005b2355
mov eax, dword [eax + 4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x64]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
push 0
je 0x4028a8
push 0
push 0
lea eax, [esp + 0x44]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4026c1
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
call ebp
test eax, eax
jne 0x4026d6
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x1a04]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
xor ebp, ebp
cmp eax, ebp
je 0x4027a7
push eax
push ebp
call edi
mov eax, dword [esi + 0x1a00]
mov dword [esi + 0x1a04], ebp
cmp eax, ebp
je 0x4027ce
mov edx, dword [esi + 0x1c]
push 1
push edx
call edi
push 1
mov ecx, esi
mov dword [esi + 0x1a00], ebp
call fcn.00405240
cmp dword [esi + 0x64], ebp
je 0x4027dc
push ebp
push ebp
mov ecx, esi
call fcn.004035d0
push ebp
mov ecx, esi
call fcn.00401b70
cmp dword [esi + 0xb8], ebp
je 0x4028ad
cmp dword [esi + 0x6c], ebp
je 0x4028ad
mov eax, dword [esi + 0xcc]
cmp eax, ebp
je 0x4028ad
lea ecx, [esi + 0xd8]
mov edi, 1
cmp eax, edi
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
jle 0x40287b
mov ebp, dword [sym.imp.USER32.dll_UnionRect]
lea ebx, [esi + 0xf4]
mov edx, ebx
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x28]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xcc]
inc edi
add ebx, 0x1c
cmp edi, eax
jl 0x40283d
xor ebp, ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1a10], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x1a18], ecx
mov dword [esi + 0x1a14], eax
mov dword [esi + 0x1a1c], edx
jmp 0x402acd
call fcn.004f548a
mov eax, dword [esi + 0x44]
cmp eax, 1
jne 0x402923
lea eax, [esi + 0x4c]
mov edi, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [esp + 0x30], ebx
mov edi, dword [edi + 0xc]
mov dword [esi + 0x1a10], ecx
mov dword [esi + 0x1a14], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x1a18], ecx
mov dword [esi + 0x1a1c], eax
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x2c], edx
lea edx, [esi + 0x48]
mov dword [esp + 0x34], edi
lea ecx, [eax*8]
push edx
sub ecx, eax
inc eax
mov dword [esi + 0xcc], eax
lea ecx, [esi + ecx*4 + 0xd4]
call fcn.00401060
jmp 0x402acd
cmp eax, 7
jne 0x4029c5
lea ebx, [esi + 0x48]
push ebp
mov ecx, ebx
call fcn.00401300
mov eax, dword [esi + 0x1a2c]
mov ecx, dword [esi + 0x1a34]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
lea edi, [esi + 0x4c]
mov dword [esi + 0x5c], eax
push edi
push eax
call dword [sym.imp.GDI32.dll_GetRgnBox]
mov edx, edi
push ebx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebp, dword [edx + 8]
mov dword [esp + 0x34], ebp
mov edx, dword [edx + 0xc]
mov dword [esi + 0x1a10], eax
mov dword [esi + 0x1a14], ecx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esi + 0x1a18], eax
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ecx
lea edx, [eax*8]
mov dword [esi + 0x1a1c], edi
sub edx, eax
inc eax
mov dword [esi + 0xcc], eax
lea ecx, [esi + edx*4 + 0xd4]
call fcn.00401060
xor ebp, ebp
jmp 0x402acd
cmp eax, 6
jne 0x402a47
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x402a47
lea edi, [esi + 0x4c]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetRgnBox]
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
mov dword [esp + 0x30], ebx
mov edx, dword [edx + 0xc]
mov dword [esi + 0x1a10], eax
mov dword [esi + 0x1a14], ecx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esi + 0x1a18], eax
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
lea edx, [eax*8]
mov dword [esi + 0x1a1c], edi
sub edx, eax
inc eax
mov dword [esi + 0xcc], eax
lea eax, [esi + 0x48]
lea ecx, [esi + edx*4 + 0xd4]
push eax
call fcn.00401060
jmp 0x402acd
mov ecx, dword [esi + 0x1a10]
mov eax, dword [esi + 0x1a18]
cmp ecx, eax
jle 0x402a7d
mov edx, dword [esi + 0x1a18]
xor eax, ecx
xor edx, eax
mov dword [esi + 0x1a10], eax
mov ecx, dword [esi + 0x1a10]
mov eax, edx
xor ecx, eax
mov dword [esi + 0x1a18], edx
mov dword [esi + 0x1a10], ecx
mov ecx, dword [esi + 0x1a14]
mov eax, dword [esi + 0x1a1c]
cmp ecx, eax
jle 0x402ab3
mov edx, dword [esi + 0x1a1c]
xor eax, ecx
xor edx, eax
mov dword [esi + 0x1a14], eax
mov ecx, dword [esi + 0x1a14]
mov eax, edx
xor ecx, eax
mov dword [esi + 0x1a1c], edx
mov dword [esi + 0x1a14], ecx
mov ecx, dword [esi + 0x1a18]
mov eax, dword [esi + 0x1a1c]
inc ecx
inc eax
mov dword [esi + 0x1a18], ecx
mov dword [esi + 0x1a1c], eax
mov dword [0x63df6c], ebp
mov eax, dword [esi + 0x74]
cmp eax, ebp
mov dword [esi + 0x68], ebp
je 0x402b5b
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
sub eax, ebx
mov ebx, dword [esi + 0x1a10]
sub ecx, edi
mov edi, dword [esi + 0x1a14]
sub eax, edx
sub ecx, ebp
add ebx, eax
add edi, ecx
mov dword [esi + 0x1a10], ebx
mov dword [esi + 0x1a14], edi
mov edx, dword [esi + 0x1a18]
add edx, eax
mov eax, dword [esi + 0x1a1c]
add eax, ecx
mov dword [esi + 0x1a18], edx
mov dword [esi + 0x1a1c], eax
mov eax, dword [esi + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret