Function at 0x413a80
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
add dword [0x435a30], 1
push ebx
adc dword [0x435a34], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
lea eax, [ebp - 0x10]
push eax
call esi
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x435b58]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x435b5c]
push 0
push 0xf4240
push eax
push ecx
call fcn.004258f0
push dword [0x435b6c]
push dword [0x435b68]
push edx
push eax
call fcn.00425d00
xor edx, edx
mov ecx, eax
mov eax, dword [0x435a38]
cmp edx, dword [0x435a3c]
ja 0x413afc
jb 0x413af7
cmp ecx, eax
jae 0x413afc
sub ecx, eax
dec ecx
jmp 0x413afe
sub ecx, eax
xor edx, edx
mov eax, 0xf4240
div dword [0x4328b8]
cmp ecx, eax
jb 0x413aa7
lea eax, [ebp - 0x10]
push eax
call esi
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x435b58]
mov eax, dword [ebp - 0xc]
sbb eax, dword [0x435b5c]
push 0
push 0xf4240
push eax
push ecx
call fcn.004258f0
push dword [0x435b6c]
push dword [0x435b68]
push edx
push eax
call fcn.00425d00
xor bl, bl
mov dword [0x435a38], eax
cmp dword [0x4328c0], 1
mov dword [0x435a3c], 0
mov word [0x4328e0], 0
jne 0x413b91
mov eax, dword [0x4339f0]
cmp byte [eax + 0x12b], bl
jne 0x413b8d
push 0x20
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 8
mov bl, byte [0x4328e1]
jae 0x413b91
xor ecx, ecx
jmp 0x413b96
mov ecx, 1
mov esi, dword [0x435a44]
cmp ecx, dword [0x4328c4]
je 0x413c04
mov dword [0x4328c4], ecx
xor cl, 1
mov byte [0x4328e2], cl
je 0x413bd9
mov edx, esi
mov byte [0x4328e0], 1
xor eax, eax
add edx, dword [0x435a30]
mov dword [0x4328c8], edx
adc eax, dword [0x435a34]
mov dword [0x4328cc], eax
jmp 0x413c10
mov edx, dword [0x4328c8]
mov edi, esi
xor eax, eax
mov bl, 1
add edi, dword [0x435a30]
mov dword [0x4328d0], edi
adc eax, dword [0x435a34]
mov dword [0x4328d4], eax
mov byte [0x4328e1], bl
jmp 0x413c16
mov cl, byte [0x4328e2]
mov edx, dword [0x4328c8]
mov edi, dword [0x4328d0]
xor eax, eax
test cl, cl
mov ecx, dword [0x435a30]
je 0x413c46
mov edi, esi
add edi, ecx
adc eax, dword [0x435a34]
cmp eax, dword [0x4328cc]
jb 0x413c68
ja 0x413c3a
cmp edi, edx
jb 0x413c68
sub ecx, edx
add ecx, esi
mov dword [0x4328d8], ecx
jmp 0x413c6e
mov edx, esi
add edx, ecx
adc eax, dword [0x435a34]
cmp eax, dword [0x4328d4]
jb 0x413c68
ja 0x413c5e
cmp edx, edi
jb 0x413c68
sub ecx, edi
add ecx, esi
mov dword [0x4328dc], ecx
mov ecx, dword [0x4328d8]
mov edi, dword [0x4328b8]
test bl, bl
je 0x413ca2
imul edx, edi, 0xfa
cmp edx, 0x3e8
jae 0x413c8d
mov edx, 1
jmp 0x413c97
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov byte [0x4328e3], 1
cmp ecx, edx
jbe 0x413ca9
mov byte [0x4328e3], 0
test bl, bl
je 0x413cd7
imul edx, edi, 0xfa
cmp edx, 0x3e8
jae 0x413cc2
mov edx, 1
jmp 0x413ccc
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov byte [0x4328e4], 1
cmp ecx, edx
ja 0x413cde
mov byte [0x4328e4], 0
mov eax, dword [0x433a18]
sub eax, 0
je 0x413e15
sub eax, 1
je 0x413d6d
sub eax, 1
jne 0x413e15
mov eax, dword [0x433a08]
cmp byte [eax + 0x23], 0
je 0x413d15
mov ecx, dword [0x433a0c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [0x433a08]
cmp byte [eax + 0x24], 0
je 0x413d26
mov ecx, dword [0x433a0c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x433a0c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x413d69
mov ecx, dword [0x433a0c]
test ecx, ecx
je 0x413d51
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x433a0c], 0
mov dword [0x433a18], 0
xor al, al
mov dword [0x433a1c], 0
jmp 0x413d72
mov al, 1
jmp 0x413d72
call fcn.004062c0
test al, al
jne 0x413e77
mov ecx, dword [0x433a08]
mov edi, dword [0x433a20]
test edi, edi
jne 0x413da3
call fcn.00409c50
test al, al
je 0x413e77
mov ecx, dword [0x433a08]
mov edi, dword [0x433a20]
cmp byte [ecx + 0x23], 0
je 0x413df2
mov cl, byte [0x433a05]
test cl, cl
je 0x413e72
movzx eax, byte [0x433a06]
xor edx, edx
inc eax
movzx esi, cl
div esi
mov byte [0x433a06], dl
call fcn.00403640
test edi, edi
je 0x413ddd
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov dword [0x433a20], 0
call fcn.00409c50
mov edi, dword [0x433a20]
cmp byte [0x433a05], 0
je 0x413e72
test edi, edi
je 0x413e72
call fcn.00409c50
test al, al
je 0x413e72
mov ecx, dword [0x433a20]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x413e77
mov ecx, dword [0x433a08]
cmp byte [ecx + 0x22], 0
je 0x413d80
imul edx, edi, 0x3e8
cmp edx, 0x3e8
jae 0x413e3a
mov edx, 1
jmp 0x413e44
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp dword [ecx + 0x18], edx
jb 0x413d80
xor eax, eax
mov dword [0x433a18], 1
add esi, dword [0x435a30]
mov dword [0x433a10], esi
adc eax, dword [0x435a34]
mov dword [0x433a14], eax
jmp 0x413e77
call fcn.00403640
call fcn.00406220
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004143eb
mov esp, ebp
pop ebp
ret