Function at 0x411af0
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Log keystrokes via polling
Set current directory

Disassembly:
mov eax, dword [edi]
test eax, eax
je 0x411b0e
cmp dword [eax], 0
je 0x411b05
mov eax, dword [0x49d3c8]
mov byte [eax + 0xc0], 1
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xbc], ecx
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
add byte [ebp - 0x6e7af040], al
push es
add byte [eax], al
add byte [ebp - 0x6e7af040], al
push es
add byte [eax], al
mov edx, dword [0x49d3c8]
mov byte [edx + 0xc0], al
inc esi
cmp dword [0x4a2b64], esi
je 0x411b19
add edi, 4
cmp edi, 0x4a1344
jl 0x411ac0
mov esi, dword [esp + 0x2c]
cmp esi, 0x312
ja 0x411c84
je 0x411cb5
cmp esi, 0x100
ja 0x411b9f
je 0x411b70
cmp esi, 0x12
je 0x411b5b
cmp esi, 0x4b
jne case.default.0x411c9a
mov dword [0x4a0b70], 0
mov byte [esp + 0x1a], 1
jmp fcn.0041145b
push 0
push 0
push 6
mov ecx, 0x4a2c18
call fcn.00424960
jmp fcn.0041145b
mov ecx, dword [esp + 0x28]
cmp ecx, dword [0x4a0a3c]
jne case.default.0x411c9a
cmp dword [esp + 0x30], 0x1b
jne case.default.0x411c9a
mov edx, dword [0x4a0a38]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp fcn.0041145b
cmp esi, 0x113
jne case.default.0x411c9a
cmp dword [esp + 0x34], 0
jne case.default.0x411c9a
mov eax, dword [0x4a0a38]
cmp dword [esp + 0x28], eax
jne case.default.0x411c9a
cmp dword [0x4a24a0], 0
je 0x411bd3
call fcn.00412b90
cmp dword [0x4a30b0], 0
je 0x411bea
call fcn.00412a20
test al, al
je 0x411bea
mov byte [esp + 0x18], 1
cmp dword [ebp + 0xc], 0
je fcn.0041145b
cmp dword [ebp + 8], 1
jl fcn.0041145b
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov esi, dword [ebp + 8]
push ecx
push edx
call fcn.004129e0
add esp, 8
test eax, eax
je fcn.0041145b
cmp byte [esp + 0x1b], 0
je 0x411c29
mov byte [0x4a0b80], 0
cmp byte [esp + 0x19], 0
je 0x411c79
dec dword [0x4a0b90]
cmp dword [ebp + 8], 0
jle 0x411c79
cmp dword [0x4a0b90], 0
jne 0x411c79
cmp dword [0x4a30b0], 0
jne 0x411c79
cmp dword [0x4a24a0], 0
jne 0x411c79
cmp byte [0x4a0b7a], 0
je 0x411c79
mov eax, dword [0x4a0a38]
push 9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x411c79
mov byte [0x4a0b7a], 0
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x400]
cmp eax, 0x15
ja case.default.0x411c9a
movzx eax, byte [eax + 0x402908]
jmp dword [eax*4 + 0x4028fc]
xor ebx, ebx
lea eax, [esi - 0x401]
mov dword [esp + 0x68], ebx
cmp eax, 0x14
ja case.default.0x411cd1
movzx ecx, byte [eax + 0x402934]
jmp dword [ecx*4 + 0x402920]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x49e4e0]
mov eax, ecx
and eax, 0x3fff
cmp ax, word [edx]
jae fcn.0041145b
mov edx, dword [eax*4 + 0x4a14f0]
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x5c], edx
test ax, ax
je 0x411ffa
mov ecx, edx
mov ebx, dword [ecx + 0x20]
add eax, 0xffff
mov dword [esp + 0x1c], ebx
test ax, ax
je 0x411ff6
mov edx, dword [ebx + 0x14]
add eax, 0xffff
mov dword [esp + 0x1c], edx
mov ebx, edx
test ax, ax
jne 0x411fe3
test ebx, ebx
jne 0x41201a
mov eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x54]
call fcn.00419700
mov dword [esp + 0x1c], eax
test eax, eax
je fcn.0041145b
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov al, byte [ebx + 0x1e]
cmp al, 1
je 0x41202d
cmp al, 3
je 0x41202d
mov dword [esp + 0x50], 0
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov al, byte [edx]
lea eax, [esi - 0x401]
cmp eax, 0x14
ja case.default.0x412097
movzx ecx, byte [eax + 0x402974]
jmp dword [ecx*4 + 0x402960]
mov cl, byte [ebx + 0x1f]
cmp cl, byte [ebx + 0x20]
jb 0x41220a
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov al, byte [eax]
cmp al, 0xd8
je 0x41220a
cmp al, 0xc4
je 0x41220a
cmp al, 0xd2
je 0x41220a
cmp al, 0xd3
je 0x41220a
cmp al, 0xce
je 0x41220a
cmp al, 0xcf
je 0x41220a
cmp al, 0xd0
je 0x41220a
cmp al, 0xd1
je 0x41220a
cmp byte [ebx + 0x22], 0
je 0x4121fc
mov byte [ebx + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 4], eax
jmp fcn.0041145b
mov edi, dword [ebx + 0x18]