Function at 0x42bb10
Capabilities:
Log keystrokes via polling
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa8e5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x530010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
cmp esi, 1
jne 0x42bb68
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebx + 8], 1
call dword [eax + 0xc]
jmp 0x42c1bc
cmp esi, 2
jne 0x42bbcb
mov ecx, dword [ebx + 0x88]
mov dword [ebx + 8], 1
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, dword [ebx + 0xc]
jne 0x42bb91
mov ecx, dword [ebx + 0x88]
push 0
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x42bbb9
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [ebx + 0x258]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x258], 0
mov ecx, ebx
call fcn.00419390
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 7
jne 0x42bc84
mov eax, dword [ebx]
mov ecx, ebx
push 0
mov dword [ebx + 8], 1
call dword [eax + 0x4c]
mov edx, dword [ebx + 0x258]
test edx, edx
je 0x42bc4f
mov ecx, dword [ebx + 0xa0]
mov eax, ecx
shr eax, 3
not eax
test al, 1
je 0x42bc4f
test cl, 0x10
jne 0x42bc4f
mov dword [edx + 4], 1
mov eax, dword [ebx + 0x258]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebx + 0x258]
push 0
push 0
push 0
mov ecx, dword [eax + 0xc]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
test dword [ebx + 0x238], 0x800
je 0x42bc4f
push 0
push 0xffff
push 0
push 0xb1
mov ecx, ebx
call fcn.00419910
test dword [ebx + 0x234], 0x2020
je 0x42c073
mov ecx, dword [ebx + 0x88]
push 0
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
mov dword [ebx + 0x25c], eax
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 8
jne 0x42bd11
mov eax, dword [ebx]
mov ecx, ebx
push 0
mov dword [ebx + 8], 1
call dword [eax + 0x4c]
mov eax, dword [ebx + 0x258]
test eax, eax
je 0x42bcde
mov dword [eax + 4], 0
mov eax, dword [ebx + 0x258]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebx + 0x258]
push 0
push 0
push 0
mov ecx, dword [eax + 0xc]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x258]
push 0
mov eax, dword [ecx]
call dword [eax + 0x30]
test dword [ebx + 0x234], 0x2020
je 0x42c073
mov ecx, dword [ebx + 0x88]
push dword [ebx + 0x25c]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
call dword [sym.imp.IMM32.dll_ImmAssociateContext]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x113
jne 0x42bd2b
mov dword [ebx + 8], 1
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x201
jne 0x42bde1
cmp dword [ebx + 0x8c], 0
mov dword [ebx + 8], 1
je 0x42c073
cmp dword [ebx + 0x258], 0
je 0x42c073
mov ecx, dword [ebx + 0x88]
push dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, dword [ebx + 0xc]
je 0x42bdb7
mov ecx, dword [ebx + 0xa0]
mov eax, ecx
shr eax, 3
not eax
test al, 1
je 0x42bda7
test cl, 0x10
jne 0x42bda7
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x42bda7
mov ecx, dword [ebx + 0x88]
push dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
test dword [ebx + 0x238], 0x800
jne 0x42c073
mov eax, dword [ebx + 0x258]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x8c]
mov edx, dword [ecx]
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [edx + 0xc]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x202
jne 0x42be2d
mov ecx, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test ecx, ecx
je 0x42c073
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ecx + 0xc]
push 0
push dword [eax + 0xc]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x204
jne 0x42be84
mov ecx, dword [ebx + 0xa0]
mov eax, ecx
shr eax, 3
not eax
mov dword [ebx + 8], 1
test al, 1
je 0x42c073
test cl, 0x10
jne 0x42c073
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x42c073
mov ecx, dword [ebx + 0x88]
push dword [ebx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x200
jne 0x42bea9
mov ecx, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test ecx, ecx
je 0x42c073
mov ecx, dword [ecx + 0xc]
jmp 0x42bdc0
cmp esi, 0x20a
jne 0x42bec8
xor eax, eax
mov dword [ebx + 8], 1
cmp dword [ebx + 0x258], eax
setne al
jmp 0x42c1bc
cmp esi, 0x100
jne 0x42bf23
cmp dword [ebx + 0x258], 0
mov dword [ebx + 8], 1
je 0x42c073
cmp dx, 0xd
jne 0x42bdb7
test dword [ebx + 0x234], 0x1000
jne 0x42bdb7
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x42bdb7
mov dword [ebx + 8], 0
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x102
jne 0x42c005
cmp dword [ebx + 0x258], 0
mov dword [ebx + 8], 1
je 0x42c073
push str.onchar_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
movzx ecx, dx
mov eax, ecx
sub eax, 9
je 0x42bfbf
sub eax, 1
je 0x42bf9e
sub eax, 3
je 0x42bf9e
test dword [ebx + 0x234], 0x2000
je 0x42bfdb
push ecx
call fcn.004c9f20
add esp, 4
test eax, eax
jne 0x42bfdb
mov ecx, dword [ebp - 0x14]
movzx eax, cx
cmp eax, 0x2d
je 0x42bfdb
cmp eax, 0x2e
je 0x42bfdb
cmp eax, 0x2c
je 0x42bfdb
mov dword [edi], 0
jmp 0x42c1be
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x42bfdb
test dword [ebx + 0x234], 0x1000
je 0x42c073
jmp 0x42bfdb
test byte [ebx + 0x238], 0x80
jne 0x42bfdb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x42c073
mov edx, dword [ebx + 0x8c]
mov eax, dword [ebx + 0x258]
push 0
push dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
push dword [edx + 8]
push dword [edx + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x18
jne 0x42c04b
push ecx
push edx
mov ecx, ebx
mov dword [ebx + 8], 1
call fcn.004194e0
mov eax, dword [ebx + 0xa0]
shr eax, 3
not eax
test al, 1
jne 0x42c073
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx]
call dword [eax + 8]
push 1
push eax
push 0x20
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0x203
jne 0x42c07e
mov ecx, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test ecx, ecx
je 0x42c073
mov ecx, dword [ecx + 0xc]
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 0xc]
mov dword [edi], 0
jmp 0x42c1be
cmp esi, 0xc
jne 0x42c0ec
mov ecx, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test ecx, ecx
jne 0x42c09b
xor eax, eax
jmp 0x42c1bc
mov ecx, dword [ecx + 0xc]
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
push edx
push 0xc
call dword [eax + 0xc]
test eax, eax
jns 0x42c0b6
xor eax, eax
jmp 0x42c1bc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42c0d3
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c0c2
sub ecx, edx
sar ecx, 1
jmp 0x42c0d5
xor ecx, ecx
cmp ecx, dword [ebx + 0x20c]
jbe 0x42c1b7
mov dword [ebx + 0x20c], ecx
jmp 0x42c1b7
cmp esi, 0x447
jne 0x42c146
mov eax, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test eax, eax
je 0x42c1bc
cmp dword [ecx], 0xbc
je 0x42c118
xor eax, eax
jmp 0x42c1bc
mov ecx, dword [eax + 0xc]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0xe
call dword [eax + 0xc]
mov eax, dword [ebx + 0x258]
mov edx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push edx
push 0x447
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x42c1b7
cmp esi, 0x444
jne 0x42c1e1
mov eax, dword [ebx + 0x258]
mov dword [ebx + 8], 1
test eax, eax
je 0x42c1bc
test edx, edx
jne 0x42c170
cmp dword [ecx], 0x74
je 0x42c170
xor eax, eax
jmp 0x42c1bc
mov ecx, dword [eax + 0xc]
push 0
push dword [ebp - 0x10]
mov eax, dword [ecx]
push edx
push 0x444
call dword [eax + 0xc]
cmp dword [ebp - 0x14], 0
jne 0x42c1b7
mov eax, dword [ebx + 0x258]
lea edi, [ebx + 0xdc]
mov esi, dword [ebp - 0x10]
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
push 0x20000
push 0x20000
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov eax, 1
mov dword [edi], eax
cmp dword [ebx + 8], 0
je 0x42c389
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xcf
jne 0x42c338
test edx, edx
mov dword [ebp - 0x48], 0
mov ecx, 0x51ecb8
mov dword [ebx + 8], 1
mov eax, 0x5193a4
mov dword [ebp - 0x38], 0
cmove eax, ecx
mov dword [ebp - 0x34], 7
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [ebp - 0x48], cx
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c226
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.004014e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push 8
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x51ecbc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004014e0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x42c2c3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c2b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c3ac
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x42c318
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c30e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c3ac
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [edi], eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp dword [ebx + 8], eax
je 0x42c37f
jmp 0x42c1c8
cmp esi, 0x435
jne 0x42c37f
test edx, edx
mov dword [ebx + 8], 1
mov eax, 0x7fff
cmovne eax, edx
mov dword [ebx + 0x20c], eax
mov eax, dword [ebx + 0x258]
push 0x8000
push 0x8000
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov dword [edi], 1
cmp dword [ebx + 8], 0
jne 0x42c1c8
cmp dword [ebx + 8], 0
jne 0x42c1c8
push edi
push dword [ebp - 0x10]
mov ecx, ebx
push dword [ebp - 0x14]
push esi
call fcn.0040e910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004ca66d
int3