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

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 0x562a53f3
cmp ebx, 1
je 0x562a53f3
cmp ebx, 2
jl 0x562a53cd
cmp ebx, 3
jle 0x562a53f3
cmp ebx, 4
je 0x562a53ef
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 ax, word [ecx]
test ax, ax
je 0x562a541c
add ecx, 2
cmp word [ecx], 0
jne 0x562a5401
lea eax, [ecx + 2]
cmp word [eax], 0
je 0x562a53f9
mov word [ecx], 0x20
mov ecx, eax
jmp 0x562a53f9
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 0x562a544d
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x562b2fdf], cl
jne 0x562a544d
dec dword [ebp - 8]
jne 0x562a543d
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 0x562a54e4
xor edx, edx
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, 2
mov byte [eax + ecx + 3], dl
jle 0x562a54b2
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 0x562a54c6
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
or byte [ebp - 0xf], 4
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_CreateProcessW]
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 0x562a554e
push edi
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
jmp 0x562a53e8
cmp ebx, 2
jne 0x562a556e
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 0x562a53e8
test ebx, ebx
jne 0x562a5595
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 0x562a555d
cmp ebx, 4
jne 0x562a55ac
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
jmp 0x562a555d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x562a555d