Function at 0x4124d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x12c
push ebx
push ebp
mov bl, dl
mov dword [esp + 0x18], edx
push esi
mov esi, dword [esp + 0x13c]
movzx eax, bl
or ax, si
push edi
mov edi, ecx
je 0x412aa2
mov eax, dword [esp + 0x14c]
mov ecx, 0xffc3d44d
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4f8404]
sete bh
cmp dword [0x4fa7fc], 0
je 0x41252b
mov byte [esp + 0x16], 1
test bh, bh
je 0x412530
mov byte [esp + 0x16], 0
cmp dword [0x4fa7fc], 1
je 0x41253d
test bh, bh
je 0x412545
mov byte [esp + 0x148], 0
test bl, bl
jne 0x41255f
mov ecx, esi
call fcn.00415f50
mov edx, dword [esp + 0x140]
mov bl, al
mov byte [esp + 0x20], bl
jmp 0x41257e
mov edx, dword [esp + 0x140]
test dx, dx
jne 0x41257e
xor dl, dl
mov cl, bl
call fcn.00415b20
movzx edx, ax
mov dword [esp + 0x140], edx
mov eax, edx
mov byte [esp + 0x2c], dl
xor ecx, ecx
shr eax, 8
test al, al
setne cl
cmp dword [0x4fa7fc], 2
mov dword [esp + 0x30], ecx
jne case.default.0x4125a8
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4125a8
jmp dword [eax*4 + 0x412ab0]
mov bl, 0x11
jmp 0x4125b9
mov bl, 0x10
jmp 0x4125b9
mov bl, 0x12
mov byte [esp + 0x20], bl
mov ebp, dword [esp + 0x144]
test ebp, ebp
je 0x4126f4
push 0
mov cl, bl
call fcn.00414ce0
add esp, 4
test al, al
je 0x412690
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test edi, edi
jne 0x4125f9
movzx eax, bl
or byte [esp + eax + 0x38], 0x80
jmp 0x412606
cmp edi, 1
jne 0x412606
movzx eax, bl
and byte [esp + eax + 0x38], 0x7f
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x412613
jmp dword [eax*4 + 0x412ac8]
test byte [esp + 0xda], 0x80
jne 0x412635
test byte [esp + 0xdb], 0x80
jne 0x412635
and byte [esp + 0x49], 0x7f
jmp case.default.0x412613
or byte [esp + 0x49], 0x80
jmp case.default.0x412613
test byte [esp + 0xd8], 0x80
jne 0x412657
test byte [esp + 0xd9], 0x80
jne 0x412657
and byte [esp + 0x48], 0x7f
jmp case.default.0x412613
or byte [esp + 0x48], 0x80
jmp case.default.0x412613
test byte [esp + 0xdc], 0x80
jne 0x412679
test byte [esp + 0xdd], 0x80
jne 0x412679
and byte [esp + 0x4a], 0x7f
jmp case.default.0x412613
or byte [esp + 0x4a], 0x80
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [esp + 0x140]
movzx esi, dx
shl esi, 0x10
cmp edi, 1
je 0x4126b1
mov eax, esi
or eax, 1
push eax
movzx eax, bl
push eax
push 0x100
push ebp
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esp + 0x148], 0
je 0x4126d0
cmp edi, 2
jne 0x4126d0
mov ecx, dword [0x4f48cc]
mov ecx, dword [ecx + 0x64]
call fcn.00414120
jmp 0x4126d8
test edi, edi
je 0x412a66
or esi, 0xc0000001
movzx eax, bl
push esi
push eax
push 0x101
push ebp
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x412a66
cmp byte [0x4f797a], 0
mov dword [0x4fa784], edi
mov byte [0x4fa788], bl
je 0x412738
cmp bl, 0x12
je 0x412718
cmp bl, 0xa4
je 0x412718
cmp bl, 0xa5
jne 0x412738
test bh, bh
jne 0x412738
push 0
mov byte [esp + 0x1f], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov edx, dword [esp + 0x140]
mov byte [0x4f797a], bh
jmp 0x41273d
mov byte [esp + 0x1b], 0
test bh, bh
lea ebp, [esp + 0x34]
mov eax, 0x4fa7e0
cmove ebp, eax
mov al, byte [esp + 0x16]
cmp bl, 0xa5
jne 0x4127da
test al, al
jne 0x4127da
cmp dword [0x4f790c], 0
je 0x4127da
mov byte [esp + 0x19], 1
mov byte [esp + 0x17], 1
test bh, bh
jne 0x41277f
mov esi, dword [0x4fa78c]
mov dword [esp + 0x28], esi
jmp 0x41279e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.004150f0
mov esi, eax
xor edx, edx
mov ecx, esi
mov dword [esp + 0x28], esi
call fcn.00415140
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x4127b3
mov cl, byte [esp + 0x15]
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], cl
jmp 0x412824
push 0xa2
mov byte [esp + 0x1c], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 0xffffff01
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4f82e0], eax
jmp 0x41282c
mov byte [esp + 0x19], 0
mov byte [esp + 0x17], 0
test al, al
je 0x412814
push 0
mov cl, bl
call fcn.00414ce0
mov cl, byte [esp + 0x19]
mov ch, al
mov esi, dword [esp + 0x30]
add esp, 4
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x15]
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], cl
mov dword [esp + 0x24], eax
jmp 0x412839
mov al, byte [esp + 0x15]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], al
mov al, byte [esp + 0x15]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x140]
xor ch, ch
mov byte [esp + 0x1a], ch
test bh, bh
jne 0x41285c
mov eax, dword [0x4fa7fc]
cmp eax, 2
je 0x41285c
cmp dword [0x4f790c], 0
je 0x412855
cmp eax, 1
jne 0x41285c
mov byte [esp + 0x15], 1
jmp 0x412861
mov byte [esp + 0x15], 0
mov bh, byte [esp + 0x16]
cmp edi, 1
je 0x412938
test bh, bh
je 0x41288c
push dword [esp + 0x1c]
mov cl, ch
push dword [esp + 0x34]
push edx
mov dl, bl
call fcn.00413b30
add esp, 0xc
jmp 0x41291b
cmp byte [esp + 0x19], 0
je 0x4128a6
mov eax, dword [0x4f82dc]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x1c]
mov dword [0x4f82dc], eax
push dword [esp + 0x1c]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4f82dc], 0
je 0x41291b
cmp dword [0x4f82e0], 0
mov byte [esp + 0x17], 0
je 0x4128ec
mov dword [0x4f82e0], 0
mov edx, 4
jmp 0x412911
cmp byte [esp + 0x24], 0
jne 0x41291b
movzx eax, byte [esp + 0x18]
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, esi
call fcn.00415140
mov dword [ebp], eax
cmp byte [esp + 0x15], 0
mov esi, dword [esp + 0x140]
je 0x41293f
push esi
mov dl, bl
xor cl, cl
call fcn.00414220
add esp, 4
jmp 0x41293f
mov esi, dword [esp + 0x140]
cmp byte [esp + 0x148], 0
je 0x41296f
cmp edi, 2
jne 0x41296f
mov eax, dword [0x4f48cc]
cmp dword [0x4fa7fc], edi
jne 0x412965
mov ecx, dword [eax + 0x68]
call fcn.00414120
jmp 0x412977
mov ecx, dword [eax + 0x64]
call fcn.00414120
jmp 0x412977
test edi, edi
je 0x412a50
mov ecx, dword [esp + 0x30]
or ecx, 2
test bh, bh
je 0x41299b
push dword [esp + 0x1c]
mov dl, bl
push ecx
mov cl, byte [esp + 0x22]
push esi
call fcn.00413b30
add esp, 0xc
jmp 0x412a25
cmp byte [esp + 0x19], 0
je 0x4129b5
mov eax, dword [0x4f82d8]
cmp dword [ebp], 3
cmove eax, dword [esp + 0x1c]
mov dword [0x4f82d8], eax
push dword [esp + 0x1c]
push ecx
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_keybd_event]
cmp byte [esp + 0x17], 0
mov dword [0x4f82d8], 0
je 0x412a25
cmp dword [0x4f82e0], 0
je 0x4129f3
mov dword [0x4f82e0], 0
mov edx, 4
jmp 0x412a19
cmp byte [esp + 0x24], 0
je 0x412a25
movzx eax, byte [esp + 0x18]
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 + 0x28]
call fcn.00415140
mov dword [ebp], eax
cmp dword [ebp], 0
je 0x412a3c
mov eax, 0x138
cmp si, ax
jne 0x412a3c
and byte [0x4fa7f0], 0xfe
cmp byte [esp + 0x15], 0
je 0x412a50
push esi
mov dl, bl
mov cl, 1
call fcn.00414220
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x412a66
push 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f797a], 1
cmp byte [esp + 0x148], 0
je 0x412aa2
cmp dword [0x4fa7fc], 2
mov eax, dword [0x4f48cc]
jne 0x412a90
mov ecx, dword [eax + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
jmp fcn.00414120
mov ecx, dword [eax + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
jmp fcn.00414120
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret