Function at 0x1007467
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.010063d7
mov esi, eax
cmp esi, ebx
jge 0x10074ba
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076cb
test byte [eax + 0x1c], 1
je 0x10076cb
push esi
push 0x1001780
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x10076cb
push edi
cmp dword [ebp - 4], ebx
je 0x1007614
cmp dword [ebp + 0x14], ebx
je 0x10074f8
mov esi, 0x80070032
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076ca
test byte [eax + 0x1c], 1
je 0x10076ca
push esi
push 0x1001780
push 0x87
jmp 0x1007692
mov esi, 0x620
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100753b
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007531
test byte [eax + 0x1c], 1
je 0x1007531
push 0x1001780
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov esi, 0x8007000e
jmp 0x10076bf
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.0100676d
mov esi, eax
test esi, esi
jge 0x100758b
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076bf
test byte [eax + 0x1c], 1
je 0x10076bf
push esi
push 0x1001780
push 0x89
jmp 0x1007604
push dword [ebp + 0xc]
lea eax, [ebx + 0x210]
push 0x208
push eax
call fcn.0100676d
mov esi, eax
test esi, esi
jge 0x10075cc
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076bf
test byte [eax + 0x1c], 1
je 0x10076bf
push esi
push 0x1001780
push 0x8a
jmp 0x1007604
push dword [ebp + 0x10]
push ebx
call fcn.010070fe
mov esi, eax
test esi, esi
jge 0x10076bd
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076bf
test byte [eax + 0x1c], 1
je 0x10076bf
push esi
push 0x1001780
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x10076bf
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 0x1007649
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 0x100769f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov esi, eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10076ca
test byte [eax + 0x1c], 1
je 0x10076ca
push esi
push 0x1001780
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
jmp 0x10076ca
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x10076b8
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x10076bd
push dword [ebp - 0x14]
call esi
xor esi, esi
test ebx, ebx
je 0x10076ca
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