Function at 0x7801c7a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 4
push edi
mov byte [esp + 0x13], bl
ja case.default.0x7801c7ba
jmp dword [eax*4 + 0x7801ca20]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov cx, word [eax]
test cx, cx
je 0x7801c7f6
add eax, 2
cmp word [eax], 0
jne 0x7801c7d6
cmp word [eax + 2], 0
je 0x7801c7ee
mov word [eax], 0x20
add eax, 2
mov cx, word [eax]
test cx, cx
jne 0x7801c7d6
mov esi, dword [0x78041820]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x28], 0x44
je 0x7801c839
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + sym.MSVCRT.dll___pioinfo]
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], 0
jne 0x7801c839
mov esi, ecx
test esi, esi
jne 0x7801c815
lea eax, [esi + esi*4 + 4]
push 1
mov word [esp + 0x5e], ax
mov ecx, dword [esp + 0x5e]
and ecx, 0xffff
push ecx
call sym.MSVCRT.dll_calloc
mov dword [esp + 0x64], eax
mov dword [eax], esi
mov edx, dword [esp + 0x64]
add esp, 8
xor ecx, ecx
test esi, esi
lea edi, [edx + 4]
lea ebp, [esi + edx + 4]
jle 0x7801c8ad
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + sym.MSVCRT.dll___pioinfo]
lea eax, [eax + eax*8]
lea eax, [edx + eax*4]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x7801c896
mov byte [edi], dl
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x7801c8a0
mov byte [edi], 0
mov dword [ebp], 0xffffffff
inc ecx
inc edi
add ebp, 4
cmp ecx, esi
jl 0x7801c86e
mov edx, dword [esp + 0x5c]
mov al, byte [esp + 0x13]
test al, al
je 0x7801c8e3
xor edi, edi
lea eax, [edx + 4]
lea ecx, [esi + edx + 4]
cmp esi, 3
mov edx, esi
jl 0x7801c8ca
mov edx, 3
cmp edi, edx
jge 0x7801c8de
mov byte [eax], 0
inc edi
mov dword [ecx], 0xffffffff
inc eax
add ecx, 4
jmp 0x7801c8be
mov ebx, 8
call sym.MSVCRT.dll__errno
mov dword [eax], 0
call sym.MSVCRT.dll___doserrno
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x7c]
push 0
or bh, 4
push eax
push ebx
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x5c]
push eax
call sym.MSVCRT.dll_free
add esp, 4
test esi, esi
jne 0x7801c953
push edi
call fcn.7800a850
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 2
jne 0x7801c97f
push 0
call sym.MSVCRT.dll__exit
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
test eax, eax
jne 0x7801c9ba
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp eax, 4
jne 0x7801c9e1
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], 0
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x7c], eax
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
call sym.MSVCRT.dll__errno
mov dword [eax], 0x16
call sym.MSVCRT.dll___doserrno
pop edi
pop esi
mov dword [eax], 0
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret