Function at 0x470590
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4e5678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
mov dword [esp + 0x3c], 0
call fcn.004d0b16
test eax, eax
mov dword [esp + 0x14], eax
je 0x47085c
mov esi, dword [eax + 0xf8]
test esi, esi
je 0x47085c
mov ebp, dword [esi + 0x1fc]
mov edi, dword [esp + 0x40]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x470607
test cl, cl
je 0x470603
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x470607
add eax, 2
add edi, 2
test cl, cl
jne 0x4705e3
xor eax, eax
jmp 0x47060c
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
je 0x47066e
cmp dword [ebx + 0x170], edi
jne 0x47062c
mov eax, dword [esp + 0x40]
push ebp
push eax
call fcn.004ad810
add esp, 8
cmp eax, edi
je 0x47065e
push ecx
lea edx, [esp + 0x44]
or ebp, 0xffffffff
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov dword [esi + 0x1b4], ebp
call fcn.004c54fc
mov ecx, ebx
call fcn.00471080
cmp eax, edi
mov dword [esi + 0x1b8], eax
jle 0x4706af
dec eax
mov dword [esi + 0x1b8], eax
lea eax, [esp + 0x40]
lea ecx, [esi + 0x1fc]
push eax
call fcn.004c58c0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x470685
mov dword [esi + 0x168], 1
mov eax, dword [esi + 0x168]
cmp eax, edi
mov eax, dword [esi + 0x1b4]
je 0x47071e
cmp eax, 1
jge 0x47071b
mov ecx, dword [esi + 0x1b8]
mov dword [esi + 0x1b4], ecx
jmp 0x470735
mov ecx, dword [0x52251c]
mov dword [esp + 0x14], ecx
mov eax, dword [0x52700c]
mov byte [esp + 0x38], 1
cmp eax, edi
push 0xef83
je 0x4706db
lea edx, [esp + 0x18]
push edx
call fcn.00417b10
add esp, 8
jmp 0x4706e4
lea ecx, [esp + 0x18]
call fcn.004c681c
push 0x520eb4
lea ecx, [esp + 0x18]
call fcn.004c5b63
mov eax, dword [esp + 0x14]
mov ecx, dword [0x52790c]
push 1
push eax
call fcn.0046cf50
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.004c5787
mov dword [esp + 0x38], ebp
jmp 0x470864
dec eax
jmp 0x47072f
cmp eax, dword [esi + 0x1b8]
jne 0x47072e
mov dword [esi + 0x1b4], edi
jmp 0x470735
inc eax
mov dword [esi + 0x1b4], eax
mov ecx, esi
mov dword [esi + 0x168], edi
call fcn.00413440
lea edx, [esp + 0x40]
xor ebp, ebp
push edx
mov ecx, 0x52729c
mov edi, eax
mov dword [0x527978], ebp
call fcn.004c58c0
push 0x470270
push edi
mov dword [0x527984], esi
mov dword [0x52796c], ebp
call fcn.0043adf0
mov eax, dword [edi]
add esp, 8
push edi
call dword [eax + 8]
mov ecx, dword [0x52251c]
mov dword [esp + 0x10], ecx
mov eax, dword [0x52700c]
mov byte [esp + 0x38], 2
cmp eax, ebp
push 0xef83
je 0x4707a7
lea edx, [esp + 0x14]
push edx
call fcn.00417b10
add esp, 8
jmp 0x4707b0
lea ecx, [esp + 0x14]
call fcn.004c681c
mov ecx, dword [esi + 0x1b4]
lea eax, [esp + 0x1c]
push 0xa
inc ecx
push eax
push ecx
call fcn.004b0136
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5b63
push 0x51c85c
lea ecx, [esp + 0x14]
call fcn.004c5b63
mov ecx, dword [esi + 0x1b8]
lea eax, [esp + 0x1c]
push 0xa
inc ecx
push eax
push ecx
call fcn.004b0136
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5b63
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, ebx
call fcn.0046cf50
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c1de6
mov esi, eax
mov eax, dword [ebx + 0xe74]
push ebp
push ebp
mov ecx, dword [eax + 0x1c]
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004c1de6
cmp esi, eax
jne 0x47084e
mov ecx, dword [esp + 0x14]
call fcn.00406d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.004c5787
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004c5787
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4