Function at 0x1010db7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
jne 0x1010ddc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1010fb5
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1010de5
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1010dee
mov dword [eax], ebx
mov eax, 0x100414c
mov ecx, 0x1006064
cmp dword [ebp + 8], ebx
jne 0x1010e01
mov ecx, eax
jmp 0x1010e04
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 4]
push 0x1003fa0
push eax
call fcn.0100e334
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1010f26
push dword [ebp - 4]
call fcn.0100aad4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, 0x80070000
cmp eax, ebx
je 0x1010e48
xor ecx, ecx
cmp cx, word [eax]
jne 0x1010e72
call edi
cmp eax, ebx
jle 0x1010e57
and eax, 0xffff
or eax, esi
cmp eax, ebx
jge 0x1010e6b
call edi
cmp eax, ebx
jle 0x1010e66
and eax, 0xffff
or eax, esi
mov dword [ebp + 8], eax
jmp 0x1010e72
mov dword [ebp + 8], 0x80004005
cmp dword [ebp + 8], ebx
jl 0x1010f26
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x5c], ebx
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x18], ebx
je 0x1010eb2
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 1
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, 0x8000000
jmp 0x1010eb5
push 0x10
pop eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1010efb
call edi
cmp eax, ebx
jle 0x1010ee0
and eax, 0xffff
or eax, esi
cmp eax, ebx
jge 0x1010ef4
call edi
cmp eax, ebx
jle 0x1010eef
and eax, 0xffff
or eax, esi
mov dword [ebp + 8], eax
jmp 0x1010efb
mov dword [ebp + 8], 0x80004005
cmp dword [ebp + 8], ebx
jl 0x1010f24
cmp dword [ebp + 0x10], 0
je 0x1010f24
cmp dword [ebp + 0x14], 0
je 0x1010f24
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x1010f3c
cmp dword [ebp - 0x14], 0xffffffff
je 0x1010f3c
push dword [ebp - 0x14]
call esi
mov ebx, dword [ebp + 8]
test ebx, ebx
jl 0x1010f51
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1010f51
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x1010f62
cmp dword [ebp - 0x18], 0
je 0x1010f62
cmp dword [ebp - 0x18], 0xffffffff
je 0x1010f62
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x1010f86
push dword [ebp - 4]
push 0
call edi
push eax
call esi
test eax, eax
je 0x1010f86
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x1010f96
push dword [ebp - 8]
push 0
call edi
push eax
call esi
pop edi
pop esi
test ebx, ebx
jl 0x1010fa0
xor eax, eax
jmp 0x1010fa7
mov eax, ebx
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
setge al
pop ebx
leave
ret 0x18