Function at 0x475100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53ac84]
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 0x4751a6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x4751a6
cmp byte [edi + 0x366], 0
je 0x475338
cmp byte [edi + 0x367], 0
je 0x475171
push 0x11
call esi
test ax, ax
js 0x47517e
cmp byte [edi + 0x367], 0
jne 0x475338
push 0x11
call esi
test ax, ax
js 0x475338
mov ecx, dword [edi + 0x2b4]
test ecx, ecx
je 0x47534f
lea eax, [edi + 4]
neg edi
push 0
push 0
sbb edi, edi
push 0x29
and edi, eax
push edi
call fcn.0043f640
jmp 0x47534f
cmp byte [edi + 0x36c], 0
je 0x475338
cmp dword [ebx + 0x18], 0x56
jne 0x475338
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x475338
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.00476fa0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x4752db
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 0x47524f
movzx ecx, word [esi]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x47524a
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405270
mov edx, dword [ebp - 0x18]
add esi, 2
jmp 0x475220
cmp dword [ebp - 0x30], 0
jne 0x475295
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x475300
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475289
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47536d
push edx
push ecx
call fcn.004c1d47
add esp, 8
jmp 0x475300
lea ecx, [ebp - 0x40]
call fcn.00477160
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4752db
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4752d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475372
push edx
push ecx
call fcn.004c1d47
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 0x475300
lea ecx, [ebp - 0x28]
call fcn.00477160
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47534f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47532c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475377
push edx
push ecx
call fcn.004c1d47
add esp, 8
jmp 0x47534f
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.004c1fe9
mov esp, ebp
pop ebp
ret 4
call fcn.004c7ca1
call fcn.004c7ca1
call fcn.004c7ca1
int3