Function at 0x478cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x11c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x478d57
mov edx, dword [ebp + 8]
cmp dword [edx], 8
jle 0x478d57
mov eax, dword [ebp + 8]
cmp dword [eax], 0x16
jge 0x478d57
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x58], 0
je 0x478d46
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x58]
mov edx, dword [eax + 0x150]
call edx
jmp 0x478d52
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00471180
jmp 0x479194
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x18
jne 0x478d6e
mov edx, dword [ebp - 8]
mov byte [edx + 0x1ad], 1
jmp 0x479194
mov eax, dword [ebp + 8]
cmp dword [eax], 0x17
jne 0x478d85
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x1ad], 0
jmp 0x479194
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x478da2
cmp dword [ebp - 0x10], 0x15
je 0x47906c
jmp 0x479188
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 0xd
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x34
ja case.0x478dc9.1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x4791c0]
jmp dword [edx*4 + 0x47919c]
mov ecx, dword [ebp - 8]
add ecx, 0x6e8
call fcn.0041c790
test eax, eax
jle 0x478e4d
mov ecx, dword [ebp - 8]
call fcn.0047b670
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0x40]
call eax
cmp dword [ebp - 0x14], 0
jle 0x478e2f
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
mov byte [ebp - 1], al
jmp 0x478e4d
push 1
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0xc]
call eax
mov byte [ebp - 1], al
jmp 0x479194
mov ecx, dword [ebp - 8]
add ecx, 0x6e8
call fcn.0041c790
test eax, eax
jle 0x478f14
mov ecx, dword [ebp - 8]
call fcn.0047b5e0
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0x40]
call edx
mov esi, dword [ebp - 0x18]
add esi, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x700]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x700]
add eax, 0x568
mov edx, dword [ecx + 0x568]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp esi, eax
jle 0x478ef4
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x568
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x568]
mov edx, dword [eax + 0xc]
call edx
sub eax, 1
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0xc]
call eax
mov byte [ebp - 2], al
jmp 0x478f14
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
mov byte [ebp - 2], al
jmp 0x479194
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1dc]
call eax
jmp 0x479194
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1e0]
call eax
jmp 0x479194
push 1
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1bc]
call eax
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
jmp 0x479194
push 1
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x568
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x568]
mov eax, dword [edx + 0xc]
call eax
sub eax, 1
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1bc]
call eax
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
jmp 0x479194
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6e0], 0xffffffff
je 0x478ffe
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6e0]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x568
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x568]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
call eax
jmp 0x479194
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0x38]
call edx
movzx eax, al
test eax, eax
je 0x479062
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x479062
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0x40]
call edx
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0x3c]
call eax
jmp 0x479194
jmp 0x479188
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x479093
cmp dword [ebp - 0x20], 1
je 0x47910f
jmp 0x479188
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x6dc]
test edx, edx
je 0x4790fa
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0x38]
call eax
movzx ecx, al
test ecx, ecx
jne 0x4790fa
push 1
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6e0]
sub eax, 1
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1bc]
call eax
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
jmp 0x47910a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1d4]
call eax
jmp 0x479194
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x6dc]
test edx, edx
je 0x479176
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x6d8]
mov eax, dword [edx + 0x38]
call eax
movzx ecx, al
test ecx, ecx
jne 0x479176
push 1
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6e0]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1bc]
call eax
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6d8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d8]
mov edx, dword [eax + 0xc]
call edx
jmp 0x479186
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x1d8]
call eax
jmp 0x479194
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00471180
pop esi
mov esp, ebp
pop ebp
ret 4