Function at 0x77bf9470
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x77bf949d
cmp eax, 1
je 0x77bf949d
jle 0x77bf94a5
cmp eax, 3
jle 0x77bf949d
cmp eax, 4
jne 0x77bf94a5
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x77bf94d0
call sym.msvcrt.dll__errno
mov dword [eax], 0x16
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x77bf965a
inc eax
cmp byte [eax], bl
jne 0x77bf94bf
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x77bf94d0
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x77bf94bf
push esi
mov esi, dword [0x77c32420]
push edi
push 0x11
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
je 0x77bf9514
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x77bf9514
dec esi
dec ecx
cmp esi, ebx
jne 0x77bf94f4
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call sym.msvcrt.dll_calloc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
jne 0x77bf9540
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x77bf960a
cmp esi, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x77bf958e
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + sym.msvcrt.dll___pioinfo]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x77bf957a
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x77bf957f
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x77bf9553
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x77bf95bf
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x77bf95a5
mov edi, esi
jmp 0x77bf95a8
push 3
pop edi
cmp edx, edi
jge 0x77bf95b8
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x77bf959c
mov dword [ebp - 0xc], 8
call sym.msvcrt.dll__errno
mov dword [eax], ebx
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp._CKERNEL.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp._CKERNEL.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call sym.msvcrt.dll_free
cmp esi, ebx
pop ecx
jne 0x77bf960f
push edi
call fcn.77bef2d8
pop ecx
or eax, 0xffffffff
jmp 0x77bf9658
cmp dword [ebp + 8], 2
jne 0x77bf961b
push ebx
call sym.msvcrt.dll__exit
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp._CKERNEL.dll_CloseHandle]
jne 0x77bf9648
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp._CKERNEL.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp._CKERNEL.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x77bf9651
cmp dword [ebp + 8], 4
je 0x77bf9641
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret