Function at 0x1400383fc
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xb8
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rbp - 1], rax
mov rax, qword [rbp + 0x77]
xor r12d, r12d
mov rbx, r8
mov qword [rbp - 0x21], rax
mov r15, r9
mov rax, qword [rbp + 0x7f]
mov r13, rcx
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x49], r9
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x39], rcx
cmp byte [rcx + 0x38], r12b
jne 0x140038466
mov rdx, qword [rdx]
lea r8, [rcx + 0x40]
call fcn.14003ccbc
mov dword [r13 + 0x3c], eax
mov byte [r13 + 0x38], 1
mov ecx, dword [r13 + 0x3c]
test ecx, ecx
js 0x1400388b7
mov byte [rbp - 0x79], r12b
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x61], r12
mov dword [rbp - 0x71], r12d
mov r14, r12
mov qword [rbp - 0x69], r12
mov esi, r12d
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x59], r12
mov dword [rbp - 0x75], r12d
test r15, r15
je 0x1400384d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], r12w
jne 0x1400384a1
cmp rax, 3
jb 0x140038584
add rax, 0xfffffffffffffffd
lea rdx, [0x1400614d0]
lea rcx, [r15 + rax*2]
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp
test eax, eax
mov ecx, r12d
sete cl
jmp 0x1400384ed
mov rax, qword gs:[0x30]
mov ecx, r12d
mov r14, qword [rbp - 0x69]
mov esi, dword [rbp - 0x75]
mov dword [rax + 0x68], 0x57
test ecx, ecx
je 0x140038584
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], r12w
jne 0x1400384f9
sub rax, 3
mov edi, 0x8007000e
test r15, r15
je 0x14003856f
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], r12w
jne 0x140038515
cmp rax, rcx
ja 0x14003856f
mov rcx, qword gs:[0x60]
lea rsi, [rax + 1]
lea r8, [rsi + rsi]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x69], rax
mov r14, rax
test rax, rax
je 0x14003856a
lea r9, [rsi - 1]
mov r8, r15
mov rdx, rsi
mov rcx, rax
call 0x1400087d0
mov edi, eax
mov esi, dword [rbp - 0x75]
jmp 0x140038574
mov edi, 0x80070057
test edi, edi
js 0x140038892
mov r12, r14
jmp 0x14003866f
test r15, r15
je 0x1400385ba
lea rax, [rbp - 0x75]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x41]
lea rax, [rbp - 0x59]
lea r8, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x71]
call fcn.140036334
mov r14, qword [rbp - 0x69]
mov edi, eax
mov esi, dword [rbp - 0x75]
jmp 0x1400385bf
mov edi, 0x80070057
test edi, edi
js 0x140038892
cmp dword [rbp - 0x71], r12d
je 0x14003866c
mov r12, r14
test esi, esi
je 0x14003866f
mov r14, qword [rbp - 0x59]
mov r15d, esi
cmp qword [r14], 0
jne 0x140038659
mov rcx, qword gs:[0x60]
mov edx, 8
mov edi, 0x8007000e
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx - 6]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140038630
xor r9d, r9d
lea r8, [0x14005ca74]
mov rcx, rax
lea edx, [r9 + 1]
call 0x1400087d0
mov edi, eax
test edi, edi
js 0x140038659
test rsi, rsi
je 0x140038659
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
add r14, 8
sub r15, 1
jne 0x1400385e3
mov r14, qword [rbp - 0x69]
mov esi, dword [rbp - 0x75]
jmp 0x14003866f
mov r12, r15
test edi, edi
js 0x14003888f
lea rdx, [rbp - 0x19]
mov rcx, r12
call fcn.140036164
xor r12d, r12d
mov edi, eax
test eax, eax
js 0x1400387e3
mov rdx, qword [r13 + 0x40]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.14003ce84
test eax, eax
js 0x1400387ba
mov rax, qword [rbp - 0x61]
mov r9, rbx
mov rcx, qword [r13 + 0x40]
mov qword [rsp + 0x20], rax
call fcn.14003d554
test eax, eax
js 0x1400387ba
mov byte [rbp - 0x79], r12b
cmp dword [rbp - 0x71], r12d
je 0x1400387b5
test esi, esi
je 0x1400387da
mov r15, qword [rbp - 0x59]
mov r12, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x39]
sub r12, r15
mov r13d, esi
mov rsi, qword [r15]
xor r14d, r14d
mov rdi, qword [r12 + r15]
test rsi, rsi
jne 0x140038755
mov rcx, qword gs:[0x60]
lea edx, [rsi + 8]
lea r8d, [rsi + 2]
mov r14d, 0x8007000e
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14003874e
xor r9d, r9d
lea r8, [0x14005ca74]
mov rcx, rax
lea edx, [r9 + 1]
call 0x1400087d0
mov r14d, eax
not r14d
shr r14d, 0x1f
mov rdx, qword [rbp - 0x61]
mov r9, rsi
mov r8, rdi
mov rcx, rbx
call fcn.140037c64
mov edi, eax
test r14d, r14d
je 0x140038793
test rsi, rsi
je 0x140038793
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
add r15, 8
sub r13, 1
jne 0x1400386f8
mov r14, qword [rbp - 0x69]
xor r12d, r12d
mov esi, dword [rbp - 0x75]
mov rbx, qword [rbp - 0x31]
mov r13, qword [rbp - 0x39]
jmp 0x1400387da
mov edi, r12d
jmp 0x1400387da
mov ecx, eax
mov byte [rbp - 0x79], 1
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rcx, [rbp - 0x19]
call fcn.140036270
test r14, r14
je 0x140038808
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x41]
mov edx, esi
call fcn.140036298
mov rcx, qword [rbp - 0x59]
mov edx, esi
call fcn.140036298
test edi, edi
js 0x140038892
mov rdi, qword [rbp - 0x51]
test rdi, rdi
je 0x140038855
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
cmovne rdi, r12
mov qword [rbp - 0x51], rdi
cmp qword [rbp - 0x21], r12
jne 0x140038862
mov edi, 0x80070057
jmp 0x140038892
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x21]
call fcn.140035f44
mov edi, eax
cmp eax, 1
je 0x140038892
test eax, eax
js 0x140038892
mov r15, qword [rbp - 0x51]
mov rbx, qword [rbp - 0x61]
mov al, byte [rbp - 0x79]
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x31], rbx
jmp 0x14003889b
xor r12d, r12d
mov r15, qword [rbp - 0x49]
mov al, 1
mov byte [rbp - 0x79], al
test al, al
je 0x14003847e
test edi, edi
js 0x1400388d1
mov rcx, qword [rbp - 0x29]
mov edi, r12d
mov rax, qword [rbp - 0x61]
mov qword [rcx], rax
jmp 0x1400388d1
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400582e0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret