Function at 0x409e70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
push esi
dec eax
cmp eax, 0x31
ja case.0x409e87.9
xor ecx, ecx
mov cl, byte [eax + 0x40a1e0]
jmp dword [ecx*4 + 0x40a1bc]
mov edx, dword [0x41ac50]
mov eax, dword [0x41a534]
cmp edx, eax
jae 0x409ec6
mov eax, dword [0x41a81c]
mov ecx, dword [esp + 8]
inc edx
add eax, 0x14
mov dword [0x41ac50], edx
mov dword [0x41a81c], eax
mov eax, dword [eax + 0x10]
push 0
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x409f19
cmp dword [0x41a530], 2
jne 0x409ef8
mov eax, dword [0x41a538]
mov dword [0x41ac50], 1
mov dword [0x41a81c], eax
push 0
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0xc]
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x409f19
mov ecx, dword [esp + 8]
push 1
push ecx
mov dword [0x41a81c], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x41a148], 0
mov edx, dword [0x41a4c8]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push edx
call esi
mov eax, dword [0x41b0b0]
push 0
push 0
push eax
call esi
pop esi
ret
mov ecx, dword [0x41a828]
mov eax, dword [0x41a534]
cmp ecx, eax
jae 0x409f74
mov eax, dword [0x41a818]
mov esi, ecx
inc esi
add eax, 0x14
mov dword [0x41a828], esi
mov dword [0x41a818], eax
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 8]
push 0
push edx
push 2
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x409fc7
cmp dword [0x41a530], 2
jne 0x409fa6
mov eax, dword [0x41a538]
mov edx, dword [esp + 8]
mov dword [0x41a828], 1
mov dword [0x41a818], eax
mov ecx, dword [eax + 0x10]
push 0
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x409fc7
mov eax, dword [esp + 8]
push 2
push eax
mov dword [0x41a818], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x41a14c], 0
mov ecx, dword [0x41a4c8]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push ecx
call esi
mov edx, dword [0x41b0b0]
push 0
push 0
push edx
call esi
pop esi
ret
mov eax, dword [0x41b62c]
push 0
add eax, 0x3e8
mov dword [0x41b62c], eax
call fcn.00407b90
mov eax, dword [0x41b0b0]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
add esp, 4
push 1
push 0
push eax
call esi
mov ecx, dword [0x41b644]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x409e87.9
mov edx, dword [0x41b644]
push 1
push 0
push edx
call esi
pop esi
ret
mov esi, dword [0x41b1b4]
push 0
add esi, 0x3e8
mov dword [0x41b1b4], esi
call fcn.00407b90
mov eax, dword [0x41a7e0]
add esp, 4
test eax, eax
jg 0x40a074
mov eax, dword [esp + 8]
push 4
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x41a154], 0
mov ecx, dword [0x41b0b0]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ecx
call esi
mov edx, dword [0x41b644]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x409e87.9
mov eax, dword [0x41b644]
push 1
push 0
push eax
call esi
pop esi
ret
mov eax, dword [0x41a13c]
test eax, eax
jne 0x40a0ca
mov ecx, dword [0x41a138]
push 0
push ecx
call dword [0x41b648]
test eax, eax
je case.0x409e87.9
mov edx, dword [esp + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x41a15c], 0
pop esi
ret
mov esi, dword [esp + 8]
push 6
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push esi
mov dword [0x41a158], 0
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.004084a0
add esp, 4
pop esi
ret
mov ecx, dword [0x41a4c0]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 8], 0x103
je case.0x409e87.9
mov edx, dword [0x41b410]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
push 0
push 0x41b410
push 0x41b420
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je case.0x409e87.9
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x41ba18
push 0
push 0x41a800
mov dword [0x41a800], eax
mov eax, dword [0x41b410]
push 0x40af90
push 0
push 0
mov dword [0x41a804], eax
mov dword [0x41a808], 0xff00
mov dword [0x41a80c], 0
mov dword [0x41a810], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41a4c0], eax
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push ecx
call fcn.00407920
add esp, 8
pop esi
ret