Function at 0x411200
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x11c
push ebx
mov bl, byte [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
movzx eax, bl
push edi
mov edi, dword [esp + 0x138]
or ax, di
je 0x411812
cmp dword [esp + 0x144], 0
jne 0x411240
mov dword [esp + 0x144], 0xffc3d44d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x514dd0]
mov eax, dword [0x51675c]
sete byte [esp + 0x11]
test eax, eax
je 0x411266
cmp byte [esp + 0x11], 0
mov byte [esp + 0x12], 1
je 0x41126b
mov byte [esp + 0x12], 0
cmp eax, 1
je 0x411277
cmp byte [esp + 0x11], 0
je 0x41127f
mov byte [esp + 0x140], 0
test bl, bl
jne 0x411293
mov ebx, edi
call fcn.00414b40
mov byte [esp + 0x134], al
jmp 0x4112b4
test di, di
jne 0x4112bb
mov ecx, dword [esp + 0x134]
push ecx
xor bl, bl
call fcn.00414830
movzx edi, ax
add esp, 4
mov dword [esp + 0x138], edi
mov bl, byte [esp + 0x134]
mov edx, edi
xor eax, eax
shr edx, 8
test dl, dl
setne al
cmp dword [0x51675c], 2
mov dword [esp + 0x1c], eax
jne case.default.0x4112e1
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x4112e1
jmp dword [eax*4 + 0x411820]
mov byte [esp + 0x134], 0x11
jmp 0x411304
mov byte [esp + 0x134], 0x10
jmp 0x411304
mov byte [esp + 0x134], 0x12
mov bl, byte [esp + 0x134]
mov esi, dword [esp + 0x13c]
test esi, esi
je 0x41144b
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00413940
test al, al
je 0x4113d4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, 0x80
mov dl, 0x7f
test ebp, ebp
jne 0x41134d
movzx eax, bl
or byte [esp + eax + 0x28], cl
lea eax, [esp + eax + 0x28]
jmp 0x41135d
cmp ebp, 1
jne 0x41135d
movzx eax, bl
and byte [esp + eax + 0x28], dl
lea eax, [esp + eax + 0x28]
movzx eax, bl
add eax, 0xffffff60
cmp eax, 5
ja case.default.0x41136a
jmp dword [eax*4 + 0x411838]
test byte [esp + 0xca], cl
jne 0x411389
test byte [esp + 0xcb], cl
jne 0x411389
and byte [esp + 0x39], dl
jmp case.default.0x41136a
or byte [esp + 0x39], cl
jmp case.default.0x41136a
test byte [esp + 0xc8], cl
jne 0x4113a7
test byte [esp + 0xc9], cl
jne 0x4113a7
and byte [esp + 0x38], dl
jmp case.default.0x41136a
or byte [esp + 0x38], cl
jmp case.default.0x41136a
test byte [esp + 0xcc], cl
jne 0x4113c5
test byte [esp + 0xcd], cl
jne 0x4113c5
and byte [esp + 0x3a], dl
jmp case.default.0x41136a
or byte [esp + 0x3a], cl
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edi, word [esp + 0x138]
mov eax, ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
shl edi, 0x10
cmp eax, 1
je 0x411405
mov eax, edi
or eax, 1
push eax
movzx ecx, bl
push ecx
push 0x100
push esi
call ebp
mov eax, dword [esp + 0x130]
cmp byte [esp + 0x140], 0
je 0x411424
cmp eax, 2
jne 0x411424
mov edx, dword [0x51161c]
mov esi, dword [edx + 0x64]
call fcn.00412ca0
jmp 0x41142c
test eax, eax
je 0x4117d9
mov ecx, dword [esp + 0x13c]
or edi, 0xc0000001
push edi
movzx eax, bl
push eax
push 0x101
push ecx
call ebp
jmp 0x4117d9
cmp byte [0x5166ed], 0
mov dword [0x514e04], ebp
mov byte [0x516721], bl
je 0x41148b
cmp bl, 0x12
je 0x41146f
cmp bl, 0xa4
je 0x41146f
cmp bl, 0xa5
jne 0x41148b
cmp byte [esp + 0x11], 0
jne 0x41148b
xor bl, bl
mov byte [esp + 0x16], 1
call fcn.0042ed40
mov bl, byte [esp + 0x134]
jmp 0x41149b
cmp byte [esp + 0x11], 0
mov byte [esp + 0x16], 0
lea esi, [esp + 0x24]
jne 0x4114a0
mov esi, 0x514dfc
mov dword [esp + 0x18], esi
cmp bl, 0xa5
jne 0x4114bd
cmp byte [esp + 0x12], 0
jne 0x4114bd
cmp dword [0x51600c], 0
je 0x4114bd
mov al, 1
jmp 0x4114bf
xor al, al
mov byte [esp + 0x14], al
mov byte [esp + 0x13], al
test al, al
je 0x411528
cmp byte [esp + 0x11], 0
jne 0x4114da
mov ebp, dword [0x514e00]
jmp 0x4114f4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call fcn.00413da0
mov ebp, eax
push ebp
xor eax, eax
call fcn.00413e90
add esp, 4
mov dword [esi], eax
cmp dword [esi], 0
je 0x411500
mov byte [esp + 0x13], 0
jmp 0x41152c
push 0xa2
mov byte [esp + 0x19], 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edx, dword [esp + 0x144]
mov dword [0x516000], edx
shr eax, 0xf
and al, 1
mov byte [esp + 0x17], al
jmp 0x41152c
mov ebp, dword [esp + 0x24]
cmp byte [esp + 0x12], 0
je 0x411544
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00413940
mov byte [esp + 0x20], al
jmp 0x411549
mov byte [esp + 0x20], 0
cmp byte [esp + 0x11], 0
jne 0x41156f
mov eax, dword [0x51675c]
cmp eax, 2
je 0x41156f
cmp dword [0x51600c], 0
je 0x411568
cmp eax, 1
jne 0x41156f
mov byte [esp + 0x11], 1
jmp 0x411574
mov byte [esp + 0x11], 0
cmp dword [esp + 0x130], 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov ebx, dword [esp + 0x20]
je 0x41167a
cmp byte [esp + 0x12], 0
je 0x4115be
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
push eax
push ecx
push esi
push edx
push ebx
call fcn.00412780
add esp, 0x14
jmp 0x41165e
cmp byte [esp + 0x14], 0
je 0x4115db
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x4115db
mov ecx, dword [esp + 0x144]
mov dword [0x516004], ecx
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
push edx
push eax
push esi
push ecx
call edi
cmp byte [esp + 0x13], 0
mov dword [0x516004], 0
je 0x41165e
cmp dword [0x516000], 0
mov byte [esp + 0x13], 0
je 0x41162a
mov dword [0x516000], 0
mov eax, 4
jmp 0x41164f
cmp byte [esp + 0x17], 0
jne 0x41165e
movzx eax, byte [esp + 0x15]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
movzx eax, ax
neg eax
sbb eax, eax
add eax, 4
push ebp
call fcn.00413e90
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
add esp, 4
cmp byte [esp + 0x11], 0
je 0x411681
mov eax, dword [esp + 0x134]
push esi
push eax
xor dl, dl
call fcn.00412e60
add esp, 8
jmp 0x411681
mov esi, dword [esp + 0x138]
cmp byte [esp + 0x140], 0
je 0x4116cf
mov eax, 2
cmp dword [esp + 0x130], eax
jne 0x4116cf
cmp dword [0x51675c], eax
jne 0x4116b8
mov ecx, dword [0x51161c]
mov esi, dword [ecx + 0x68]
call fcn.00412ca0
mov esi, dword [esp + 0x138]
jmp 0x4116dd
mov edx, dword [0x51161c]
mov esi, dword [edx + 0x64]
call fcn.00412ca0
mov esi, dword [esp + 0x138]
jmp 0x4116dd
cmp dword [esp + 0x130], 0
je 0x4117cb
or dword [esp + 0x1c], 2
cmp byte [esp + 0x12], 0
je 0x41170d
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x134]
push eax
push ecx
push esi
push edx
push ebx
call fcn.00412780
add esp, 0x14
jmp 0x411797
cmp byte [esp + 0x14], 0
je 0x41172a
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x41172a
mov ecx, dword [esp + 0x144]
mov dword [0x516008], ecx
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x134]
push edx
push eax
push esi
push ecx
call edi
xor eax, eax
mov dword [0x516008], eax
cmp byte [esp + 0x13], al
je 0x411797
cmp dword [0x516000], eax
je 0x411763
mov dword [0x516000], eax
mov eax, 4
jmp 0x411788
cmp byte [esp + 0x17], al
je 0x411797
movzx eax, byte [esp + 0x15]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 0
setne al
add eax, 3
push ebp
call fcn.00413e90
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
je 0x4117b1
mov ecx, 0x138
cmp si, cx
jne 0x4117b1
and byte [0x514de3], 0xfe
cmp byte [esp + 0x11], 0
je 0x4117cb
mov edx, dword [esp + 0x134]
push esi
push edx
mov dl, 1
call fcn.00412e60
add esp, 8
cmp byte [esp + 0x16], 0
je 0x4117d9
mov bl, 1
call fcn.0042ed40
cmp byte [esp + 0x140], 0
je 0x411812
cmp dword [0x51675c], 2
jne 0x411804
mov eax, dword [0x51161c]
mov esi, dword [eax + 0x60]
call fcn.00412ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
mov ecx, dword [0x51161c]
mov esi, dword [ecx + 0x5c]
call fcn.00412ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret