Function at 0x401fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
mov dword [ebp - 0x268], 0
jmp 0x401fc5
mov eax, dword [ebp - 0x268]
add eax, 1
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xf
jge 0x4020d5
cmp dword [ebp - 4], 0x1e
jbe 0x402012
movzx esi, word [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
call fcn.0040c9b0
add esp, 0x18
lea ecx, [esi + eax + 0x61]
mov dword [ebp - 0xc0], ecx
movzx esi, word [ebp - 0x100]
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
movzx edx, byte [ebp - 5]
add ecx, edx
or esi, ecx
mov word [ebp - 0x1ac], si
mov eax, dword [ebp - 0x10c]
sub eax, 5
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x1cc], 0x2e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x1cc]
sub eax, 0x11
mov word [ebp - 0x14], ax
movzx esi, word [ebp - 0xd8]
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.0040c1d0
add esp, 8
and eax, 0x4a
xor esi, eax
mov dword [ebp - 4], esi
mov dword [0x420038], 0xfffffffd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x250]
lea eax, [edx + ecx + 0x49]
mov dword [ebp - 0x250], eax
jmp 0x401fb6
movzx ecx, word [ebp - 0xd8]
or ecx, dword [ebp - 0xf0]
mov edx, dword [0x420058]
sub edx, ecx
mov dword [0x420058], edx
mov eax, 0xffffffd5
sub eax, dword [ebp - 0x1b4]
sub eax, 0x3b
and eax, dword [ebp - 0x124]
mov byte [ebp - 0x11e], al
mov ecx, dword [ebp - 0x1b8]
sub ecx, 0x5a
sub ecx, dword [ebp - 0xa4]
add ecx, 6
mov byte [ebp - 0x1a], cl
movzx edx, byte [ebp - 0x1c5]
add edx, 0x56
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x10c]
xor edx, eax
mov byte [ebp - 0x1c5], dl
mov dword [ebp + 8], 0x47
movzx ecx, word [ebp - 0xb4]
sub ecx, 2
movzx edx, byte [ebp - 0x106]
sub ecx, edx
sub ecx, 0x3f
mov byte [ebp - 5], cl
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x270], ecx
cmp dword [ebp - 0x270], 0
je 0x40219f
cmp dword [ebp - 0x270], 1
je 0x4021ec
cmp dword [ebp - 0x270], 2
je 0x40222a
jmp 0x402323
mov edx, dword [0x420038]
sub edx, 0x84
mov dword [0x420038], edx
movzx eax, word [ebp - 0xe0]
mov ecx, 0x20
sub ecx, eax
sub ecx, 0x35
mov word [ebp - 0xd8], cx
movzx edx, word [ebp - 0xdc]
movzx eax, word [ebp - 0x1a4]
sub edx, eax
mov ecx, dword [0x420054]
sub ecx, edx
mov dword [0x420054], ecx
jmp 0x402336
mov edx, dword [ebp - 0x20]
add edx, 0x19
movzx eax, byte [ebp - 0xe1]
sub edx, eax
add edx, 0x26
mov word [ebp - 0x18], dx
movzx ecx, byte [ebp - 0x1a]
add ecx, 0x38
mov word [ebp - 0x11c], cx
mov edx, dword [ebp - 0xa0]
add edx, 0x3f
movzx eax, byte [ebp - 0x1a]
sub edx, eax
mov dword [ebp - 0xc0], edx
jmp 0x402336
movzx ecx, word [ebp - 0xbc]
add ecx, 0x43
movzx edx, word [ebp - 0x25c]
sub ecx, edx
mov word [ebp - 0x100], cx
mov eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0x128]
movzx ecx, word [ebp - 0x14]
and eax, ecx
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x1cc]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x1cc]
push eax
call fcn.0040cb50
add esp, 0x14
cmp eax, 0x41
jne 0x4022d5
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call fcn.0040bc50
add esp, 8
movzx ecx, byte [ebp - 0x1ad]
add eax, dword [ebp - 0xf0]
add ecx, eax
movzx edx, byte [ebp - 0xc5]
mov eax, dword [ebp - 0x1b8]
sub eax, edx
xor ecx, eax
mov byte [ebp - 0x11e], cl
movzx ecx, word [ebp - 0xe0]
mov dword [ebp - 0x128], ecx
movzx edx, byte [ebp - 0xc5]
cmp edx, 0x22
jne 0x4022ec
mov eax, dword [ebp - 4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
jmp 0x402321
movzx ecx, word [ebp - 0x1ac]
sub ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x124]
xor ecx, dword [ebp - 0x1cc]
mov word [ebp - 0x25c], cx
mov edx, dword [ebp - 0xf0]
sub edx, 0x9d
xor edx, dword [ebp - 0x124]
mov byte [ebp - 0xe9], dl
jmp 0x402336
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0x1b8]
lea edx, [ecx + eax - 0x1b]
mov byte [ebp - 7], dl
movzx eax, byte [ebp - 0xc5]
and eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x26c], 0
jmp 0x402364
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
cmp dword [ebp - 0x26c], 0xd
jge 0x402402
movzx edx, word [ebp - 0xc4]
or edx, 2
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x20], 0x31
movzx eax, byte [ebp - 0x99]
add eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x20]
and ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x52
movzx eax, byte [ebp - 0x105]
sub edx, eax
or edx, 0xffffffa2
mov byte [ebp - 0x1a], dl
movzx ecx, word [ebp - 0x258]
mov edx, 4
sub edx, ecx
mov eax, dword [ebp - 0x128]
sub eax, 0x2f
and edx, eax
mov byte [ebp - 0x106], dl
mov ecx, dword [ebp - 0x250]
add ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x250]
lea eax, [ecx + edx - 0x2c]
mov byte [ebp - 0x1ad], al
jmp 0x402355
movzx ecx, byte [ebp - 0x11d]
xor ecx, 0x10
mov byte [ebp - 0x11d], cl
movzx edx, word [ebp - 0xb4]
add edx, dword [ebp - 0x1b4]
and edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
movzx ecx, word [ebp - 0xf4]
add ecx, 0x3c
movzx edx, word [ebp - 0x19c]
sub ecx, edx
movzx eax, word [ebp - 0xe0]
and eax, ecx
mov word [ebp - 0xe0], ax
movzx ecx, word [ebp - 0x248]
mov dword [0x42005c], ecx
mov dword [0x420050], 0x12
mov eax, dword [ebp - 0x10c]
pop esi
mov esp, ebp
pop ebp
ret