Function at 0x1007431
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.010063a1
mov esi, eax
cmp esi, ebx
jge 0x1007484
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007695
test byte [eax + 0x1c], 1
je 0x1007695
push esi
push 0x1001780
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1007695
push edi
cmp dword [ebp - 4], ebx
je 0x10075de
cmp dword [ebp + 0x14], ebx
je 0x10074c2
mov esi, 0x80070032
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007694
test byte [eax + 0x1c], 1
je 0x1007694
push esi
push 0x1001780
push 0x87
jmp 0x100765c
mov esi, 0x620
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1007505
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10074fb
test byte [eax + 0x1c], 1
je 0x10074fb
push 0x1001780
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov esi, 0x8007000e
jmp 0x1007689
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
and dword [ebx + 4], 0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebx + 8]
push 0x104
push eax
mov dword [ebx], esi
call fcn.01006737
mov esi, eax
test esi, esi
jge 0x1007555
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007689
test byte [eax + 0x1c], 1
je 0x1007689
push esi
push 0x1001780
push 0x89
jmp 0x10075ce
push dword [ebp + 0xc]
lea eax, [ebx + 0x210]
push 0x208
push eax
call fcn.01006737
mov esi, eax
test esi, esi
jge 0x1007596
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007689
test byte [eax + 0x1c], 1
je 0x1007689
push esi
push 0x1001780
push 0x8a
jmp 0x10075ce
push dword [ebp + 0x10]
push ebx
call fcn.010070c8
mov esi, eax
test esi, esi
jge 0x1007687
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007689
test byte [eax + 0x1c], 1
je 0x1007689
push esi
push 0x1001780
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1007689
push 0x40
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x58], 0x44
cmp dword [ebp + 0x14], edi
je 0x1007613
xor eax, eax
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1007669
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov esi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007694
test byte [eax + 0x1c], 1
je 0x1007694
push esi
push 0x1001780
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x1007694
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1007682
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x1007687
push dword [ebp - 0x14]
call esi
xor esi, esi
test ebx, ebx
je 0x1007694
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10