Function at 0x402900
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 [0x42e71c], 0
push edi
mov dword [esp + 0x14], 0
je 0x402986
call fcn.00401600
cmp dword [ebp + 0x10], 0
je 0x402948
mov edi, str.output
cmp esi, 0xffc3ce00
je 0x40294d
mov edi, str.input
mov ecx, dword [esp + 0xc]
mov edx, 0x428218
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.00401170
push eax
push edi
push str.__s___s__s__scan:0x_04X_virt:0x_02X_flags:0x_02X_dwExtraInfo:0x_IX_
call fcn.00401050
add esp, 0x20
inc dword [0x42e704]
mov ecx, dword [0x42db64]
mov edi, dword [ebp + 0xc]
test ecx, ecx
jle 0x4029a7
mov eax, edi
sub eax, dword [0x42e700]
cmp eax, ecx
jbe 0x4029a7
mov ecx, dword [ebp + 0x1c]
call fcn.00402010
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402a6d
cmp esi, 0xffc3ce00
jne 0x4029c2
cmp ebx, esi
jne 0x402a6d
mov ecx, dword [0x42dae0]
xor edi, edi
test ecx, ecx
jle 0x402a1f
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [0x42e700]
cmp eax, ecx
jbe 0x402a1f
push dword [0x42f2c0]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call esi
push dword [0x42f2b8]
call esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
push edi
push 0x4044d0
push 0xe
call esi
push edi
push edi
push 0x4046e0
push 0xd
mov dword [0x42f2b8], eax
call esi
mov dword [0x42f2c0], eax
mov dword [0x42e700], ebx
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0xc]
cmp dword [0x42e71c], 0
je 0x402a64
dec dword [0x42e704]
test edi, edi
je 0x402a64
call fcn.00401600
cmp esi, 1
mov ecx, 0x428218
mov eax, str.DOWN
cmovne eax, ecx
mov ecx, ebx
push eax
call fcn.00401170
push eax
push str.blocked_input__s__s
call fcn.00401050
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0x22a
jne 0x402a7e
mov edi, 1
jmp 0x402a1f
mov dword [0x42e700], edi
test eax, eax
je 0x402a98
movzx eax, bl
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x402b2c
mov ecx, dword [0x42e72c]
mov edx, 0x42e72c
mov ebx, dword [esp + 0xc]
test ecx, ecx
je 0x402aff
nop dword [eax + eax]
cmp dword [ecx + 0x58], 4
jne 0x402ae8
mov ecx, dword [edx]
mov eax, edi
sub eax, dword [ecx + 0x5c]
cmp eax, dword [0x42e70c]
jb 0x402ae8
mov dword [ecx + 0x58], 0
mov ecx, dword [edx]
cmp dword [ecx + 0x50], 0
jne 0x402af2
cmp dword [ecx + 0x54], 0
jne 0x402af2
mov eax, dword [ecx + 0x64]
mov dword [edx], eax
mov dword [ecx + 0x64], 0
jmp 0x402af5
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp dword [eax + 8], ebx
je 0x402afb
lea edx, [ecx + 0x64]
mov ecx, dword [edx]
test ecx, ecx
jne 0x402ab0
test ecx, ecx
jne 0x402b4b
movzx eax, bl
mov eax, dword [eax*4 + 0x42ee90]
test eax, eax
je 0x402b2c
nop dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
je 0x402b28
cmp dword [edx + 4], 0
jne 0x402b28
mov eax, dword [eax + 4]
test eax, eax
jne 0x402b10
jmp 0x402b2c
test ecx, ecx
jne 0x402b4b
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.00402660
add esp, 0xc
mov edi, eax
jmp 0x402a26
mov esi, dword [ebp + 8]
mov edx, edi
mov eax, dword [ebp + 0x1c]
push eax
test esi, esi
jne 0x402b67
call fcn.00402310
add esp, 4
mov edi, eax
jmp 0x402a26
call fcn.00402110
add esp, 4
mov edi, eax
jmp 0x402a26