Function at 0x78b0174f
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
push edi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
cmp eax, ebx
je 0x78b0177d
cmp eax, 1
je 0x78b0177d
jle 0x78b01785
cmp eax, 3
jle 0x78b0177d
cmp eax, 4
jne 0x78b01785
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x78b017b2
call sym.MSVCR100.dll___doserrno
mov dword [eax], ebx
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x78b0194f
inc eax
cmp byte [eax], bl
jne 0x78b017a4
cmp byte [eax + 1], bl
je 0x78b017b2
mov byte [eax], 0x20
inc eax
cmp byte [eax], bl
jne 0x78b017a4
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call sym.MSVCR100.dll_memset
mov dword [ebp - 0x68], esi
mov esi, dword [0x78b54e74]
add esp, 0xc
cmp esi, ebx
je 0x78b01800
lea eax, [esi - 1]
mov ecx, eax
mov edx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + sym.MSVCR100.dll___pioinfo]
and edx, 0x1f
shl edx, 6
cmp byte [ecx + edx + 4], bl
jne 0x78b017f8
dec esi
dec eax
cmp esi, ebx
jne 0x78b017d8
cmp esi, ebx
jl 0x78b01940
cmp esi, 0x3332
jae 0x78b01940
mov eax, esi
imul eax, eax, 5
add eax, 4
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call sym.MSVCR100.dll__calloc_crt
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x78b01940
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 4]
lea edi, [eax + esi + 4]
mov dword [ebp - 8], ebx
cmp esi, ebx
jle 0x78b0187c
mov eax, dword [ebp - 8]
mov edx, eax
and eax, 0x1f
sar edx, 5
shl eax, 6
add eax, dword [edx*4 + sym.MSVCR100.dll___pioinfo]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x78b01868
mov byte [ecx], dl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x78b0186d
mov byte [ecx], bl
or dword [edi], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edi, 4
cmp dword [ebp - 8], esi
jl 0x78b01843
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x78b018ad
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x78b01893
mov edi, esi
jmp 0x78b01896
push 3
pop edi
cmp edx, edi
jge 0x78b018a6
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x78b0188a
mov dword [ebp - 0xc], 8
call sym.MSVCR100.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.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call sym.MSVCR100.dll_free
pop ecx
cmp esi, ebx
jne 0x78b018f3
push edi
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78b0194b
cmp dword [ebp + 8], 2
jne 0x78b018ff
push ebx
call sym.MSVCR100.dll__exit
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jne 0x78b01927
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
jmp 0x78b0192d
cmp dword [ebp + 8], 4
jne 0x78b01934
push dword [ebp - 0x24]
call esi
jmp 0x78b01937
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
jmp 0x78b0194e
call sym.MSVCR100.dll__errno
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret