Function at 0x40f700
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x124
push ebx
push ebp
mov bl, dl
mov dword [esp + 0x14], edx
push esi
mov esi, dword [esp + 0x134]
movzx eax, bl
or ax, si
push edi
mov edi, ecx
je 0x40fd10
mov eax, dword [esp + 0x144]
mov ecx, 0xffc3d44d
test eax, eax
cmove eax, ecx
mov dword [esp + 0x144], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4adb0c]
sete bh
cmp dword [0x4adb68], 0
je 0x40f75e
mov byte [esp + 0x18], 1
test bh, bh
je 0x40f763
mov byte [esp + 0x18], 0
cmp dword [0x4adb68], 1
je 0x40f770
test bh, bh
je 0x40f778
mov byte [esp + 0x140], 0
test bl, bl
jne 0x40f78b
mov ecx, esi
call fcn.00412c10
mov bl, al
mov byte [esp + 0x1c], bl
jmp 0x40f79c
test si, si
jne 0x40f79c
xor dl, dl
mov cl, bl
call fcn.00412900
movzx esi, ax
mov eax, esi
xor ecx, ecx
shr eax, 8
test al, al
setne cl
cmp dword [0x4adb68], 2
mov dword [esp + 0x28], ecx
jne case.default.0x40f7c2
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40f7c2
jmp dword [eax*4 + 0x40fd1c]
mov bl, 0x11
jmp 0x40f7d3
mov bl, 0x10
jmp 0x40f7d3
mov bl, 0x12
mov byte [esp + 0x1c], bl
mov ebp, dword [esp + 0x13c]
test ebp, ebp
je 0x40f909
push 0
mov edx, esi
mov cl, bl
call fcn.00411bd0
add esp, 4
test al, al
je 0x40f8a5
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test edi, edi
jne 0x40f815
movzx eax, bl
or byte [esp + eax + 0x30], 0x80
jmp 0x40f822
cmp edi, 1
jne 0x40f822
movzx eax, bl
and byte [esp + eax + 0x30], 0x7f
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x40f82f
jmp dword [eax*4 + 0x40fd34]
test byte [esp + 0xd2], 0x80
jne 0x40f851
test byte [esp + 0xd3], 0x80
jne 0x40f851
and byte [esp + 0x41], 0x7f
jmp case.default.0x40f82f
or byte [esp + 0x41], 0x80
jmp case.default.0x40f82f
test byte [esp + 0xd0], 0x80
jne 0x40f873
test byte [esp + 0xd1], 0x80
jne 0x40f873
and byte [esp + 0x40], 0x7f
jmp case.default.0x40f82f
or byte [esp + 0x40], 0x80
jmp case.default.0x40f82f
test byte [esp + 0xd4], 0x80
jne 0x40f895
test byte [esp + 0xd5], 0x80
jne 0x40f895
and byte [esp + 0x42], 0x7f
jmp case.default.0x40f82f
or byte [esp + 0x42], 0x80
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx esi, si
shl esi, 0x10
cmp edi, 1
je 0x40f8c6
mov eax, esi
or eax, 1
push eax
movzx eax, bl
push eax
push 0x100
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [esp + 0x140], 0
je 0x40f8e5
cmp edi, 2
jne 0x40f8e5
mov ecx, dword [0x4aa1d8]
mov ecx, dword [ecx + 0x64]
call fcn.00411140
jmp 0x40f8ed
test edi, edi
je 0x40fcd4
or esi, 0xc0000001
movzx eax, bl
push esi
push eax
push 0x101
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40fcd4
cmp byte [0x4ad130], 0
mov dword [0x4af208], edi
mov byte [0x4adbc2], bl
je 0x40f978
cmp bl, 0x12
je 0x40f92d
cmp bl, 0xa4
je 0x40f92d
cmp bl, 0xa5
jne 0x40f978
test bh, bh
jne 0x40f978
mov eax, dword [0x4b05a0]
mov byte [esp + 0x1a], 1
test al, 1
jne 0x40f962
or dword [0x4b05a0], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b05a4], eax
mov eax, dword [0x4b05a4]
test eax, eax
je 0x40f96f
push 0
call eax
mov byte [0x4ad130], 0
jmp 0x40f97d
mov byte [esp + 0x1a], 0
test bh, bh
lea ebp, [esp + 0x2c]
mov eax, 0x4af210
cmove ebp, eax
mov al, byte [esp + 0x18]
cmp bl, 0xa5
jne 0x40fa22
test al, al
jne 0x40fa22
cmp dword [0x4ad0fc], 0
je 0x40fa22
mov al, 1
mov byte [esp + 0x19], al
mov byte [esp + 0x17], al
test bh, bh
jne 0x40f9c2
mov eax, dword [0x4af20c]
mov dword [esp + 0x20], eax
jmp 0x40f9df
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.00411f60
xor edx, edx
mov dword [esp + 0x20], eax
mov ecx, eax
call fcn.00411fb0
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x40f9f4
mov cl, byte [esp + 0x15]
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], cl
jmp 0x40fa6a
push 0xa2
mov byte [esp + 0x1a], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, ax
mov eax, dword [esp + 0x144]
shr ecx, 0xf
and ecx, 0xffffff01
mov dword [0x4ad9f0], eax
mov dword [esp + 0x24], ecx
jmp 0x40fa72
mov byte [esp + 0x19], 0
mov byte [esp + 0x17], 0
test al, al
je 0x40fa5a
push 0
mov edx, esi
mov cl, bl
call fcn.00411bd0
mov ecx, dword [esp + 0x2c]
mov dh, al
mov al, byte [esp + 0x19]
add esp, 4
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0x15]
mov byte [esp + 0x16], cl
mov dword [esp + 0x24], eax
jmp 0x40fa74
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x15]
mov byte [esp + 0x16], al
mov al, byte [esp + 0x15]
mov dword [esp + 0x24], eax
xor dh, dh
mov byte [esp + 0x1b], dh
test bh, bh
jne 0x40fa9b
mov eax, dword [0x4adb68]
cmp eax, 2
je 0x40fa9b
cmp dword [0x4ad0fc], 0
je 0x40fa94
cmp eax, 1
jne 0x40fa9b
mov byte [esp + 0x15], 1
jmp 0x40faa0
mov byte [esp + 0x15], 0
mov bh, byte [esp + 0x18]
cmp edi, 1
je 0x40fb76
test bh, bh
je 0x40face
push dword [esp + 0x144]
mov dl, bl
mov cl, dh
push dword [esp + 0x2c]
push esi
call fcn.00410c10
add esp, 0xc
jmp 0x40fb62
cmp byte [esp + 0x19], 0
je 0x40faeb
mov eax, dword [0x4ad9ec]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x144]
mov dword [0x4ad9ec], eax
push dword [esp + 0x144]
push dword [esp + 0x2c]
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4ad9ec], 0
je 0x40fb62
cmp dword [0x4ad9f0], 0
mov byte [esp + 0x17], 0
je 0x40fb31
mov dword [0x4ad9f0], 0
mov edx, 4
jmp 0x40fb56
cmp byte [esp + 0x24], 0
jne 0x40fb62
movzx eax, byte [esp + 0x16]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
movzx edx, ax
neg edx
sbb edx, edx
add edx, 4
mov ecx, dword [esp + 0x20]
call fcn.00411fb0
mov dword [ebp], eax
cmp byte [esp + 0x15], 0
je 0x40fb76
push esi
mov dl, bl
xor cl, cl
call fcn.00411200
add esp, 4
cmp byte [esp + 0x140], 0
je 0x40fba6
cmp edi, 2
jne 0x40fba6
mov eax, dword [0x4aa1d8]
cmp dword [0x4adb68], edi
jne 0x40fb9c
mov ecx, dword [eax + 0x68]
call fcn.00411140
jmp 0x40fbae
mov ecx, dword [eax + 0x64]
call fcn.00411140
jmp 0x40fbae
test edi, edi
je 0x40fc8d
mov ecx, dword [esp + 0x28]
or ecx, 2
test bh, bh
je 0x40fbd5
push dword [esp + 0x144]
mov dl, bl
push ecx
mov cl, byte [esp + 0x23]
push esi
call fcn.00410c10
add esp, 0xc
jmp 0x40fc62
cmp byte [esp + 0x19], 0
je 0x40fbf2
mov eax, dword [0x4ad9e8]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x144]
mov dword [0x4ad9e8], eax
push dword [esp + 0x144]
push ecx
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4ad9e8], 0
je 0x40fc62
cmp dword [0x4ad9f0], 0
je 0x40fc30
mov dword [0x4ad9f0], 0
mov edx, 4
jmp 0x40fc56
cmp byte [esp + 0x24], 0
je 0x40fc62
movzx eax, byte [esp + 0x16]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
mov edx, 0
test cx, ax
setne dl
add edx, 3
mov ecx, dword [esp + 0x20]
call fcn.00411fb0
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x40fc79
mov eax, 0x138
cmp si, ax
jne 0x40fc79
and byte [0x4af207], 0xfe
cmp byte [esp + 0x15], 0
je 0x40fc8d
push esi
mov dl, bl
mov cl, 1
call fcn.00411200
add esp, 4
cmp byte [esp + 0x1a], 0
je 0x40fcd4
mov eax, dword [0x4b05a0]
test al, 1
jne 0x40fcc0
or dword [0x4b05a0], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b05a4], eax
mov eax, dword [0x4b05a4]
test eax, eax
je 0x40fccd
push 1
call eax
mov byte [0x4ad130], 1
cmp byte [esp + 0x140], 0
je 0x40fd10
cmp dword [0x4adb68], 2
mov eax, dword [0x4aa1d8]
jne 0x40fcfe
mov ecx, dword [eax + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
jmp fcn.00411140
mov ecx, dword [eax + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
jmp fcn.00411140
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret