Function at 0x4be830
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
cmp word [ebp + 0xc], 9
jne 0x4be85f
mov eax, dword [ebp]
cmp eax, dword [edi + 0x68]
jne 0x4be85f
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
call dword [eax]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x11
mov dword [esp + 0x24], eax
call esi
movzx ebx, ax
shr ebx, 0xf
push 0xa3
and bl, 1
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x10
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [esp + 0x24]
shr eax, 0xf
and eax, 0xffffff01
mov dword [esp + 0x10], eax
mov dword [ecx], 0
movzx esi, word [ebp + 0xc]
mov byte [esp + 0x14], al
cmp esi, 0x30
jb 0x4be8fc
cmp esi, 0x39
ja 0x4be8fc
cmp byte [esp + 0x18], 0
jne 0x4be8d0
mov ecx, dword [esp + 0x20]
test cl, cl
je 0x4be900
lea ecx, [esi - 0x30]
push ecx
mov ecx, edi
test al, al
je 0x4be8eb
call fcn.004b3c30
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
call fcn.004b3ce0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
cmp esi, 0x71
je 0x4be90a
cmp esi, 0x70
jne 0x4be933
test cl, cl
je 0x4be933
test bl, bl
jne 0x4be933
test al, al
jne 0x4be933
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp esi, 0x70
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp esi, 0x78
jne 0x4be94e
test cl, cl
jne 0x4be94e
test bl, bl
jne 0x4be94e
test al, al
jne 0x4be94e
mov ecx, 0x523310
call fcn.0048d300
movzx ecx, word [ebp + 0xc]
cmp ecx, 0x72
jb 0x4be986
cmp ecx, 0x7b
ja 0x4be986
test bl, bl
je 0x4be986
xor eax, eax
cmp word [eax*8 + 0x500b80], cx
je 0x4be974
inc eax
cmp eax, 5
jb 0x4be962
jmp 0x4be986
test eax, eax
js 0x4be986
push dword [eax*8 + 0x500b84]
mov ecx, edi
call fcn.004c53d0
movzx ecx, word [ebp + 0xc]
lea eax, [ecx - 8]
cmp eax, 0x73
ja case.0x4be99d.9
movzx eax, byte [eax + 0x4bedc0]
jmp dword [eax*4 + 0x4bed58]
lea ecx, [edi + 0x68]
mov byte [edi + 0x15c], 0
call fcn.0048c030
mov dword [edi + 0x160], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
cmp byte [esp + 0x10], bl
jne case.0x4be99d.9
mov ecx, edi
call fcn.004c3d10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
cmp byte [esp + 0x10], bl
jne case.0x4be99d.9
push 0
mov ecx, edi
call fcn.004bcf80
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
mov ecx, edi
cmp byte [esp + 0x10], bl
jne 0x4bea55
push 1
call fcn.004bcf80
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
call fcn.004c3920
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
mov ecx, dword [edi + 0x3c]
push dword [esp + 0x14]
push 0
mov eax, dword [ecx]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
mov ecx, dword [edi + 0x3c]
push dword [esp + 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
cmp byte [esp + 0x10], bl
jne case.0x4be99d.9
mov ecx, edi
call fcn.004c3570
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x10], 0
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.004c2a40
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
test bl, bl
je 0x4beb3c
cmp byte [esp + 0x10], 0
jne case.0x4be99d.9
mov ecx, edi
call fcn.004c1020
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x10], 0
jne 0x4be8df
cmp byte [edi + 0x87], 0
je case.0x4be99d.9
mov ecx, edi
call fcn.004c4330
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x10], 0
je case.0x4be99d.9
mov ecx, edi
call fcn.004c4280
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
je case.0x4be99d.40
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0xc]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
je case.0x4be99d.40
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
cmp byte [esp + 0x20], 0
jne case.0x4be99d.9
cmp byte [esp + 0x10], 0
jne case.0x4be99d.9
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
je 0x4bec01
push 1
mov ecx, edi
call fcn.004c4700
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x10], 0
jne 0x4bec63
test bl, bl
jne 0x4be8df
push 1
mov ecx, edi
call fcn.004c4520
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
mov ecx, edi
push 0
jne 0x4bebf0
cmp byte [esp + 0x14], 0
je 0x4bec14
call fcn.004c49d0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ecx, edi
call fcn.004b5140
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
push 1
mov ecx, edi
call fcn.004c49d0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
mov ecx, edi
call fcn.004c1020
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
mov ecx, edi
call fcn.004c3920
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
mov ecx, edi
call fcn.004be1c0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
mov ecx, edi
call fcn.004c3d50
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test bl, bl
je case.0x4be99d.9
lea eax, [ecx - 0x31]
mov ecx, edi
push eax
call fcn.004abf00
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ecx, edi
call fcn.004c4b10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esp + 0x20], 0
je case.0x4be99d.9
test bl, bl
jne case.0x4be99d.9
cmp byte [esp + 0x10], bl
jne case.0x4be99d.9
mov ecx, edi
call fcn.004b4d20
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8