Function at 0x403edb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
push esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004109dd
add esp, 4
cmp eax, 0x104
jb 0x403dce
mov eax, 6
jmp 0x403ff5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.00410899
add esp, 8
mov dword [ebp - 8], 0
jmp 0x403df3
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jge 0x403e5f
mov edx, dword [ebp + 8]
push edx
call fcn.004109dd
add esp, 4
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
push edx
call fcn.004109dd
add esp, 4
lea eax, [esi + eax + 1]
cmp eax, 0x104
jb 0x403e30
mov eax, 6
jmp 0x403ff5
push 0x42d98c
lea ecx, [ebp - 0x274]
push ecx
call fcn.00410868
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.00410868
add esp, 8
jmp 0x403dea
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403e79
cmp dword [ebp - 0xc], 1
je 0x403e84
cmp dword [ebp - 0xc], 2
je 0x403e8f
jmp 0x403e98
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
jmp 0x403ea1
mov edx, dword [ebp - 4]
or edx, 0x10
mov dword [ebp - 4], edx
jmp 0x403ea1
mov dword [ebp - 4], 0
jmp 0x403ea1
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 3
ja case.default.0x403eb0
mov edx, dword [ebp - 0x14]
jmp dword [edx*4 + 0x403ffc]
mov eax, dword [ebp - 4]
or eax, 0x40
mov dword [ebp - 4], eax
jmp 0x403ef1
mov ecx, dword [ebp - 4]
or ecx, 0x20
mov dword [ebp - 4], ecx
jmp 0x403ef1
mov edx, dword [ebp - 4]
or edx, 0x80
mov dword [ebp - 4], edx
jmp 0x403ef1
mov eax, dword [ebp - 4]
or eax, 0x100
mov dword [ebp - 4], eax
jmp 0x403ef1
mov ecx, dword [ebp - 4]
or ecx, 0x20
mov dword [ebp - 4], ecx
push 0x44
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.0040ccc0
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040ccc0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
mov ecx, 1
mov word [ebp - 0x3c], cx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x274]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x10]
push edx
push str.Create_Process__s_n
push 0xa0d
push 0x42d9a4
call fcn.00404130
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.CreateProcess_returned__d___s_
lea edx, [ebp - 0x4cc]
push edx
call fcn.004040c0
add esp, 0x10
push 0
push str.TOS_ERROR
lea eax, [ebp - 0x4cc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 6
jmp 0x403ff5
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret