Function at 0x4028d0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ebx
mov dword [esp + 8], edx
and esi, 0xffffff00
mov dword [esp + 0xc], ecx
cmp dword [0x42c494], 0
push edi
mov dword [esp + 0x14], 0
je 0x402956
call fcn.004015c0
cmp dword [ebp + 0x10], 0
je 0x402918
mov edi, str.output
cmp esi, 0xffc3ce00
je 0x40291d
mov edi, str.input
mov ecx, dword [esp + 0xc]
mov edx, 0x426154
cmp dword [ebp + 8], 1
mov eax, str.DOWN
push ebx
push dword [ebp + 0x14]
cmovne eax, edx
push ecx
push dword [esp + 0x1c]
push eax
call fcn.00401130
push eax
push edi
push str.__s___s__s__scan:0x_04X_virt:0x_02X_flags:0x_02X_dwExtraInfo:0x_IX_
call fcn.00401020
add esp, 0x20
inc dword [0x42c47c]
mov ecx, dword [0x42b9c4]
mov edi, dword [ebp + 0xc]
test ecx, ecx
jle 0x402977
mov eax, edi
sub eax, dword [0x42c478]
cmp eax, ecx
jbe 0x402977
mov ecx, dword [ebp + 0x1c]
call fcn.00401fe0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402a3d
cmp esi, 0xffc3ce00
jne 0x402992
cmp ebx, esi
jne 0x402a3d
mov ecx, dword [0x42b940]
xor edi, edi
test ecx, ecx
jle 0x4029ef
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [0x42c478]
cmp eax, ecx
jbe 0x4029ef
push dword [0x42d040]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call esi
push dword [0x42d038]
call esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
push edi
push 0x404370
push 0xe
call esi
push edi
push edi
push 0x404560
push 0xd
mov dword [0x42d038], eax
call esi
mov dword [0x42d040], eax
mov dword [0x42c478], ebx
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
cmp dword [0x42c494], 0
je 0x402a34
dec dword [0x42c47c]
test edi, edi
je 0x402a34
call fcn.004015c0
cmp esi, 1
mov ecx, 0x426154
mov eax, str.DOWN
cmovne eax, ecx
mov ecx, ebx
push eax
call fcn.00401130
push eax
push str.blocked_input__s__s
call fcn.00401020
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0x22a
jne 0x402a4e
mov edi, 1
jmp 0x4029ef
mov dword [0x42c478], edi
test eax, eax
je 0x402a68
movzx eax, bl
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x402afc
mov ecx, dword [0x42c4a4]
mov edx, 0x42c4a4
mov ebx, dword [esp + 0xc]
test ecx, ecx
je 0x402acf
nop dword [eax + eax]
cmp dword [ecx + 0x58], 4
jne 0x402ab8
mov ecx, dword [edx]
mov eax, edi
sub eax, dword [ecx + 0x5c]
cmp eax, dword [0x42c484]
jb 0x402ab8
mov dword [ecx + 0x58], 0
mov ecx, dword [edx]
cmp dword [ecx + 0x50], 0
jne 0x402ac2
cmp dword [ecx + 0x54], 0
jne 0x402ac2
mov eax, dword [ecx + 0x64]
mov dword [edx], eax
mov dword [ecx + 0x64], 0
jmp 0x402ac5
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp dword [eax + 8], ebx
je 0x402acb
lea edx, [ecx + 0x64]
mov ecx, dword [edx]
test ecx, ecx
jne 0x402a80
test ecx, ecx
jne 0x402b1b
movzx eax, bl
mov eax, dword [eax*4 + 0x42cc10]
test eax, eax
je 0x402afc
nop dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
je 0x402af8
cmp dword [edx + 4], 0
jne 0x402af8
mov eax, dword [eax + 4]
test eax, eax
jne 0x402ae0
jmp 0x402afc
test ecx, ecx
jne 0x402b1b
mov eax, dword [ebp + 0x1c]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edx, esi
push eax
push dword [esp + 0x18]
push edi
call fcn.00402630
add esp, 0xc
mov edi, eax
jmp 0x4029f6
mov esi, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 0x1c]
push eax
test esi, esi
jne 0x402b37
call fcn.004022e0
add esp, 4
mov edi, eax
jmp 0x4029f6
call fcn.004020e0
add esp, 4
mov edi, eax
jmp 0x4029f6