Function at 0x48d880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, eax
cmp dword [0x5896e8], esi
je 0x48d940
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x30]
push 1
push esi
push esi
push esi
push eax
call ebx
test eax, eax
je 0x48d940
nop dword [eax + eax]
mov ecx, dword [0x694e68]
test ecx, ecx
je 0x48d8e6
mov eax, dword [ebp - 0x24]
cdq
push edx
push eax
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [0x694e6c]
call ecx
add esp, 0x1c
cmp dword [ebp - 0x2c], 0x200
jne 0x48d90a
mov eax, dword [0x694e80]
test eax, eax
je 0x48d90a
sub eax, dword [ebp - 0x20]
inc eax
test eax, eax
jg 0x48d92e
mov dword [0x694e80], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [edi + 1]
sub eax, dword [ebp - 0x20]
test eax, eax
jg 0x48d92e
inc esi
cmp esi, 3
jg 0x48d940
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
jne 0x48d8c0
push 0
call fcn.00468540
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, eax
add esp, 4
cmp byte [esi + 0xe1], 1
jne 0x48d978
push 0xa0
call edi
bt ax, 0xf
jb 0x48d978
push 0xe1
push 0
call fcn.00468b00
add esp, 8
cmp byte [esi + 0xe5], 1
jne 0x48d99e
push 0xa1
call edi
bt ax, 0xf
jb 0x48d99e
push 0xe5
push 0
call fcn.00468b00
add esp, 8
call fcn.00468530
test eax, eax
je 0x48d9b0
test dword [eax + 0x30], 0x100000
jne 0x48d9f6
cmp byte [esi + 0xe3], 1
jne 0x48d9d3
push 0x5b
call edi
bt ax, 0xf
jb 0x48d9d3
push 0xe3
push 0
call fcn.00468b00
add esp, 8
cmp byte [esi + 0xe7], 1
jne 0x48d9f6
push 0x5c
call edi
bt ax, 0xf
jb 0x48d9f6
push 0xe7
push 0
call fcn.00468b00
add esp, 8
call fcn.0045fbe0
mov esi, eax
call fcn.00471e40
mov edi, eax
test esi, esi
je 0x48da4a
mov esi, dword [esi + 0x190]
test esi, esi
je 0x48da4a
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x48da40
cmp dword [ecx + 0x48], 0
je 0x48da2b
mov dword [ecx + 0x48], 0
jmp 0x48da37
mov eax, edi
sub eax, dword [ecx + 0x4c]
cmp eax, 0xbb8
jb 0x48da40
push esi
call fcn.00489ea0
add esp, 4
mov esi, dword [esi + 0xac]
test esi, esi
jne 0x48da12
call fcn.00468530
test eax, eax
je 0x48db82
test dword [eax + 0x30], 0x4000
je 0x48db82
mov edi, dword [eax + 0xa4]
mov dword [ebp - 4], edi
cmp dword [edi + 0x74], 0
jne 0x48db82
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x48db82
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x48db82
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
call fcn.004703a0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax + 0x28]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
push dword [edi]
mov dword [ebp - 8], edx
call fcn.00488ea0
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push ebx
push dword [edi]
call fcn.00471250
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0x20
test esi, esi
setne al
lea eax, [eax*2 + 1]
push eax
push 1
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
mov eax, dword [ebp - 4]
push ebx
push dword [eax]
call fcn.00471230
add esp, 0x10
test esi, esi
sete al
lea eax, [eax*2 + 1]
push eax
push 2
call edi
mov esi, dword [ebp - 4]
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [esi]
call fcn.00471230
add esp, 0x10
push 2
push 4
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [esi]
call fcn.00471230
add esp, 0x10
push 4
push 5
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [esi]
call fcn.00471230
add esp, 0x10
push 5
push 6
call edi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push ebx
push dword [esi]
call fcn.00471230
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret