Function at 0x40ce40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040a000
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00413804
add esp, 8
test eax, eax
je 0x40ce88
call fcn.0040a000
push eax
call fcn.004153f9
add esp, 4
call fcn.0040a000
push eax
call fcn.004095c0
add esp, 4
call fcn.0040a000
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ce90
sub eax, edx
lea esi, [eax + 8]
lea esp, [esp]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x184], eax
test eax, eax
je 0x40cea0
call fcn.0040a000
mov esi, dword [ebp - 0x184]
push eax
push str._s
push esi
call fcn.00413fd6
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push esi
call fcn.00414ee9
add esp, 8
mov dword [ebp - 0x188], eax
test eax, eax
je 0x40d21d
cmp eax, 0xffffffff
je 0x40d21d
call fcn.0040a000
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cf00
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x154]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cf14
sub eax, esi
lea esi, [eax + edx + 8]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x180], eax
test eax, eax
je 0x40cf21
lea eax, [ebp - 0x154]
push eax
push ecx
call fcn.0040a000
mov esi, dword [ebp - 0x180]
add esp, 4
push eax
push 0x427ca8
push esi
call fcn.00413fd6
add esp, 0x10
lea ecx, [ebp - 0x17c]
push ecx
push esi
mov dword [ebp - 0x17c], 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x40cf8e
push 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x40d1e7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x12
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x48]
add esp, 4
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004146e0
add esp, 8
test eax, eax
je 0x40d0e3
lea esp, [esp]
push 4
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40cfc0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx], eax
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cfe2
sub eax, edx
lea esi, [eax + 1]
mov edi, edi
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x17c], eax
test eax, eax
je 0x40cff0
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x154]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d013
push 0x42c920
call fcn.00403510
add esp, 4
push 0x42c924
call fcn.00403510
mov eax, dword [0x42c5f8]
mov edi, dword [0x42c920]
add esp, 4
inc eax
mov dword [0x42c5f8], eax
lea esi, [eax*4]
nop
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d050
mov edi, dword [0x42c924]
mov dword [0x42c920], eax
lea esp, [esp]
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d070
mov edx, dword [0x42c920]
mov dword [0x42c924], eax
mov eax, dword [ebp - 0x17c]
mov dword [esi + edx - 4], eax
mov ecx, dword [0x42c924]
mov dword [esi + ecx - 4], ebx
mov esi, 0x42c920
call fcn.00403610
mov esi, 0x42c924
call fcn.00403610
push 0xb0
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x2c0]
add esp, 4
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d1e1
call eax
jmp 0x40d1e1
push 0x11
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x44]
add esp, 4
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.004146e0
add esp, 8
test eax, eax
je 0x40d1e7
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00417250
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push esi
push eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d160
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d170
lea eax, [ebp - 0x154]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x40d190
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d190
push 0x42c91c
call fcn.00403510
mov eax, dword [0x42c5fc]
mov edi, dword [0x42c91c]
add esp, 4
inc eax
mov dword [0x42c5fc], eax
lea esi, [eax*4]
nop
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d1c0
mov dword [0x42c91c], eax
mov dword [esi + eax - 4], ebx
mov esi, 0x42c91c
call fcn.00403610
mov esi, dword [ebp - 0x180]
push esi
call fcn.00413e5b
mov esi, dword [ebp - 0x188]
add esp, 4
lea edx, [ebp - 0x178]
push edx
push esi
call fcn.00415010
add esp, 8
test eax, eax
je 0x40cef4
push esi
call fcn.0041513e
mov esi, dword [ebp - 0x184]
add esp, 4
push esi
call fcn.00413e5b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret