Function at 0x14000345c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r14, qword [rbp + 0x470]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x214
mov r15d, r9d
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
xor eax, eax
xor r12d, r12d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
cmp dword [rdi], r12d
je 0x14000369b
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x30], 6
jge 0x1400034fc
mov ebx, 0x8007139f
jmp 0x1400036a0
test rbx, rbx
je 0x140003694
test rsi, rsi
je 0x140003694
test r14, r14
je 0x140003694
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140003531
add rbx, 2
test ecx, ecx
jne 0x14000351e
test eax, eax
je 0x14000353f
mov ebx, 0x80070005
jmp 0x1400036a0
mov r8, rsi
lea rcx, [rbp - 0x20]
mov edx, 0x104
call fcn.140001bb4
test eax, eax
js 0x140003694
movzx eax, word [rbp - 0x20]
lea rcx, [rbp - 0x20]
jmp 0x140003577
cmp ax, 0x2f
jne 0x140003570
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140003562
lea rcx, [rbp - 0x20]
call fcn.140007f10
test eax, eax
js 0x140003694
lea rcx, [rbp - 0x20]
call fcn.140007fbc
test eax, eax
js 0x140003694
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140001e60
mov ebx, eax
test eax, eax
js 0x1400036a0
cmp dword [rdi + 0x8c], r12d
jne 0x1400035ce
lea rcx, [rbp - 0x20]
call fcn.1400087f0
test eax, eax
je 0x140003535
mov esi, 0x10a
lea r8, [rbp + 0x1f0]
mov r9d, esi
lea rcx, [rbp - 0x20]
mov edx, esi
call fcn.140009b9c
mov ebx, eax
test eax, eax
js 0x1400036a0
test r15d, r15d
je 0x140003616
lea r8, str.__RegServer
mov edx, esi
lea rcx, [rbp + 0x1f0]
call fcn.140001164
mov ebx, eax
test eax, eax
js 0x1400036a0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], Ordinal_107
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140003675
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400036a0
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140001ee8
mov ebx, eax
test eax, eax
js 0x1400036a0
mov dword [rdi + 0x30], 8
jmp 0x1400036a0
mov ebx, 0x80070057
jmp 0x1400036a0
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400036b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400036c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rdi], r12d
je 0x1400036cf
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret