Function at 0x486430
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a23b8
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
mov eax, dword [esi]
push edi
push ebp
call dword [eax + 0x1cc]
mov ecx, dword [0x4d1018]
cmp ecx, esi
mov ebx, eax
je 0x486495
mov eax, dword [0x4d0ff8]
test eax, eax
je 0x486495
test ecx, ecx
mov dword [0x4d1018], esi
je 0x486495
mov eax, dword [ecx + 0x5dc]
push eax
mov dword [ecx + 0x5dc], 0xffffffff
call fcn.00485930
test ebx, ebx
jge 0x4864f5
or ebx, 0xffffffff
mov dword [esi + 0x5d4], ebx
mov eax, dword [0x4d0ff8]
test eax, eax
je 0x4864e2
mov eax, dword [esi + 0x590]
test eax, eax
jne 0x4864e2
mov eax, dword [esi + 0x5dc]
cmp eax, ebx
mov dword [esi + 0x5dc], ebx
je 0x4864d7
push eax
mov ecx, esi
call fcn.00485930
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 + 0x1e8]
mov eax, dword [esp + 0x68]
push edi
push ebp
push eax
mov ecx, esi
call fcn.00481017
jmp 0x48692c
push ebx
mov ecx, esi
call fcn.00484dc0
mov edi, eax
test edi, edi
je 0x48692c
mov eax, dword [0x4d1014]
test eax, eax
mov dword [0x4d0ffc], 0
je 0x486539
mov eax, dword [0x4d0ff8]
test eax, eax
jne 0x48654b
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x486539
mov dword [0x4d0ffc], 1
mov eax, dword [0x4d0ff8]
test eax, eax
jne 0x48654b
mov eax, dword [0x4d0ffc]
test eax, eax
je 0x486559
mov eax, dword [esi + 0x590]
test eax, eax
je 0x48662b
push ebx
mov ecx, esi
mov dword [esi + 0x5d4], ebx
call fcn.00484e90
test dword [edi + 0xc], 0x40000
je 0x48658f
push 0x4cd464
mov ecx, edi
call fcn.0047921e
test eax, eax
jne 0x48658f
mov dword [esi + 0x5d4], 0xffffffff
jmp 0x48692c
mov eax, dword [edi + 0xc]
or eax, 0x20000
push ebx
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.00485930
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 + 0x238]
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 0x1c]
test eax, eax
je 0x486610
push 0
push edi
lea ecx, [esi + 0x5e4]
call fcn.0047205c
test eax, eax
je 0x4865e3
and dword [edi + 0xc], 0xfffdffff
mov edx, dword [esi]
or eax, 0xffffffff
push eax
mov ecx, esi
mov dword [esi + 0x5d4], eax
mov dword [esi + 0x5d8], eax
call dword [edx + 0x1e8]
push ebx
mov ecx, esi
call fcn.00485930
mov eax, dword [esi + 0x1c]
push eax
call ebp
jmp 0x4868f7
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004763c5
mov dword [esi + 0x6b0], eax
jmp 0x4868f7
mov ebp, dword [esi + 0x5dc]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, esi
mov dword [esi + 0x5dc], ebx
call dword [edx + 0x19c]
cmp ebp, 0xffffffff
je 0x486654
push ebp
mov ecx, esi
call fcn.00485930
mov ecx, dword [esi + 0x5dc]
push ecx
mov ecx, esi
call fcn.00484dc0
mov edx, dword [esp + 0x68]
and edx, 8
mov dword [esi + 0x674], eax
mov dword [esi + 0x680], edx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
test eax, eax
jne 0x4866a6
cmp ebp, 0xffffffff
mov dword [esi + 0x5dc], 0xffffffff
mov dword [esi + 0x674], eax
je 0x48692c
push ebp
mov ecx, esi
call fcn.00485930
jmp 0x48692c
push ebx
mov ecx, esi
call fcn.00485930
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x674]
mov edx, dword [ecx]
call dword [edx + 0x38]
test eax, eax
je 0x48674b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x48674b
mov eax, dword [0x4d0ffc]
test eax, eax
jne 0x48674b
mov ecx, dword [esi + 0x674]
mov dword [esi + 0x684], 1
lea eax, [ecx + 0x30]
mov ebx, dword [eax]
lea edi, [esi + 0x688]
mov edx, edi
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 0x48672d
push 2
push 2
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, esi
call fcn.0040526c
mov dword [esi + 0x6b0], eax
mov eax, dword [0x4d0f84]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4868f7
mov ecx, dword [esi + 0x674]
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
je 0x4868ed
mov ecx, dword [esi + 0x674]
mov eax, dword [ecx]
call dword [eax + 0x6c]
test eax, eax
je 0x4868ed
lea ecx, [esp + 0x28]
call fcn.0049a67f
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x674]
xor ebp, ebp
mov dword [esp + 0x64], ebp
call fcn.00447df0
mov eax, dword [edi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x238]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [0x4d10ac], ebp
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x678], ecx
mov dword [esi + 0x67c], edx
cmp dword [0x4d0ffc], ebp
je 0x4867cd
mov dword [0x4d0ff8], 1
push 0x4d1068
lea eax, [esp + 0x1c]
push eax
push 3
lea ecx, [esp + 0x34]
call fcn.0049bb67
push edi
mov ebp, eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x486817
cmp dword [0x4d0ffc], eax
je 0x486801
mov dword [0x4d0ff8], eax
mov dword [0x4d0ffc], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 0xffffffff
call fcn.0049a6aa
jmp 0x48692c
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 [0x4d10ac]
test eax, eax
je 0x4868b2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4868b2
cmp ebp, 1
je 0x486896
mov eax, dword [esi + 0x674]
test eax, eax
je 0x486896
mov ecx, dword [0x4d10a8]
test ecx, ecx
jne 0x486896
push eax
mov ecx, esi
call fcn.00485090
push eax
mov ecx, esi
call fcn.00496e40
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c8]
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4868c3
mov eax, dword [esi + 0x674]
test eax, eax
je 0x4868c3
mov ecx, dword [esi + 0x1c]
push 1
add eax, 0x30
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4868c3
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esi + 0x5d8], ebx
call dword [edx + 0x1e8]
or ecx, 0xffffffff
mov eax, ecx
mov dword [esi + 0x67c], ecx
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x28]
mov dword [esi + 0x674], 0
mov dword [esi + 0x678], eax
call fcn.0049a6aa
jmp 0x4868f7
mov dword [esi + 0x674], 0
mov eax, dword [0x4d0ffc]
test eax, eax
je 0x48692c
push 0
mov dword [0x4d0ffc], 0
call fcn.00492fe0
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