Function at 0x409327
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push ebx
call esi
or eax, 0x8001
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov byte [ebp - 8], bl
push 0xfffffffffffffff4
mov byte [ebp - 1], bl
mov byte [ebp - 7], bl
call esi
push 0xfffffffffffffff5
mov dword [0x48e2bc], eax
call esi
push dword [ebp + 0x14]
mov dword [0x48e2b8], eax
push dword [ebp + 8]
call fcn.0040cda6
mov edi, dword [ebp + 0x10]
cmp edi, ebx
pop ecx
pop ecx
je 0x40958a
mov esi, 0x48fbf0
lea ecx, [ebp - 0x10]
call fcn.0042aeb8
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0041640e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042609c
mov edi, dword [ebp - 0xc]
push 4
push edi
push 0x47b468
call fcn.00426f79
add esp, 0x18
test al, al
je 0x4093c6
mov ax, word [edi + 8]
call fcn.00426083
test al, al
jne 0x4093e7
push 5
push edi
push str._EXEC
call fcn.00426f79
add esp, 0xc
test al, al
je 0x409450
mov ax, word [edi + 0xa]
call fcn.00426083
test al, al
je 0x409450
push 0x6592
mov ecx, esi
call fcn.0042aeff
mov eax, dword [0x48fbf0]
push 0x6590
mov word [eax], bx
push dword [0x48fbf0]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x48fbf0]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.0042aeff
push edi
lea ecx, [ebp - 0x14]
call fcn.00434695
mov eax, dword [ebp - 0x14]
call fcn.00403e70
lea ecx, [ebp - 0x14]
call fcn.0042602e
mov ecx, esi
mov byte [0x493003], bl
call fcn.0042602e
push 4
push dword [ebp - 0xc]
push str.MAIN
call fcn.00426f79
add esp, 0xc
test al, al
je 0x4094c3
mov ecx, dword [ebp - 0xc]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00426083
test al, al
jne 0x409482
cmp dx, 0x2a
jne 0x4094c3
mov ax, word [ecx]
call fcn.00426083
mov byte [ebp + 0x13], al
lea eax, [ebp - 0x18]
push eax
mov byte [0x48fba6], bl
mov dword [ebp - 0x18], ecx
call fcn.0042609c
cmp byte [ebp + 0x13], bl
pop ecx
je 0x40958f
push 3
push dword [ebp - 0x18]
push 0x47b454
call fcn.00426f2f
add esp, 0xc
test al, al
je 0x40958f
cmp byte [ebp - 1], 2
jge 0x4094f9
push 0x48fb8c
mov eax, 0x10000
push eax
lea ecx, [ebp - 8]
push ecx
push 0x402e09
push eax
push ebx
mov byte [ebp - 8], 0x11
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4094f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4094f9
mov byte [ebp - 8], bl
mov al, byte [0x48febc]
push dword [ebp - 0xc]
mov byte [0x48fba4], al
call fcn.00402ea8
pop ecx
push ebx
mov ecx, 0x48feb8
call fcn.0041c5fe
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x47b452
mov ecx, 0x48fef0
call fcn.00409f00
mov dword [0x48fee8], ebx
mov dword [0x48feec], ebx
mov byte [0x493003], bl
mov byte [ebp - 7], 0x20
mov edi, 0x139c
jmp 0x409552
dec edi
js 0x409557
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 8], bl
jne 0x409547
mov eax, dword [0x48fbf8]
cmp eax, ebx
je 0x4095b3
lea ecx, [ebp - 0x10]
mov byte [0x48e2ac], 1
mov edi, eax
mov byte [ebp - 1], 2
call fcn.0042602e
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040cda6
cmp edi, ebx
pop ecx
pop ecx
jne 0x409381
or eax, 0xffffffff
jmp 0x4095d6
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00434695
push dword [ebp - 0x1c]
mov ecx, 0x48feb8
call fcn.004221a1
lea ecx, [ebp - 0x1c]
call fcn.0042602e
cmp byte [0x48fd5a], bl
je 0x4095c0
call fcn.0040b8f1
call fcn.0042655f
push eax
call fcn.00427a63
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0042602e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10