Function at 0x78ac352e
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 byte [ebp - 1], bl
cmp eax, ebx
jne 0x78ad824c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
cmp word [eax], bx
je 0x78ac356c
add eax, 2
cmp word [eax], bx
jne 0x78ac3553
cmp word [eax + 2], bx
je 0x78ac354e
push 0x20
pop edx
mov word [eax], dx
add eax, 2
jmp 0x78ac354e
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 0x78ac35b6
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 0x78ac35ae
dec esi
dec eax
cmp esi, ebx
jne 0x78ac358e
cmp esi, ebx
jl 0x78ac36d5
cmp esi, 0x3332
jae 0x78ac36d5
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 0x78ac36d5
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 0x78ac362f
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 0x78ac36c0
mov byte [ecx], dl
mov eax, dword [eax]
mov dword [edi], eax
inc dword [ebp - 8]
inc ecx
add edi, 4
cmp dword [ebp - 8], esi
jl 0x78ac35f9
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
jne 0x78ad828d
mov esi, ebx
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]
or esi, 0x400
push esi
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
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
je 0x78ad82ba
cmp dword [ebp + 8], 2
je 0x78ad82c3
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jne 0x78ac36ca
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]
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
mov byte [ecx], bl
or dword [edi], 0xffffffff
jmp 0x78ac3620
cmp dword [ebp + 8], 4
je 0x78ac36af
jmp 0x78ad82c9
call sym.MSVCR100.dll__errno
jmp 0x78ad82d1
cmp eax, 1
je 0x78ac3548
jle 0x78ad826e
cmp eax, 3
jle 0x78ac3548
cmp eax, 4
jne 0x78ad826e
mov byte [ebp - 1], 1
jmp 0x78ac3548
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 0x78ac36bc
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x78ad829f
mov edi, esi
jmp 0x78ad82a2
push 3
pop edi
cmp edx, edi
jge 0x78ad82b2
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x78ad8296
push 8
pop esi
jmp 0x78ac363a
push edi
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78ad82d7
push ebx
call sym.MSVCR100.dll__exit
mov ebx, dword [ebp - 0x24]
jmp 0x78ac36b4
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x78ac36bb