Function at 0x490197
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4f4ada
call fcn.004e6580
sub esp, 0x38
push esi
mov esi, ecx
call fcn.0048c6f5
test eax, eax
je 0x4903c5
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push edi
xor edi, edi
push 0xa0
mov dword [ebp - 0x18], edi
call ebx
test ax, ax
jl 0x4901d9
push 0xa1
call ebx
test ax, ax
jge 0x4901e0
mov dword [ebp - 0x18], 1
lea ecx, [esi + 0x164]
mov dword [ebp - 0x1c], edi
call fcn.0048bb66
mov ebx, 0x5129dc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov ecx, dword [esi + 0x14c]
mov dword [ebp - 4], edi
call fcn.0044f300
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4903a9
mov ecx, dword [esi + 0x14c]
lea eax, [ebp - 0x14]
push eax
call fcn.0044f314
push eax
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0048cfd7
mov edi, eax
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.0048c65c
test eax, eax
je 0x49026c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0043e703
push dword [edi + 4]
lea ecx, [esi + 0x164]
push dword [edi]
call fcn.0048f5fe
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x490273
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], 0
jne 0x49021b
xor edi, edi
cmp dword [ebp - 0x28], 1
jl 0x4903a9
cmp dword [ebp - 0x28], edi
jle 0x4902b3
push edi
lea ecx, [ebp - 0x30]
call fcn.004060c4
push dword [eax]
mov ecx, esi
call fcn.0048cfd7
push dword [eax + 4]
mov ecx, dword [esi + 0x124]
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x38]
inc edi
cmp edi, dword [ebp - 0x28]
jl 0x49028a
mov eax, dword [esi + 0x124]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x3c]
xor edi, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
xor ebx, ebx
cmp dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
je 0x490344
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00482aa5
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00411073
mov ebx, eax
test ebx, ebx
jle 0x490336
push edi
lea ecx, [ebp - 0x10]
call fcn.0048c7bc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x18]
push edx
push eax
push ecx
lea ecx, [esi + 0x164]
call fcn.0048e7b5
test eax, eax
je 0x490331
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
call fcn.0043e703
inc edi
cmp edi, ebx
jl 0x490300
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004110b4
xor edi, edi
push 0x4a7600
push 0x48b949
push 4
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004a76e0
add esp, 0x14
test ebx, ebx
jle 0x490380
push edi
lea ecx, [ebp - 0x44]
call fcn.004060c4
mov eax, dword [eax]
push 1
push eax
lea ecx, [esi + 0x150]
call fcn.004b3659
inc edi
cmp edi, ebx
jl 0x490362
mov ecx, esi
call fcn.0048c37e
cmp dword [ebp - 0x28], ebx
jne 0x490399
cmp dword [ebp - 0x1c], 0
je 0x490399
mov ecx, esi
call fcn.0048ef6b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0048bc0f
xor edi, edi
jmp 0x4903b0
mov ecx, esi
call fcn.0048ef6b
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x30]
call fcn.004b3d64
lea ecx, [ebp - 0x30]
call fcn.0048bc0f
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret