Function at 0x140003728
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 [0x140016018]
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
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
cmp dword [rdi], r12d
je 0x140003977
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 6
jge 0x1400037cc
mov ebx, 0x8007139f
jmp 0x14000397c
test rbx, rbx
je 0x140003970
test rsi, rsi
je 0x140003970
test r14, r14
je 0x140003970
mov rdx, qword [rdi + 0x40]
sub rdx, rbx
movzx eax, word [rbx]
movzx ecx, word [rbx + rdx]
sub eax, ecx
jne 0x140003801
add rbx, 2
test ecx, ecx
jne 0x1400037ee
test eax, eax
je 0x14000380f
mov ebx, 0x80070005
jmp 0x14000397c
mov r8, rsi
lea rcx, [rbp - 0x20]
mov edx, 0x104
call fcn.140001be4
test eax, eax
js 0x140003970
movzx eax, word [rbp - 0x20]
lea rcx, [rbp - 0x20]
jmp 0x140003847
cmp ax, 0x2f
jne 0x140003840
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140003832
lea rcx, [rbp - 0x20]
call fcn.1400088f0
test eax, eax
js 0x140003970
lea rcx, [rbp - 0x20]
call fcn.1400089a0
test eax, eax
js 0x140003970
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140001f28
mov ebx, eax
test eax, eax
js 0x14000397c
cmp dword [rdi + 0x8c], r12d
jne 0x14000389e
lea rcx, [rbp - 0x20]
call fcn.140009348
test eax, eax
je 0x140003805
mov esi, 0x10a
lea r8, [rbp + 0x1f0]
mov r9d, esi
lea rcx, [rbp - 0x20]
mov edx, esi
call fcn.14000a99c
mov ebx, eax
test eax, eax
js 0x14000397c
test r15d, r15d
je 0x1400038e6
lea r8, str.__RegServer
mov edx, esi
lea rcx, [rbp + 0x1f0]
call fcn.140001164
mov ebx, eax
test eax, eax
js 0x14000397c
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]
nop dword [rax + rax]
test eax, eax
jne 0x140003951
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000397c
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140001fb8
mov ebx, eax
test eax, eax
js 0x14000397c
mov dword [rdi + 0x30], 8
jmp 0x14000397c
mov ebx, 0x80070057
jmp 0x14000397c
mov ebx, 0x8007000e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003992
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400039a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp dword [rdi], r12d
je 0x1400039bd
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000f1e0
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