Function at 0x485018
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x51d4f5
call fcn.004fdf0c
mov esi, ecx
lea eax, [esi + 0x294]
cmp byte [eax], 0
je 0x485034
mov byte [eax], 0
cmp dword [esi + 0x328], 0
je 0x48537a
mov eax, dword [esi]
call dword [eax + 0x174]
push eax
mov ecx, 0x568484
call fcn.0049cc97
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x485068
cmp dword [0x568488], eax
jne 0x485068
call fcn.0040fd4b
mov eax, dword [esi + 0x324]
mov edi, dword [esi + 0x328]
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x36c]
mov ecx, esi
call fcn.00482a0a
mov ebx, eax
cmp dword [ebp + 8], edi
jne 0x4850b1
mov eax, edi
sub eax, 8
je 0x4852c6
dec eax
je 0x48514a
sub eax, 0xa
je 0x4850bd
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x35c]
mov ecx, esi
call fcn.0041340d
jmp 0x485388
push esi
call fcn.0040b438
mov edi, eax
pop ecx
test edi, edi
je 0x48513b
push edi
push 0x5280f8
call fcn.00419418
pop ecx
pop ecx
test eax, eax
je 0x4850e8
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1ec]
jmp 0x485133
push edi
push 0x527b8c
call fcn.00419418
pop ecx
pop ecx
test eax, eax
je 0x485106
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1cc]
jmp 0x485133
push edi
push 0x52ab8c
call fcn.00419418
pop ecx
pop ecx
test eax, eax
jne 0x485128
push edi
push 0x52a7fc
call fcn.00419418
pop ecx
pop ecx
test eax, eax
je 0x48513b
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1e4]
test eax, eax
je 0x4850b1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2b8]
jmp 0x4850b1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x48526f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x31c]
test eax, eax
je 0x48526f
mov ecx, dword [esi + 0x78]
xor edi, edi
push edi
call fcn.004479ed
cmp dword [esi + 0x2c4], edi
jne 0x485207
push 0xa
lea ecx, [ebp - 0x50]
call fcn.0046b07d
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00473fa9
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x4851f9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040b451
push dword [eax]
push 0x567d50
call fcn.00419418
mov edi, eax
mov eax, dword [edi]
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 0x10], edi
call dword [eax + 0x31c]
test eax, eax
je 0x4851f1
mov edi, dword [edi]
mov eax, dword [ebx]
push 0
push 0
mov ecx, ebx
add edi, 0x344
call dword [eax + 0x16c]
mov ecx, dword [ebp - 0x10]
push eax
push 1
call dword [edi]
cmp dword [ebp + 8], 0
jne 0x4851a6
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0046b0a5
jmp 0x48522e
mov ecx, dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x178]
push eax
push 0x53668c
call fcn.00419418
pop ecx
pop ecx
cmp eax, edi
je 0x48522e
push edi
mov ecx, eax
call fcn.004a2b7e
mov ecx, dword [esi + 0x78]
push 1
call fcn.004479ed
push dword [esi + 0x78]
push 0x52ea30
call fcn.00419418
pop ecx
pop ecx
cmp eax, edi
je 0x485257
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x150]
mov eax, dword [esi + 0x78]
push 0x181
push edi
push edi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x485388
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x485388
test ebx, ebx
je 0x485388
mov edi, dword [eax + 0x11c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x16c]
test edi, eax
je 0x485388
mov edi, dword [esi]
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
add edi, 0x344
call dword [eax + 0x16c]
push eax
xor eax, eax
cmp dword [esi + 0x2c4], eax
mov ecx, esi
sete al
push eax
call dword [edi]
jmp 0x485388
cmp dword [0x56dfe8], 0
je 0x485388
push 8
mov ecx, esi
call fcn.004849d2
mov edi, eax
test edi, edi
je 0x485388
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.004170f2
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00417133
mov dword [edi + 0x14], 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
inc eax
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0041907e
test eax, 0x400000
je 0x48534b
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
add ebx, eax
mov eax, dword [esi + 0x20]
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c0]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x485388
and dword [edi + 0x14], 0
push edi
mov ecx, esi
call fcn.00484591
jmp 0x485388
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447b47
call fcn.004fdfe4
ret 0xc