Function at 0x78ac2636
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 0x78ad72cc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
cmp word [eax], bx
je 0x78ac2674
add eax, 2
cmp word [eax], bx
jne 0x78ac265b
cmp word [eax + 2], bx
je 0x78ac2656
push 0x20
pop edx
mov word [eax], dx
add eax, 2
jmp 0x78ac2656
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 [0x78b52e60]
add esp, 0xc
cmp esi, ebx
je 0x78ac26be
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 0x78ac26b6
dec esi
dec eax
cmp esi, ebx
jne 0x78ac2696
cmp esi, ebx
jl 0x78ac27dd
cmp esi, 0x3332
jae 0x78ac27dd
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 0x78ac27dd
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 0x78ac2737
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 0x78ac27c8
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 0x78ac2701
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
jne 0x78ad730d
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 0x78ad733a
cmp dword [ebp + 8], 2
je 0x78ad7343
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jne 0x78ac27d2
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 0x78ac2728
cmp dword [ebp + 8], 4
je 0x78ac27b7
jmp 0x78ad7349
call sym.MSVCR100.dll__errno
jmp 0x78ad7351
cmp eax, 1
je 0x78ac2650
jle 0x78ad72ee
cmp eax, 3
jle 0x78ac2650
cmp eax, 4
jne 0x78ad72ee
mov byte [ebp - 1], 1
jmp 0x78ac2650
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 0x78ac27c4
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x78ad731f
mov edi, esi
jmp 0x78ad7322
push 3
pop edi
cmp edx, edi
jge 0x78ad7332
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x78ad7316
push 8
pop esi
jmp 0x78ac2742
push edi
call sym.MSVCR100.dll__dosmaperr
pop ecx
jmp 0x78ad7357
push ebx
call sym.MSVCR100.dll__exit
mov ebx, dword [ebp - 0x24]
jmp 0x78ac27bc
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x78ac27c3