Function at 0x140010520
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140079698]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rsi, rcx
mov rcx, qword [rcx + 0x260]
sub rcx, 0x18
call fcn.1400029c0
add rax, 0x18
mov qword [rsp + 0x78], rax
call fcn.140015d90
mov rcx, rax
test rax, rax
jne 0x14001058e
mov ecx, 0x80004005
call fcn.140002430
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, qword [rsi + 0x260]
or rdi, 0xffffffffffffffff
cmp dword [rcx - 0x10], 0
jle 0x140010653
lea edx, [rdi + 0x5d]
call fcn.14003a098
mov rbx, rax
test rax, rax
je 0x140010653
sub rbx, qword [rsi + 0x260]
sar rbx, 1
test ebx, ebx
js 0x140010653
lea r8d, [rbx + 1]
lea rdx, [rbp - 0x68]
lea rcx, [rsi + 0x260]
call fcn.14000f2e0
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003120
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140010614
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, ebx
lea rdx, [rbp - 0x60]
lea rcx, [rsi + 0x260]
call fcn.14000f240
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140003120
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140010653
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140015d90
mov rcx, rax
test rax, rax
jne 0x14001067d
mov ecx, 0x80004005
call fcn.140002430
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r15, [0x140064fb0]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x1400106a0
mov r8d, eax
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400028a0
lea rcx, [rbp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400106c2
mov r8d, eax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400028a0
lea rdx, str.______
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400106f0
mov r8d, eax
lea rcx, [rsp + 0x60]
call fcn.1400028a0
xor r12d, r12d
mov r14d, r12d
cmp qword [rsi + 0x2a8], r12
jle 0x14001078b
mov ebx, r12d
nop dword [rax]
mov r8d, 2
lea rdx, [0x140064fcc]
lea rcx, [rsp + 0x60]
call fcn.1400028a0
test rbx, rbx
js 0x140010785
cmp rbx, qword [rsi + 0x2a8]
jge 0x140010785
mov rax, qword [rsi + 0x2a0]
mov rdx, qword [rax + rbx*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400028a0
mov r8d, 1
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400028a0
inc r14d
inc rbx
movsxd rax, r14d
cmp rax, qword [rsi + 0x2a8]
jl 0x140010720
jmp 0x14001078b
call fcn.1400160a4
int3
mov qword [rbp - 0x80], r12
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp - 0x48]
call fcn.14003a1f0
mov dword [rbp - 0x50], 0x68
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x400
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
mov r9d, 1
mov r8, qword [rsi + 0x268]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x14001080c
mov rcx, rsi
call fcn.140010450
int3
or edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x68]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001085a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140010879
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140010896
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140037060
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret