Function at 0x4b5960
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6e68
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, dword [esp + 0x70]
mov esi, ecx
push edi
push ebp
mov eax, dword [esi]
call dword [eax + 0x148]
mov ecx, dword [0x518c74]
mov ebx, eax
cmp ecx, esi
je 0x4b59c5
mov eax, dword [0x518c54]
test eax, eax
je 0x4b59c5
test ecx, ecx
mov dword [0x518c74], esi
je 0x4b59c5
mov eax, dword [ecx + 0x5c4]
mov dword [ecx + 0x5c4], 0xffffffff
push eax
call fcn.004b5560
test ebx, ebx
jge 0x4b5a25
or ebx, 0xffffffff
mov dword [esi + 0x5bc], ebx
mov eax, dword [0x518c54]
test eax, eax
je 0x4b5a12
mov eax, dword [esi + 0x578]
test eax, eax
jne 0x4b5a12
mov eax, dword [esi + 0x5c4]
mov dword [esi + 0x5c4], ebx
cmp eax, ebx
je 0x4b5a07
push eax
mov ecx, esi
call fcn.004b5560
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x164]
mov eax, dword [esp + 0x68]
push edi
push ebp
push eax
mov ecx, esi
call fcn.004af6c8
jmp 0x4b5e68
push ebx
mov ecx, esi
call fcn.004b5540
mov edi, eax
test edi, edi
je 0x4b5e68
mov eax, dword [0x518c70]
mov dword [0x518c58], 0
test eax, eax
je 0x4b5a6a
mov eax, dword [0x518c54]
test eax, eax
jne 0x4b5a7c
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4b5a6a
mov dword [0x518c58], 1
mov eax, dword [0x518c54]
test eax, eax
jne 0x4b5a7c
mov eax, dword [0x518c58]
test eax, eax
je 0x4b5a8a
mov eax, dword [esi + 0x578]
test eax, eax
je 0x4b5b5c
push ebx
mov ecx, esi
mov dword [esi + 0x5bc], ebx
call fcn.004b6a30
test dword [edi + 0xc], 0x40000
je 0x4b5ac0
push 0x515748
mov ecx, edi
call fcn.004ab705
test eax, eax
jne 0x4b5ac0
mov dword [esi + 0x5bc], 0xffffffff
jmp 0x4b5e68
mov eax, dword [edi + 0xc]
push ebx
or eax, 0x20000
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.004b5560
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call ebp
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1b4]
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 0x1c]
test eax, eax
je 0x4b5b41
push 0
push edi
lea ecx, [esi + 0x5cc]
call fcn.004a47d2
test eax, eax
je 0x4b5b14
and dword [edi + 0xc], 0xfffdffff
mov edx, dword [esi]
or eax, 0xffffffff
push eax
mov ecx, esi
mov dword [esi + 0x5bc], eax
mov dword [esi + 0x5c0], eax
call dword [edx + 0x164]
push ebx
mov ecx, esi
call fcn.004b5560
mov eax, dword [esi + 0x1c]
push eax
call ebp
jmp 0x4b5e33
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a57a5
mov dword [esi + 0x698], eax
jmp 0x4b5e33
mov edx, dword [esi]
mov ebp, dword [esi + 0x5c4]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push ebx
mov dword [esi + 0x5c4], ebx
call dword [edx + 0x118]
cmp ebp, 0xffffffff
je 0x4b5b85
push ebp
mov ecx, esi
call fcn.004b5560
mov ecx, dword [esi + 0x5c4]
push ecx
mov ecx, esi
call fcn.004b5540
mov edx, dword [esp + 0x68]
mov dword [esi + 0x65c], eax
and edx, 8
mov ecx, eax
mov dword [esi + 0x668], edx
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4b5bd7
cmp ebp, 0xffffffff
mov dword [esi + 0x5c4], 0xffffffff
mov dword [esi + 0x65c], eax
je 0x4b5e68
push ebp
mov ecx, esi
call fcn.004b5560
jmp 0x4b5e68
push ebx
mov ecx, esi
call fcn.004b5560
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x65c]
mov edx, dword [ecx]
call dword [edx + 0x38]
test eax, eax
je 0x4b5c87
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x4b5c87
mov eax, dword [0x518c58]
test eax, eax
jne 0x4b5c87
mov ecx, dword [esi + 0x65c]
lea edi, [esi + 0x670]
mov dword [esi + 0x66c], 1
mov edx, edi
lea eax, [ecx + 0x30]
mov ebx, dword [ecx + 0x30]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
je 0x4b5c5f
push 2
push 2
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a57a5
mov dword [esi + 0x698], eax
mov ecx, dword [0x5184c4]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4b5e33
mov ecx, dword [esi + 0x65c]
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
je 0x4b5e29
mov ecx, dword [esi + 0x65c]
mov eax, dword [ecx]
call dword [eax + 0x6c]
test eax, eax
je 0x4b5e29
lea ecx, [esp + 0x28]
call fcn.004ccf82
lea ecx, [esp + 0x28]
xor ebp, ebp
push ecx
mov ecx, dword [esi + 0x65c]
mov dword [esp + 0x64], ebp
call fcn.00479710
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1b4]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [0x518aac], ebp
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x660], ecx
mov dword [esi + 0x664], edx
cmp dword [0x518c58], ebp
je 0x4b5d09
mov dword [0x518c54], 1
lea eax, [esp + 0x18]
push 0x518a68
push eax
push 3
lea ecx, [esp + 0x34]
call fcn.004cee14
push edi
mov ebp, eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b5d53
cmp dword [0x518c58], eax
je 0x4b5d3d
mov dword [0x518c54], eax
mov dword [0x518c58], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
call fcn.004ccfc9
jmp 0x4b5e68
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x518aac]
test eax, eax
je 0x4b5dee
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4b5dee
cmp ebp, 1
je 0x4b5dd2
mov eax, dword [esi + 0x65c]
test eax, eax
je 0x4b5dd2
mov ecx, dword [0x518aa8]
test ecx, ecx
jne 0x4b5dd2
push eax
mov ecx, esi
call fcn.004b48d0
push eax
mov ecx, esi
call fcn.004c52f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x144]
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4b5dff
mov eax, dword [esi + 0x65c]
test eax, eax
je 0x4b5dff
mov ecx, dword [esi + 0x1c]
add eax, 0x30
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4b5dff
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esi + 0x5c0], ebx
call dword [edx + 0x164]
or ecx, 0xffffffff
mov dword [esi + 0x65c], 0
mov eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esi + 0x660], eax
mov dword [esi + 0x664], ecx
lea ecx, [esp + 0x28]
call fcn.004ccfc9
jmp 0x4b5e33
mov dword [esi + 0x65c], 0
mov eax, dword [0x518c58]
test eax, eax
je 0x4b5e68
push 0
mov dword [0x518c58], 0
call fcn.004c5890
mov eax, dword [esi + 0x1c]
add esp, 4
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc