Function at 0x562a35c3
Capabilities:
Create process on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x68
push ebx
mov dword [ebp - 0x10], eax
push esi
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 1], al
cmp ebx, eax
je 0x562a3615
cmp ebx, 1
je 0x562a3615
cmp ebx, 2
jl 0x562a35ef
cmp ebx, 3
jle 0x562a3615
cmp ebx, 4
je 0x562a3611
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov al, byte [ecx]
test al, al
je 0x562a3636
inc ecx
cmp byte [ecx], 0
jne 0x562a3621
lea eax, [ecx + 1]
cmp byte [eax], 0
je 0x562a361b
mov byte [ecx], 0x20
mov ecx, eax
jmp 0x562a361b
lea edi, [ebp - 0x68]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov eax, dword [0x562b2fd8]
mov dword [ebp - 8], eax
test eax, eax
je 0x562a3667
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x562b2fdf], cl
jne 0x562a3667
dec dword [ebp - 8]
jne 0x562a3657
mov eax, dword [ebp - 8]
push 1
imul ax, ax, 5
add ax, 4
lea esi, [ebp - 8]
movzx ecx, ax
mov word [ebp - 0x36], ax
push ecx
call sym.MSVCRT20.dll_calloc
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov esi, 0x562b2fe0
mov edi, dword [ebp - 0x34]
mov ecx, eax
shr ecx, 2
add edi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, 0x562b30e0
shl ecx, 2
mov eax, dword [ebp - 8]
shr ecx, 2
mov edx, dword [ebp - 0x34]
lea edi, [eax + edx + 4]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp byte [ebp - 1], cl
je 0x562a36fe
xor edx, edx
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, 2
mov byte [eax + ecx + 3], dl
jle 0x562a36cc
xor eax, eax
mov ecx, 0xffffffff
lea edx, [eax*4]
mov esi, dword [ebp - 0x34]
add edx, dword [ebp - 8]
inc eax
cmp eax, 2
mov dword [edx + esi + 4], ecx
jle 0x562a36e0
mov dword [ebp - 0x10], 8
call sym.MSVCRT20.dll___doserrno
mov esi, eax
call sym.MSVCRT20.dll__errno
lea ecx, [ebp - 0x68]
mov dword [eax], 0
lea eax, [ebp - 0x24]
mov dword [esi], 0
push eax
push ecx
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push 1
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call sym.MSVCRT20.dll_free
add esp, 4
test esi, esi
jne 0x562a3764
push edi
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
jmp 0x562a360a
cmp ebx, 2
jne 0x562a3784
push 0
call sym.MSVCRT20.dll__exit
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x562a360a
test ebx, ebx
jne 0x562a37ab
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x562a3773
cmp ebx, 4
jne 0x562a37c2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
jmp 0x562a3773
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x562a3773