Function at 0x10077100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c26c6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x100eb6ac]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x40
mov esi, edx
mov dword [esp + 0x2c], eax
xor eax, eax
lea edx, [esp + 0x34]
push ebx
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.100a39b0
movzx eax, byte [ebp + 0xc]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 5
mov word [esp + 0x5c], ax
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
neg ecx
or ecx, eax
push ecx
call fcn.1009b929
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x10077342
lea eax, [esp + 0x74]
push eax
call fcn.10013470
mov dword [esp + 0x170], ebx
lea ecx, [esp + 0x74]
push str.new_FAILED.
push ecx
call fcn.1001c530
add esp, 8
push 0x22
mov esi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x130]
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
call fcn.100191b0
mov byte [esp + 0x170], 1
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x114]
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
call fcn.100191b0
mov byte [esp + 0x170], 2
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.10013570
mov byte [esp + 0x170], 3
push eax
push 0x10b
push ebx
call fcn.10013c70
push eax
lea edx, [esp + 0x138]
lea ecx, [esp + 0x11c]
call fcn.10072520
mov byte [esp + 0x170], 2
cmp dword [esp + 0x158], 8
jb 0x1007729b
mov ecx, dword [esp + 0x144]
push ecx
call fcn.1009c0c0
add esp, 4
xor edx, edx
mov dword [esp + 0x158], 7
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], dx
mov byte [esp + 0x170], 1
mov edi, 0x10
cmp dword [esp + 0x120], edi
jb 0x100772dd
mov eax, dword [esp + 0x10c]
push eax
call fcn.1009c0c0
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov byte [esp + 0x170], bl
cmp dword [esp + 0x13c], edi
jb 0x10077312
mov ecx, dword [esp + 0x128]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.10002af0
xor al, al
jmp 0x100775a3
mov eax, dword [esi + 0x10]
inc eax
push eax
push ebx
push edi
call fcn.100a39b0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1007735b
mov eax, dword [esi]
jmp 0x1007735d
mov eax, esi
push eax
push 0x100d9ad8
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x13], 1
cmp dword [eax + 0x10], ebx
ja 0x10077381
mov dword [esp + 0x14], ebx
jmp 0x1007738a
call fcn.10016880
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x10], ebx
ja 0x10077397
xor eax, eax
jmp 0x1007739c
call fcn.10016880
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push edx
push ebx
push 0x20
push 1
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1007757a
lea eax, [esp + 0x74]
push eax
call fcn.10013470
mov dword [esp + 0x170], 4
push esi
push ecx
push str.._cmd:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x8c]
push str.CP_FAILED._GetLastError:
push ecx
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1006fa80
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 8
push 0x22
mov esi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x114]
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
call fcn.100191b0
mov byte [esp + 0x170], 5
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x130]
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
call fcn.100191b0
mov byte [esp + 0x170], 6
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.10013570
mov byte [esp + 0x170], 7
push eax
push 0x11f
push 1
call fcn.10013c70
push eax
lea edx, [esp + 0x11c]
lea ecx, [esp + 0x138]
call fcn.10072520
mov byte [esp + 0x170], 6
cmp dword [esp + 0x158], 8
jb 0x100774d8
mov ecx, dword [esp + 0x144]
push ecx
call fcn.1009c0c0
add esp, 4
xor edx, edx
mov dword [esp + 0x158], 7
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], dx
mov byte [esp + 0x170], 5
cmp dword [esp + 0x13c], 0x10
jb 0x10077516
mov eax, dword [esp + 0x128]
push eax
call fcn.1009c0c0
add esp, 4
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
mov byte [esp + 0x170], 4
cmp dword [esp + 0x120], 0x10
jb 0x1007754d
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.10002af0
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ebx
call esi
push edi
mov dword [esp + 0x20], ebx
call fcn.1009d8d4
mov al, byte [esp + 0x17]
add esp, 4
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret