Function at 0x7c0206e0
Capabilities:
Create process on windows

Disassembly:
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 0x7c02070b
cmp eax, 1
je 0x7c02070b
jle 0x7c020713
cmp eax, 3
jle 0x7c02070b
cmp eax, 4
jne 0x7c020713
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x7c020743
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
call sym.MSVCR70.dll___doserrno
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x7c0208c3
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02072d
lea ecx, [eax + 2]
cmp word [ecx], bx
je 0x7c020743
mov word [eax], 0x20
mov eax, ecx
cmp word [eax], bx
jne 0x7c02072d
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call sym.MSVCR70.dll_memset
mov dword [ebp - 0x68], esi
mov esi, dword [0x7c0498b4]
add esp, 0xc
cmp esi, ebx
je 0x7c02078b
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + sym.MSVCR70.dll___pioinfo]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x7c02078b
dec esi
dec ecx
cmp esi, ebx
jne 0x7c02076b
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call sym.MSVCR70.dll_calloc
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x7c0207f1
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + sym.MSVCR70.dll___pioinfo]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x7c0207dd
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x7c0207e2
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x7c0207b6
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x7c020822
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x7c020808
mov edi, esi
jmp 0x7c02080b
push 3
pop edi
cmp edx, edi
jge 0x7c02081b
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x7c0207ff
mov dword [ebp - 0xc], 8
call sym.MSVCR70.dll__errno
mov dword [eax], ebx
call sym.MSVCR70.dll___doserrno
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push dword [ebp + 0x14]
or eax, 0x400
push eax
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.MSVCR70.dll_free
cmp esi, ebx
pop ecx
jne 0x7c020878
push edi
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
jmp 0x7c0208c1
cmp dword [ebp + 8], 2
jne 0x7c020884
push ebx
call sym.MSVCR70.dll__exit
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x7c0208b1
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
jmp 0x7c0208ba
cmp dword [ebp + 8], 4
je 0x7c0208aa
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret