Function at 0x40bf89
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x424426
call fcn.00415558
sub esp, 0x18c
push esi
lea eax, [ebp + 0x10]
push edi
push eax
mov dword [ebp + 0x34], ecx
call fcn.00410b32
pop ecx
mov ecx, dword [ebp + 0x34]
lea eax, [ebp + 0x50]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040be17
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040b417
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x68]
mov byte [ebp - 4], 2
call fcn.00401fb0
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x3c], eax
jmp 0x40c08f
lea ecx, [ebp + 0x38]
call fcn.00401ff0
sub esp, 0x20
mov ecx, esp
mov dword [ebp + 0x30], esp
push eax
lea eax, [ebp + 0x73]
push eax
push ecx
call fcn.0040aeb3
add esp, 0xc
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x60]
lea ecx, [ebp - 0x14]
call fcn.00401fb0
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x40]
call fcn.00401fb0
push dword [ebp - 0x10]
lea eax, [ebp + 0x28]
push dword [ebp - 0x14]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
call fcn.0040b56f
add esp, 0x34
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x60]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x28]
call fcn.00401dc0
test al, al
jne 0x40c087
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x60]
lea ecx, [ebp + 0x48]
call fcn.00401fb0
push dword [ebp + 0x4c]
lea eax, [ebp + 8]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x50]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
call fcn.0040b7a5
lea ecx, [ebp + 0x38]
call fcn.00402020
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x20]
lea ecx, [ebp + 0x68]
call fcn.00401fb0
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebp + 0x38]
call fcn.00401dc0
test al, al
je 0x40bfed
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x60]
lea ecx, [ebp + 0x48]
call fcn.00401fb0
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x5c]
lea ecx, [ebp + 0x40]
call fcn.00401fb0
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
call fcn.0040bcb3
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x1c]
add esp, 0x10
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 5
jae 0x40c1ef
mov eax, dword [ebp + 0x60]
sub eax, dword [ebp + 0x5c]
cdq
idiv ecx
test eax, eax
jbe 0x40c1ef
push esi
lea ecx, [ebp + 0x50]
call fcn.0040a88d
push eax
lea ecx, [ebp - 0x38]
call fcn.00401d90
xor eax, eax
mov dword [ebp], esi
lea edi, [ebp + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.004157f0
mov edi, 0x104
push edi
lea eax, [ebp - 0x198]
push esi
push eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x94], 0x44
call fcn.004157f0
mov eax, dword [ebp - 0x34]
add esp, 0x18
cmp dword [ebp - 0x20], 0x10
jae 0x40c16d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x198]
push edi
push eax
call fcn.00415782
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
lea eax, [ebp - 0x198]
push eax
je 0x40c1cd
push str.CreateProcess___s__success
call fcn.004012a0
push eax
call fcn.00401330
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp]
call edi
push dword [ebp + 4]
call edi
jmp 0x40c1e0
push str.CreateProcess___s__failed
call fcn.004012a0
push eax
call fcn.00401330
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401f00
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp + 0x30], esp
push eax
call fcn.0040b6f6
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
add ecx, 0x7c
call fcn.0041275e
lea ecx, [ebp - 0x50]
call fcn.0040b4b4
push dword [ebp - 0x50]
call fcn.004136f1
pop ecx
lea ecx, [ebp + 0x50]
call fcn.0040b4b4
push dword [ebp + 0x50]
call fcn.004136f1
pop ecx
lea ecx, [ebp + 0x10]
call fcn.0040b4b4
push dword [ebp + 0x10]
call fcn.004136f1
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
add ebp, 0x74
leave
ret