Function at 0x1801d3410
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x18032a080]
xor rax, rsp
mov qword [rbp + 0x60], rax
movzx r12d, r8b
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
mov r14, qword [rbp + 0xd0]
mov r15, qword [rbp + 0xd8]
xor r13d, r13d
mov dword [rsp + 0x50], r13d
test r9b, r9b
je 0x1801d3499
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x1801d3481
mov rsi, qword [rcx]
call fcn.1801d6e60
mov rcx, rax
mov rdx, rsi
call fcn.1801d6e30
test al, al
je 0x1801d3733
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], 0x80
cmp qword [rdi + 0x10], rax
je 0x1801d3559
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1801d34de
mov rax, qword [rdi]
cmp word [rax], 0x20
je 0x1801d3559
mov r8, rdi
lea rdx, [0x1802874a0]
lea rcx, [rbp]
call fcn.1800f86a0
nop
mov rdx, rax
mov rcx, rdi
call fcn.180007ab0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1801d3547
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d3542
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d3542
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
movdqa xmm1, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x10], xmm1
mov word [rbp], r13w
mov esi, 1
mov dword [rsp + 0x50], esi
mov rdx, qword [rbx + 0x10]
inc rdx
lea rcx, [rbp]
call fcn.180009b00
mov r8d, esi
lea rdx, [0x18026c654]
lea rcx, [rbp]
call fcn.180007c10
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1801d35ac
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp]
call fcn.180007c10
lea r8, [0x18026c654]
lea rdx, [rbp]
lea rcx, [rbp + 0x40]
call fcn.180009a20
nop
and esi, 0xfffffffe
mov dword [rsp + 0x50], esi
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1801d3618
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d3613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d3613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
mov r8, rdi
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.1800096e0
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1801d374b
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1801d36cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d36c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d36c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r13w
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x1801d3721
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d371c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d371c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r13w
mov rcx, rbx
call fcn.180007090
nop
mov rcx, rdi
call fcn.180007090
xor al, al
jmp 0x1801d3881
test r14, r14
je 0x1801d3757
mov eax, dword [rsp + 0x68]
mov dword [r14], eax
mov rcx, qword [rsp + 0x58]
test r12b, r12b
je 0x1801d3797
test rcx, rcx
je 0x1801d3797
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test r15, r15
je 0x1801d3784
mov rdx, r15
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1801d37b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1801d37c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r13
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1801d3807
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d3802
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d3802
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r13w
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x1801d385c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801d3857
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801d3857
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18022acec
movdqa xmm0, xmmword [0x180291a20]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r13w
mov rcx, rbx
call fcn.180007090
nop
mov rcx, rdi
call fcn.180007090
mov al, 1
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.18022a7d0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret