Function at 0x401a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4074fc
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x40b01c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40b01c]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xe0]
mov edi, edx
call dword [0x4080c0]
xor ebx, ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x108], ebx
call dword [0x4080c0]
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 1
call dword [0x4080c0]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x108], 2
call dword [0x4080c0]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x108], 3
call dword [0x4080c0]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x108], 4
call dword [0x4080c0]
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x64]
push ecx
push esi
push edi
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x124], 5
call fcn.004012a0
add esp, 0x1c
test al, al
jne 0x401bae
lea ecx, [esp + 0xc4]
mov byte [esp + 0x108], 4
call dword [0x4080b4]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x108], 3
call dword [0x4080b4]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x108], 2
call dword [0x4080b4]
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 1
call dword [0x4080b4]
lea ecx, [esp + 0x70]
mov byte [esp + 0x108], bl
call dword [0x4080b4]
lea ecx, [esp + 0xe0]
mov dword [esp + 0x108], 0xffffffff
call dword [0x4080b4]
mov eax, 1
jmp 0x401d41
cmp dword [esp + 0xbc], ebx
je 0x401be2
cmp dword [esp + 0xa0], ebx
je 0x401be2
lea edi, [esp + 0xa8]
lea ecx, [esp + 0xc4]
lea eax, [esp + 0x8c]
call fcn.00401130
test al, al
jne 0x401cc5
mov eax, 8
cmp dword [esp + 0x88], eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x140
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
jb 0x401c26
mov edx, dword [esp + 0x74]
mov dword [esp + 0x28], edx
jmp 0x401c2e
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x6c], eax
mov dword [esp + 0x3c], ebx
jb 0x401c42
mov edx, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
jmp 0x401c4a
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], str.open
mov dword [esp + 0x38], 5
call dword [0x4081a0]
test eax, eax
je 0x401cc5
cmp dword [esp + 0x38], 0x20
jbe 0x401cc5
cmp dword [esp + 0x50], ebx
je 0x401cc5
cmp byte [esp + 0x17], bl
je 0x401cba
mov ebp, dword [0x408060]
push 0xfa0
mov esi, 6
call ebp
push 0xfa0
call ebp
lea edi, [esp + 0xa8]
lea ecx, [esp + 0xc4]
lea eax, [esp + 0x8c]
sub esi, 1
call fcn.00401130
test al, al
jne 0x401cba
cmp esi, ebx
jg 0x401c8e
mov edx, dword [esp + 0x50]
push edx
call dword [0x40805c]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x108], 4
call dword [0x4080b4]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x108], 3
call dword [0x4080b4]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x108], 2
call dword [0x4080b4]
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 1
call dword [0x4080b4]
lea ecx, [esp + 0x70]
mov byte [esp + 0x108], bl
call dword [0x4080b4]
lea ecx, [esp + 0xe0]
mov dword [esp + 0x108], 0xffffffff
call dword [0x4080b4]
xor eax, eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0040694a
add esp, 0xf8
ret