Function at 0x414681
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0x200
jb 0x4146b1
cmp dword [ebp + 8], 0x20a
jbe 0x4146be
cmp dword [ebp + 8], 0x2a1
jne 0x414a01
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0x20a
je 0x4146f7
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
mov dword [ebp - 0xc], ecx
jmp 0x414709
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, 0x4a1ba8
call fcn.00405e7c
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, 0x4a1ba8
call fcn.00405e56
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004033d6
add esp, 0xc
test eax, eax
je 0x414754
xor eax, eax
mov al, byte [0x4a1c30]
test eax, eax
je 0x41474f
mov byte [0x4a1c30], 0
mov ecx, 0x4a3588
call fcn.004777f8
jmp 0x414cdd
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, 0x4a0ec8
call fcn.00401c5a
cmp dword [0x4a1b94], 0
je 0x414779
mov eax, dword [0x4a1b94]
mov dword [ebp - 4], eax
jmp 0x4147dd
cmp dword [0x4a1b98], 0
jne 0x4147d4
cmp dword [ebp + 8], 0x201
je 0x41479d
cmp dword [ebp + 8], 0x204
je 0x41479d
cmp dword [ebp + 8], 0x207
jne 0x4147bd
cmp dword [0x4a1c00], 0
jne 0x4147bd
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00414d20
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4147d2
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00414d20
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4147dd
mov edx, dword [0x4a1b98]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x414809
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0x2c]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x4a1b90]
je 0x4148e6
mov ecx, 0x4a0ec8
call fcn.0040171c
mov dword [ebp - 0x18], 0
cmp dword [0x4a1b90], 0
je 0x41488b
mov esi, esp
push 0
push 0
push 0x507
mov edx, dword [0x4a1b90]
mov eax, dword [edx]
mov ecx, dword [0x4a1b90]
call dword [eax + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [0x4a1b90]
call fcn.00415410
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41488b
mov esi, esp
push 0
mov ecx, dword [0x4a1b90]
push ecx
push 0x509
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
call dword [eax + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp dword [ebp - 0x14], 0
je 0x4148de
mov esi, esp
push 0
push 0
push 0x506
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x14]
call fcn.00415410
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4148de
mov esi, esp
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x508
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 0x14]
mov dword [0x4a1b90], eax
cmp dword [0x4a1b8c], 0
je 0x41491f
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x4a1b8c]
je 0x41491f
cmp dword [ebp + 8], 0x201
je 0x414915
cmp dword [ebp + 8], 0x204
je 0x414915
cmp dword [ebp + 8], 0x207
jne 0x41491f
push 0
call fcn.00414f1b
add esp, 4
mov byte [ebp - 0x10], 0
cmp dword [0x4a1b90], 0
je 0x414954
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4a1b90]
mov eax, dword [edx]
mov ecx, dword [0x4a1b90]
call dword [eax + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x4149d3
cmp dword [0x4a1b94], 0
je 0x414985
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4a1b94]
mov edx, dword [ecx]
mov ecx, dword [0x4a1b94]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x4149d3
cmp dword [0x4a1b98], 0
jne 0x4149d3
xor eax, eax
mov al, byte [0x4a1c28]
test eax, eax
jne 0x4149d3
cmp dword [0x4a1c24], 0
je 0x4149d3
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4a1c24]
mov edx, dword [ecx]
mov ecx, dword [0x4a1c24]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov byte [0x4a1c30], 1
mov byte [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
and eax, 0xff
test eax, eax
jne 0x4149fc
xor ecx, ecx
mov cl, byte [0x4a1c30]
test ecx, ecx
je 0x4149fc
mov byte [0x4a1c30], 0
mov ecx, 0x4a3588
call fcn.004777f8
jmp 0x414cdd
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004033d6
add esp, 0xc
test eax, eax
je 0x414a1e
jmp 0x414cdd
cmp dword [0x4a1b8c], 0
je 0x414a56
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4a1b8c]
mov eax, dword [edx]
mov ecx, dword [0x4a1b8c]
call dword [eax + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
je 0x414a56
jmp 0x414cdd
cmp dword [0x4a1b98], 0
je 0x414a8a
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4a1b98]
mov edx, dword [ecx]
mov ecx, dword [0x4a1b98]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x414cdd
cmp dword [ebp + 8], 0x100
je 0x414aaa
cmp dword [ebp + 8], 0x101
jne 0x414b42
cmp dword [ebp + 0xc], 0x2c
jne 0x414b42
mov dword [ebp - 0x24], 0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x414ad7
mov ecx, dword [ebp - 0x24]
or ecx, 2
mov dword [ebp - 0x24], ecx
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx edx, ax
and edx, 0x8000
test edx, edx
je 0x414afd
mov eax, dword [ebp - 0x24]
or al, 1
mov dword [ebp - 0x24], eax
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je 0x414b24
mov edx, dword [ebp - 0x24]
or edx, 4
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00469206
add esp, 8
test eax, eax
je 0x414b3d
jmp 0x414cdd
jmp 0x414be2
cmp dword [ebp + 8], 0x104
jne 0x414be2
mov dword [ebp - 0x28], 0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx edx, ax
and edx, 0x8000
test edx, edx
je 0x414b7c
mov eax, dword [ebp - 0x28]
or al, 2
mov dword [ebp - 0x28], eax
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je 0x414ba3
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x414bc9
mov ecx, dword [ebp - 0x28]
or ecx, 4
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00469206
add esp, 8
test eax, eax
je 0x414be2
jmp 0x414cdd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x414bfb
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 3
jge 0x414c9d
cmp dword [ebp - 0x1c], 0
jne 0x414c9d
cmp dword [ebp - 0x20], 0
jne 0x414c24
mov ecx, 0x4a1b30
call fcn.004153f0
mov dword [ebp - 4], eax
jmp 0x414c46
cmp dword [ebp - 0x20], 1
jne 0x414c39
mov ecx, 0x4a1ad4
call fcn.004153f0
mov dword [ebp - 4], eax
jmp 0x414c46
mov ecx, 0x4a1a78
call fcn.004153f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414c98
mov ecx, dword [ebp - 4]
call fcn.004153f0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
call fcn.004184cd
test eax, eax
je 0x414c90
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
call dword [eax + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
je 0x414c90
mov dword [ebp - 0x1c], 1
jmp 0x414c98
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
jmp 0x414c46
jmp 0x414bf2
cmp dword [ebp - 0x1c], 0
jne 0x414cdd
cmp dword [0x4a1c24], 0
je 0x414cdd
xor edx, edx
mov dl, byte [0x4a1c28]
test edx, edx
jne 0x414cdd
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4a1c24]
mov edx, dword [eax]
mov ecx, dword [0x4a1c24]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
add esp, 0x2c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret