Function at 0x140058980
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp], rax
mov r12, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [rdx + 0x10]
xor ebx, ebx
test rax, rax
jne 0x1400589ce
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
jmp 0x140058b8c
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rcx
xorps xmm1, xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
mov dword [rbp - 0xc], ecx
mov dword [rbp - 0x70], 0x68
lea rcx, [rax + 1]
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rbx
test rcx, rcx
je 0x140058a9a
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140058c19
lea r15, [rcx + rcx]
cmp r15, 0x1000
jb 0x140058a62
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x140058c0d
call fcn.140062618
test rax, rax
je 0x140058c13
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140058a77
test r15, r15
je 0x140058a74
mov rcx, r15
call fcn.140062618
mov rdi, rax
jmp 0x140058a77
mov rdi, rbx
mov qword [rsp + 0x70], rdi
lea r13, [rdi + r15]
mov qword [rbp - 0x80], r13
mov r8, r15
xor edx, edx
mov rcx, rdi
call fcn.1400659a0
mov qword [rsp + 0x78], r13
mov rax, qword [r14 + 0x10]
lea rdx, [rax + 1]
lea rcx, [rax + rax]
cmp qword [r14 + 0x18], 8
jb 0x140058ab4
mov r8, qword [r14]
add r8, rcx
mov r14, qword [r14]
jmp 0x140058ab8
lea r8, [r14 + rcx]
sub r8, r14
mov rax, r8
sar rax, 1
jns 0x140058acd
neg rax
je 0x140058adb
jmp 0x140058c13
test rax, rax
jle 0x140058adb
cmp rdx, rax
jb 0x140058c13
mov rdx, r14
mov rcx, qword [rsp + 0x70]
call fcn.140065250
cmp qword [r12 + 0x10], rbx
jne 0x140058af4
mov r12, rbx
jmp 0x140058b00
cmp qword [r12 + 0x18], 8
jb 0x140058b00
mov r12, qword [r12]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x140058bb6
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
test rcx, rcx
je 0x140058b8c
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058b87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058c13
call fcn.140062610
mov rax, rsi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsi + 4], eax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x140058b8c
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058b87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058c13
jmp 0x140058b87
call fcn.14001da60
int3
call fcn.1400695b8
int3
call fcn.140014df0
int3