Function at 0x4080c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
push esi
dec eax
cmp eax, 6
ja case.default.0x4080cf
jmp dword [eax*4 + 0x408404]
mov ecx, dword [0x412b30]
mov eax, dword [0x412418]
cmp ecx, eax
jae 0x408110
mov eax, dword [0x4126fc]
mov esi, ecx
inc esi
add eax, 0x14
mov dword [0x412b30], esi
mov dword [0x4126fc], eax
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 8]
push 0
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408163
cmp dword [0x412414], 2
jne 0x408142
mov eax, dword [0x41241c]
mov edx, dword [esp + 8]
mov dword [0x412b30], 1
mov dword [0x4126fc], eax
mov ecx, dword [eax + 0x10]
push 0
push ecx
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408163
mov eax, dword [esp + 8]
push 1
push eax
mov dword [0x4126fc], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x41201c], 0
mov ecx, dword [0x412398]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push ecx
call esi
mov edx, dword [0x412d70]
push 0
push 0
push edx
call esi
pop esi
ret
mov eax, dword [0x412708]
mov ecx, dword [0x412418]
cmp eax, ecx
jae 0x4081bf
mov edx, eax
mov eax, dword [0x4126f8]
inc edx
add eax, 0x14
mov dword [0x412708], edx
mov edx, dword [esp + 8]
mov dword [0x4126f8], eax
mov ecx, dword [eax + 0x10]
push 0
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408212
cmp dword [0x412414], 2
jne 0x4081f1
mov eax, dword [0x41241c]
mov ecx, dword [esp + 8]
mov dword [0x412708], 1
mov dword [0x4126f8], eax
mov eax, dword [eax + 0x10]
push 0
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408212
mov edx, dword [esp + 8]
push 2
push edx
mov dword [0x4126f8], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x412020], 0
mov eax, dword [0x412398]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push eax
call esi
mov ecx, dword [0x412d70]
push 0
push 0
push ecx
call esi
pop esi
ret
mov eax, dword [0x41320c]
mov esi, 0x3e8
add eax, esi
push 0
mov dword [0x41320c], eax
call fcn.00405ee0
mov eax, dword [0x4126c0]
add esp, 4
test eax, eax
jg 0x40825d
sub dword [0x41320c], esi
mov edx, dword [0x412d70]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push edx
call esi
mov eax, dword [0x413224]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x4080cf
mov ecx, dword [0x413224]
push 1
push 0
push ecx
call esi
pop esi
ret
mov esi, dword [0x412da8]
push 0
add esi, 0x3e8
mov dword [0x412da8], esi
call fcn.00405ee0
mov eax, dword [0x4126c0]
add esp, 4
test eax, eax
jg 0x4082cf
mov edx, dword [esp + 8]
push 4
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x412028], 0
mov eax, dword [0x412d70]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push eax
call esi
mov ecx, dword [0x413224]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.default.0x4080cf
mov edx, dword [0x413224]
push 1
push 0
push edx
call esi
pop esi
ret
mov eax, dword [0x412010]
test eax, eax
jne 0x408324
mov eax, dword [0x412008]
push 0
push eax
call dword [0x413228]
test eax, eax
je case.default.0x4080cf
mov ecx, dword [esp + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x412030], 0
pop esi
ret
mov esi, dword [esp + 8]
push 6
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push esi
mov dword [0x41202c], 0
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.00406910
add esp, 4
pop esi
ret
mov eax, dword [0x412390]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 8], 0x103
je case.default.0x4080cf
mov ecx, dword [0x412ff0]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
push 0
push 0x412ff0
push 0x413000
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je case.default.0x4080cf
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [0x412ff0]
push 0x4133d8
push 0
push 0x4126e0
push 0x409190
push 0
push 0
mov dword [0x4126e0], eax
mov dword [0x4126e4], edx
mov dword [0x4126e8], 0xff00
mov dword [0x4126ec], 0
mov dword [0x4126f0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x412390], eax
pop esi
ret