Function at 0x4852d5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, eax
call fcn.004e3a70
test al, al
je 0x4852f4
mov al, 1
jmp 0x485567
cmp byte [ebx + 0x1dc], 0
mov esi, 0x105
je 0x485360
cmp dword [ebp + 0xc], 0x5d
sete cl
cmp edi, esi
je 0x485319
cmp edi, 0x101
je 0x485319
xor al, al
jmp 0x48531b
mov al, 1
test cl, cl
je 0x485360
test al, al
je 0x485360
mov esi, dword [ebx + 0x19]
test esi, esi
je 0x4852ed
lea eax, [ebx + 0x1c4]
mov ecx, dword [eax + 0x19]
sub ecx, dword [eax + 0x21]
push dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x1e1]
push dword [eax]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
call fcn.00426704
push dword [ebx + 0x31]
lea eax, [ebx + 0x21]
push eax
push dword [ebx + 0x19]
call fcn.00426775
jmp 0x4852ed
mov eax, ebx
call fcn.004818e4
test al, al
jne 0x485565
cmp edi, esi
je 0x48537e
cmp edi, 0x104
mov byte [ebp - 2], al
jne 0x485382
mov byte [ebp - 2], 1
cmp dword [ebp + 0xc], 0x12
sete byte [ebp + 0xb]
cmp edi, esi
je 0x48539a
cmp edi, 0x101
je 0x48539a
xor dl, dl
jmp 0x48539c
mov dl, 1
test dl, dl
sete byte [ebp - 1]
or edi, 0xffffffff
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], edi
jne 0x4853f9
mov esi, dword [ebx + 0x25]
xor eax, eax
xor ecx, ecx
cmp dword [esi + 4], eax
je 0x4853f9
movzx eax, word [esi + eax + 0x224]
cmp dword [ebp + 0xc], eax
je 0x4853de
inc ecx
mov eax, ecx
imul eax, eax, 0x227
mov edi, esi
cmp dword [eax + edi + 4], 0
jne 0x4853ba
mov edi, dword [ebp - 8]
jmp 0x4853f9
test ecx, ecx
mov edi, ecx
jl 0x4853f9
cmp byte [ebp - 1], 0
je 0x4853f9
imul ecx, ecx, 0x227
add ecx, esi
or byte [ecx + 0x226], 0x20
cmp byte [ebx + 0x202], 0
jne 0x4854cb
cmp byte [ebx + 0x203], 0
jne 0x485480
cmp byte [ebp + 0xb], 0
je 0x485435
test dl, dl
je 0x485435
cmp byte [ebx + 0x204], 0
jne 0x485435
mov eax, ebx
mov byte [ebx + 0x202], 1
call fcn.0041eba3
jmp 0x4852ed
cmp byte [ebp + 0xb], 0
mov byte [ebx + 0x204], 0
je 0x485451
cmp byte [ebp - 1], 0
je 0x48555e
jmp 0x4852ed
cmp byte [ebp - 1], 0
je 0x48555e
cmp byte [ebp - 2], 0
je 0x48555e
test edi, edi
jl 0x48555e
mov byte [ebx + 0x203], 1
mov esi, ebx
call fcn.00482bb1
jmp 0x4852ed
cmp byte [ebp - 1], 0
je 0x48548a
test edi, edi
jge 0x485474
cmp dword [ebp + 0xc], 0x1b
mov byte [ebx + 0x203], 0
je 0x4852ed
test dl, dl
je 0x48555e
cmp byte [ebp + 0xb], 0
jne 0x4852ed
test edi, edi
jl 0x48555e
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x48555e
jmp 0x4852ed
cmp byte [ebx + 0x203], 0
jne 0x485549
cmp byte [ebp + 0xb], 0
je 0x4854f9
test dl, dl
je 0x4854f9
mov eax, ebx
mov byte [ebx + 0x202], 0
call fcn.0041eba3
xor eax, eax
cmp byte [ebx + 0x204], al
sete al
jmp 0x485567
cmp byte [ebp + 0xb], 0
mov byte [ebx + 0x204], 0
je 0x485510
cmp byte [ebp - 1], 0
jne 0x4852ed
cmp dword [ebp + 0xc], 0x1b
jne 0x48552d
mov byte [ebp + 0xf], 1
mov eax, ebx
mov byte [ebx + 0x202], 0
call fcn.0041eba3
mov al, byte [ebp + 0xf]
jmp 0x485567
cmp dword [ebp + 0xc], 0xd
jne 0x485540
mov byte [ebx + 0x204], 1
mov byte [ebp + 0xf], 0
jmp 0x48551a
cmp byte [ebp - 1], 0
jmp 0x48545f
mov eax, ebx
mov byte [ebx + 0x202], 0
mov byte [ebx + 0x203], 0
call fcn.0041eba3
mov byte [ebx + 0x204], 1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8