Function at 0x479310
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.004d8402
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 0x47953a
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0043d670
test ebx, ebx
je 0x479377
mov ecx, esi
call fcn.004792b0
jmp 0x479720
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00476490
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.004746e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x188]
push eax
push ecx
mov ecx, esi
call fcn.00474a70
test edi, edi
mov dword [esi + 0x184], eax
jne 0x4793de
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.004746e0
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 0x479460
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 0x47945c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004749f0
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x47949f
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.00474a70
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 + 0x108]
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x184]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, esi
call fcn.00476df0
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00476a60
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d849b
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 0x479720
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00476490
mov ecx, esi
call fcn.00473a80
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.004739e0
test eax, eax
je 0x479580
mov eax, dword [esi + 0x19c]
test eax, eax
jne 0x479580
mov dword [esi + 0x158], 1
jmp 0x479720
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0043d670
lea edx, [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
call fcn.00476490
mov ecx, dword [eax]
mov dword [esi + 0x184], ecx
mov edx, dword [eax + 4]
test edi, edi
mov dword [esi + 0x188], edx
jne 0x4795c3
mov ecx, dword [eax]
mov dword [esi + 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xa4], edx
test ebx, ebx
je 0x479677
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0xa4]
cmp eax, ecx
jl 0x479629
jne 0x4795ed
mov eax, dword [esi + 0x184]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
jl 0x479629
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.00479250
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 0x479663
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.00479250
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.004791e0
mov ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 4]
jmp 0x47969b
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 + 0x108]
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x184]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, esi
call fcn.00476df0
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00476a60
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d849b
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.00476be0
mov dword [esi + 0x1e4], eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc