Function at 0x478857
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
call sub.USER32.dll_GetFocus
mov edi, eax
test edi, edi
jne 0x478879
push 0
call fcn.0042c6cc
xor eax, eax
jmp 0x478b87
push 0x19
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0054e10c
add esp, 0xc
push 0x14
lea ecx, [ebp - 0x24]
push ecx
push edi
call sub.USER32.dll_GetClassNameA
lea eax, [ebp - 0x24]
push eax
call fcn.0047880e
test eax, eax
jne 0x4788b0
push 0
call fcn.0042c6cc
xor eax, eax
jmp 0x478b87
push 0xfffffffffffffff0
push edi
call sub.USER32.dll_GetWindowLongA
test ah, 8
je 0x4788c4
xor eax, eax
jmp 0x478b87
push edi
call sub.USER32.dll_GetParent
mov esi, eax
push esi
call fcn.0051fd8b
test eax, eax
je 0x4788e0
mov eax, 1
jmp 0x478974
cmp esi, dword [0x56d938]
je 0x478916
cmp esi, dword [0x560b10]
je 0x478916
push esi
call sub.USER32.dll_GetParent
cmp eax, dword [0x560b10]
je 0x478916
cmp esi, dword [0x564168]
je 0x478916
cmp esi, dword [0x565c28]
je 0x478916
cmp esi, dword [0x565c40]
jne 0x47891d
mov eax, 2
jmp 0x478974
cmp dword [0x565c28], 0
je 0x47893b
push esi
call sub.USER32.dll_GetParent
cmp eax, dword [0x565c28]
jne 0x47893b
mov eax, 2
jmp 0x478974
mov ebx, dword [0x563368]
test ebx, ebx
je 0x478964
mov eax, dword [ebx + 0xc8]
cmp esi, eax
je 0x478964
push esi
push eax
call sub.USER32.dll_IsChild
test eax, eax
jne 0x478964
mov ebx, dword [ebx + 0x1018]
test ebx, ebx
jne 0x478945
test ebx, ebx
jne 0x47896f
xor eax, eax
jmp 0x478b87
mov eax, 2
cmp byte [ebp + 8], 3
jne 0x47898a
cmp dword [0x5618d8], 0
je 0x47898a
push eax
push edi
call fcn.00442707
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 1
push edi
call fcn.00478569
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x478a7a
cmp byte [ebp + 8], 3
jne 0x4789f7
push 0x10
call sub.USER32.dll_GetKeyState
movsx edx, ax
and edx, 0x8000
cmp edx, 0x8000
jne 0x4789de
xor eax, eax
mov al, byte [ebp + 8]
push eax
push eax
push 0x56499e
lea edx, [ebp - 0x24]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x478a40
xor ecx, ecx
mov cl, byte [ebp + 8]
push ecx
push 0x5649a4
lea eax, [ebp - 0x24]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x478a40
push 0x10
call sub.USER32.dll_GetKeyState
movsx edx, ax
and edx, 0x8000
cmp edx, 0x8000
jne 0x478a29
xor eax, eax
mov al, byte [ebp + 8]
push eax
push eax
push str._c_c
lea edx, [ebp - 0x24]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x478a40
xor ecx, ecx
mov cl, byte [ebp + 8]
push ecx
push 0x5649ae
lea eax, [ebp - 0x24]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 4]
push 1
push edi
call fcn.00478480
lea edx, [ebp - 0x24]
push edx
push 0
push 0xc2
push edi
call sub.USER32.dll_SendMessageA
inc dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
push 1
push edi
call fcn.00478480
mov eax, 1
jmp 0x478b87
cmp byte [ebp + 8], 3
jne 0x478b0b
xor ebx, ebx
mov bl, byte [ebp + 8]
push ebx
push 0x5649b2
lea eax, [ebp - 0x24]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 8]
push 1
push edi
call fcn.00478480
lea edx, [ebp - 0x24]
push edx
push 0
push 0xc2
push edi
call sub.USER32.dll_SendMessageA
push ebx
push 0x5649b6
lea ecx, [ebp - 0x24]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 4]
push 1
push edi
call fcn.00478480
lea eax, [ebp - 0x24]
push eax
push 0
push 0xc2
push edi
call sub.USER32.dll_SendMessageA
lea edx, [ebp - 0x24]
push edx
call fcn.0054e28c
pop ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 4]
push 1
push edi
call fcn.00478480
jmp 0x478b82
xor ebx, ebx
mov bl, byte [ebp + 8]
push ebx
push 0x5649ba
lea eax, [ebp - 0x24]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 4]
push 1
push edi
call fcn.00478480
lea edx, [ebp - 0x24]
push edx
push 0
push 0xc2
push edi
call sub.USER32.dll_SendMessageA
lea ecx, [ebp - 0x24]
push ecx
call fcn.0054e28c
pop ecx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
push ebx
push 0x5649be
lea eax, [ebp - 0x24]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 8]
push 1
push edi
call fcn.00478480
lea edx, [ebp - 0x24]
push edx
push 0
push 0xc2
push edi
call sub.USER32.dll_SendMessageA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4