Function at 0x478d10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.004d8128
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
mov di, ax
push 0x11
and edi, 0x8000
call ebx
mov bx, ax
mov eax, dword [esi]
mov ecx, esi
and ebx, 0x8000
mov dword [esi + 0x16c], 0
call dword [eax + 0x10c]
cmp dword [esp + 0x38], eax
jge 0x478f3a
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0043d160
test ebx, ebx
je 0x478d77
mov ecx, esi
call fcn.00478cb0
jmp 0x479120
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00475e90
mov ecx, dword [eax]
mov dword [esi + 0x184], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
mov dword [esi + 0x188], edx
mov ecx, dword [esi + 0x184]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004740e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x188]
push eax
push ecx
mov ecx, esi
call fcn.00474470
test edi, edi
mov dword [esi + 0x184], eax
jne 0x478dde
mov edx, eax
mov eax, dword [esi + 0x188]
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], eax
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004740e0
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, esi
call dword [edx + 0x138]
mov ecx, eax
mov eax, dword [esp + 0x1c]
dec ecx
cmp eax, ecx
jne 0x478e60
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x140]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
lea edi, [eax + ecx]
mov ecx, esi
call dword [edx + 0x13c]
dec eax
cmp edi, eax
jne 0x478e5c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004743f0
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x478e9f
mov eax, dword [esp + 0x1c]
mov edi, dword [esi]
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
push ecx
push eax
mov ecx, esi
call dword [edi + 0x140]
mov edx, dword [esp + 0x2c]
mov ecx, esi
lea eax, [eax + edx + 1]
push eax
call dword [edi + 0x144]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00474470
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0x188]
mov edx, dword [esi]
mov dword [esi + 0x184], eax
mov dword [esp + 0x2c], ecx
mov dword [esi + 0x188], ecx
mov ecx, esi
mov dword [esp + 0x28], eax
call dword [edx + pe_nt_image_headers32]
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x184]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, esi
call fcn.004767f0
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00476460
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d81c1
mov edx, dword [esi + 0x1c]
push 0
push 0x64
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x170], eax
mov eax, 1
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], eax
mov dword [esi + 0x160], eax
jmp 0x479120
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00475e90
mov ecx, esi
call fcn.00473480
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.004733e0
test eax, eax
je 0x478f80
mov eax, dword [esi + 0x19c]
test eax, eax
jne 0x478f80
mov dword [esi + 0x158], 1
jmp 0x479120
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0043d160
lea edx, [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00475e90
mov ecx, dword [eax]
mov dword [esi + 0x184], ecx
mov edx, dword [eax + 4]
test edi, edi
mov dword [esi + 0x188], edx
jne 0x478fc3
mov ecx, dword [eax]
mov dword [esi + 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xa4], edx
test ebx, ebx
je 0x479077
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0xa4]
cmp eax, ecx
jl 0x479029
jne 0x478fed
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
jl 0x479029
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00478c50
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x184]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x188]
mov dword [esp + 0x14], edx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
jmp 0x479063
mov edx, dword [esi + 0x188]
mov eax, dword [esi + 0x184]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00478c50
mov edx, dword [eax]
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0xa0]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00478be0
mov ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 4]
jmp 0x47909b
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0x188]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x184]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov edx, dword [esi]
mov dword [esi + 0x184], eax
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x188], ecx
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x184]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, esi
call fcn.004767f0
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00476460
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d81c1
mov edx, dword [esi + 0x1c]
push 0
push 0x64
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x170], eax
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], 0
mov dword [esi + 0x160], 1
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0x188]
push eax
push ecx
mov ecx, esi
call fcn.004765e0
mov dword [esi + 0x1e4], eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc