Function at 0x474520
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0a80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 0xd
jne 0x4745c6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x4745c6
cmp byte [edi + 0x366], 0
je 0x474758
cmp byte [edi + 0x367], 0
je 0x474591
push 0x11
call esi
test ax, ax
js 0x47459e
cmp byte [edi + 0x367], 0
jne 0x474758
push 0x11
call esi
test ax, ax
js 0x474758
mov ecx, dword [edi + 0x2b4]
test ecx, ecx
je 0x47476f
lea eax, [edi + 4]
neg edi
push 0
push 0
sbb edi, edi
push 0x29
and edi, eax
push edi
call fcn.0043ea30
jmp 0x47476f
cmp byte [edi + 0x36c], 0
je 0x474758
cmp dword [ebx + 0x18], 0x56
jne 0x474758
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x474758
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004763c0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x4746fb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
nop dword [eax + eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea eax, [eax + edx*2]
cmp esi, eax
je 0x47466f
movzx ecx, word [esi]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x47466a
push ecx
lea ecx, [ebp - 0x40]
call fcn.00404f00
mov edx, dword [ebp - 0x18]
add esi, 2
jmp 0x474640
cmp dword [ebp - 0x30], 0
jne 0x4746b5
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x474720
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4746a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47478d
push edx
push ecx
call fcn.004a1b67
add esp, 8
jmp 0x474720
lea ecx, [ebp - 0x40]
call fcn.00476580
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4746fb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4746f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474792
push edx
push ecx
call fcn.004a1b67
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push 0x100
call dword [eax + 0x1c8]
cmp dword [ebp - 0x18], 0
je 0x474720
lea ecx, [ebp - 0x28]
call fcn.00476580
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47476f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47474c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474797
push edx
push ecx
call fcn.004a1b67
add esp, 8
jmp 0x47476f
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push 0x100
call dword [eax + 0x1c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret 4
call fcn.004c43e9
call fcn.004c43e9
call fcn.004c43e9
int3