Function at 0x49cbd5
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0xb8]
push edi
lea edi, [esi + 0xb8]
xor eax, eax
test ecx, ecx
setg al
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x88]
test eax, eax
je 0x49cc0b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49cc1d
mov ebx, edi
lea ebp, [esi + 0xb4]
jmp 0x49cc29
lea ebx, [esi + 0xb0]
lea ebp, [esi + 0xac]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x49cc59
mov ecx, dword [0x63fd4c]
push 0
push 0xc4
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x88]
xor ecx, ecx
test edx, edx
sete cl
test eax, eax
mov dword [esi + 0x94], ecx
je 0x49cd60
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x8c]
sub edi, eax
mov ecx, dword [esi + 0xc8]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x49ccd2
xor edi, edi
mov dword [esi + 0xc8], 0
mov eax, dword [esi + 0xc8]
cmp ecx, eax
je 0x49cd2d
test eax, eax
jle 0x49ccfd
call fcn.005aa82c
call fcn.005aa82c
mov eax, dword [eax + 0xc]
push 0xc0
push eax
jmp 0x49cd20
cmp edi, 2
jle 0x49ccdc
sub edi, 2
jmp 0x49ccdf
add edi, 2
test edi, edi
jle 0x49ccef
mov dword [esi + 0xc8], 1
jmp 0x49ccaf
jge 0x49cca5
mov dword [esi + 0xc8], 0xffffffff
jmp 0x49ccaf
jge 0x49cd14
call fcn.005aa82c
call fcn.005aa82c
mov eax, dword [eax + 0xc]
push 0xbf
push eax
jmp 0x49cd20
call fcn.005aa82c
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push edi
mov ecx, esi
call fcn.0049d160
fadd qword [esi + 0xc0]
fld st(0)
call fcn.00573170
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsubr st(1)
fstp qword [esi + 0xc0]
cmp dword [ebx], 0xffffffff
fstp st(0)
jne 0x49cd5e
mov ecx, dword [ebp]
mov dword [ebx], ecx
add dword [ebx], eax
mov edx, dword [ebp]
mov eax, dword [ebx]
cmp edx, eax
jne 0x49cd76
cmp dword [esi + 0xbc], 0xffffffff
je 0x49cf45
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [esi + 0xa0]
mov eax, edx
and eax, 0xffff
sub eax, ecx
xor ecx, ecx
mov cx, word [esi + 0xa2]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
sub eax, ecx
mov ecx, dword [esp + 0x2a]
and ecx, 0xffff
add eax, ecx
xor ecx, ecx
mov cx, word [esi + 0xa4]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov edi, ecx
and edi, 0xffff
add eax, edi
xor edi, edi
mov di, word [esi + 0xa6]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, edi
mov edi, dword [esp + 0x2e]
and edi, 0xffff
add eax, edi
jns 0x49ce20
mov edi, dword [esp + 0x20]
lea eax, [esi + 0x98]
mov dword [esi + 0x98], edi
mov edi, dword [esp + 0x24]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x49cf45
cmp eax, 0x50
jl 0x49cf45
mov eax, dword [esi + 0xbc]
cmp eax, 0xffffffff
je 0x49ce4a
mov ecx, dword [0x63fd4c]
push eax
call fcn.00455500
mov dword [esi + 0xbc], 0xffffffff
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x49cf20
cmp dword [ebp], eax
je 0x49cf20
mov ecx, dword [0x63fd4c]
mov eax, dword [ecx + 0x8350]
test eax, eax
jne 0x49ce94
mov edi, dword [esp + 0x10]
xor edx, edx
fild dword [esp + 0x14]
test edi, edi
setne dl
add edx, 0x100
push edx
sub esp, 8
fstp qword [esp]
call fcn.00461150
jmp 0x49cf0e
fild dword [esp + 0x14]
fstp qword [ecx + 0xa9a8]
mov ecx, dword [0x63fd4c]
mov eax, dword [ecx + 0x8328]
test eax, eax
je 0x49cf07
mov edx, dword [ecx + 0xa9a8]
mov edi, dword [ecx + 0xa9ac]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [eax]
xor eax, eax
test edx, edx
setne al
add eax, 0x100
push eax
call fcn.00461300
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fadd qword [esp + 0x1c]
fadd qword [0x5daf38]
call fcn.00573170
mov ecx, dword [0x63fd4c]
push eax
mov ecx, dword [ecx + 0x8328]
call dword [edi + 0x10]
mov ecx, dword [0x63fd4c]
push 3
call fcn.00452030
mov edx, dword [ebx]
mov ecx, esi
mov dword [ebp], edx
mov dword [ebx], 0xffffffff
call fcn.0049c5c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x98]
mov dword [esi + 0x98], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.005a063f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4