Function at 0x408655
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
push edi
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x1c], 0xffffffff
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], 0xffffffff
mov eax, dword [ebp + 8]
push eax
push 0x4ca0d0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004b486f
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x12c], 1
jmp 0x408709
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp + 0x18]
jge 0x4087e3
push 0x4ca0d4
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004b47b0
add esp, 8
test eax, eax
je 0x408754
push 0x4ca0d8
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004b47b0
add esp, 8
test eax, eax
jne 0x408783
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
push 0x4ca0dc
mov edx, dword [ebp - 4]
push edx
call fcn.004b486f
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x4087de
cmp dword [ebp - 0x18], 1
jne 0x4087b8
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
push 0x4ca0e0
mov edx, dword [ebp - 4]
push edx
call fcn.004b486f
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x4087de
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
push 0x4ca0e8
mov edx, dword [ebp - 4]
push edx
call fcn.004b486f
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x4086fa
cmp dword [0x4d8c84], 0
je 0x408829
push str.__l__
lea edx, [ebp - 0x11c]
push edx
call fcn.004b4b80
add esp, 8
mov eax, dword [0x4d8c84]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004b4b80
add esp, 8
push 0x4ca0f4
lea edx, [ebp - 0x11c]
push edx
call fcn.004b4b80
add esp, 8
call fcn.00433230
cmp eax, 2
jne 0x408913
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
call fcn.004332c3
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x408872
xor eax, eax
jmp 0x408a19
cmp dword [0x4d8c8c], 1
jne 0x408887
mov dword [ebp - 0x1bc], 0
jmp 0x4088bb
cmp dword [0x4d8c84], 0
jne 0x4088a5
cmp dword [0x4d8c8c], 2
jne 0x4088a5
mov dword [ebp - 0x1c0], 0x10
jmp 0x4088af
mov dword [ebp - 0x1c0], 8
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1bc], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x174]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1bc]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x128]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x128], 0
je 0x40890e
mov edx, dword [ebp - 0x128]
push edx
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x128], 0
jmp 0x4089ea
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
call fcn.0043358a
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x40894e
xor eax, eax
jmp 0x408a19
cmp dword [0x4d8c8c], 1
jne 0x408963
mov dword [ebp - 0x1c4], 0
jmp 0x408997
cmp dword [0x4d8c84], 0
jne 0x408981
cmp dword [0x4d8c8c], 2
jne 0x408981
mov dword [ebp - 0x1c8], 0x10
jmp 0x40898b
mov dword [ebp - 0x1c8], 8
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1b8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c4]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x120]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x120], 0
je 0x4089ea
mov edx, dword [ebp - 0x120]
push edx
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x120], 0
cmp dword [ebp - 0x130], 0
jne 0x4089f7
xor eax, eax
jmp 0x408a19
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x11c]
mov dword [ecx], edx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret