Function at 0x78ac373e
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 0x78ad828c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
cmp word [eax], bx
je 0x78ac377c
add eax, 2
cmp word [eax], bx
jne 0x78ac3763
cmp word [eax + 2], bx
je 0x78ac375e
push 0x20
pop edx
mov word [eax], dx
add eax, 2
jmp 0x78ac375e
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 [0x78b53e7c]
add esp, 0xc
cmp esi, ebx
je 0x78ac37c6
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 0x78ac37be
dec esi
dec eax
cmp esi, ebx
jne 0x78ac379e
cmp esi, ebx
jl 0x78ac38e5
cmp esi, 0x3332
jae 0x78ac38e5
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 0x78ac38e5
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 0x78ac383f
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 0x78ac38d0
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 0x78ac3809
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
jne 0x78ad82cd
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 0x78ad82fa
cmp dword [ebp + 8], 2
je 0x78ad8303
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jne 0x78ac38da
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 0x78ac3830
cmp dword [ebp + 8], 4
je 0x78ac38bf
jmp 0x78ad8309
call sym.MSVCR100.dll__errno
jmp 0x78ad8311
cmp eax, 1
je 0x78ac3758
jle 0x78ad82ae
cmp eax, 3
jle 0x78ac3758
cmp eax, 4
jne 0x78ad82ae
mov byte [ebp - 1], 1
jmp 0x78ac3758
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 0x78ac38cc
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x78ad82df
mov edi, esi
jmp 0x78ad82e2
push 3
pop edi
cmp edx, edi
jge 0x78ad82f2
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x78ad82d6
push 8
pop esi
jmp 0x78ac384a
push edi
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78ad8317
push ebx
call sym.MSVCR100.dll__exit
mov ebx, dword [ebp - 0x24]
jmp 0x78ac38c4
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x78ac38cb