Function at 0x478780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x11c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x4787ea
mov edx, dword [ebp + 8]
cmp dword [edx], 8
jle 0x4787ea
mov eax, dword [ebp + 8]
cmp dword [eax], 0x16
jge 0x4787ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x578], 0
je 0x4787d9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x578]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x578]
mov edx, dword [eax + 0x18]
call edx
jmp 0x4787e5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00478230
jmp 0x478a9b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x578], 0
je 0x4788b9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x578]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x578]
mov eax, dword [edx + 4]
call eax
movzx ecx, byte [eax + 0x5e4]
test ecx, ecx
je 0x4788b9
mov edx, dword [ebp + 8]
cmp dword [edx], 0xf
jne 0x4788b9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x114]
call eax
movzx ecx, al
test ecx, ecx
je 0x4788b4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
jne 0x478868
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x47889b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x578], 0
je 0x478899
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x56c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x578]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax + 0x578]
mov eax, dword [edx + 0x10]
call eax
jmp 0x4788b4
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x568
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x568]
mov edx, dword [eax + 0x14]
call edx
jmp 0x478a9b
mov eax, dword [ebp + 8]
cmp dword [eax], 0xd
jne 0x478982
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x114]
call eax
movzx ecx, al
test ecx, ecx
je 0x47897d
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x48]
call edx
movzx eax, al
test eax, eax
je 0x47890e
push 0
push 0
push 0
push str.buttondown
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x54]
call fcn.0041a420
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
jne 0x478931
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x478964
mov edx, dword [ebp - 4]
cmp dword [edx + 0x578], 0
je 0x478962
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x56c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x578]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x578]
mov eax, dword [edx + 0x10]
call eax
jmp 0x47897d
push 1
mov ecx, dword [ebp - 4]
add ecx, 0x568
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x568]
mov edx, dword [eax + 0x14]
call edx
jmp 0x478a9b
mov eax, dword [ebp + 8]
cmp dword [eax], 0xe
jne 0x4789c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x114]
call eax
movzx ecx, al
test ecx, ecx
je 0x4789bb
push 0
push 0
push 0
push str.itemclick
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
call fcn.0041a420
jmp 0x478a9b
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xb
jne 0x478a2c
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x114]
call edx
movzx eax, al
test eax, eax
je 0x478a2a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x574]
or edx, 8
mov eax, dword [ebp - 4]
mov dword [eax + 0x574], edx
mov ecx, dword [ebp - 4]
call fcn.0047bba0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
call eax
movzx ecx, al
test ecx, ecx
je 0x478a2a
push 0
push 0
push 0
push str.mouseenter
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
call fcn.0041a420
jmp 0x478a9b
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xa
jne 0x478a8f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x574]
and eax, 8
je 0x478a8d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x574]
and edx, 0xfffffff7
mov eax, dword [ebp - 4]
mov dword [eax + 0x574], edx
mov ecx, dword [ebp - 4]
call fcn.0047bba0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
call eax
movzx ecx, al
test ecx, ecx
je 0x478a8d
push 0
push 0
push 0
push str.mouseleave
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
call fcn.0041a420
jmp 0x478a9b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00478230
mov esp, ebp
pop ebp
ret 4