Function at 0x18000bcaa
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0xb8
xor eax, eax
mov r8d, eax
mov dword [0x18022a79c], 0xe1d
mov dword [0x18022a798], 0x1c58
mov r9, qword gs:[0x30]
mov rax, qword [r9 + 0x60]
mov rax, qword [rax + 0x18]
mov r9, rax
add r9, 0x20
mov dword [0x18022a798], 0x1f58
mov rax, qword [rax + 0x20]
mov dword [0x18022a79c], 0x1898
cmp rax, r9
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x30], r8
je 0x18000bf61
jmp 0x18000bd2f
mov eax, dword [0x18022a79c]
mov dword [rbp - 0x34], eax
jmp 0x18000bdd7
mov rax, qword [rbp - 0x10]
cmp rax, 0
setne cl
mov rdx, qword [rbp - 0x20]
mov byte [rbp - 0x35], cl
mov qword [rbp - 0x40], rdx
mov rax, qword [rbp - 0x40]
mov ecx, 0x10fd
mov dword [0x18022a79c], 0x10fd
mov rdx, rax
add rdx, 0x20
mov dword [0x18022a798], 0x6cd
mov r8, qword [rbp - 0x10]
cmp qword [rax + 0x20], r8
sete r9b
mov r10b, byte [rbp - 0x35]
and r10b, r9b
test r10b, 1
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rdx
mov dword [rbp - 0x34], ecx
jne 0x18000bd94
jmp 0x18000bdd7
mov ecx, 0x54
mov dword [0x18022a798], 0x15b3
call fcn.18000c045
mov dword [0x18022a798], 0xd81
cmp ax, 0x31
je 0x18000bd21
mov rax, qword [rbp - 0x48]
add rax, 0xfffffffffffffff0
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x30], rax
jmp 0x18000bf61
mov eax, dword [rbp - 0x34]
xor ecx, ecx
add eax, 0xffffda2f
mov rdx, qword [rbp - 0x48]
mov r8w, word [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov dword [0x18022a798], eax
mov dword [0x18022a79c], 0x1d1d
shr r8w, 1
movzx eax, r8w
cmp r8w, 0
mov dword [rbp - 0x5c], eax
mov qword [rbp - 0x68], r9
mov dword [rbp - 0x6c], ecx
je 0x18000bf41
mov eax, dword [rbp - 0x6c]
mov dword [0x18022a79c], 0xca0
mov ecx, eax
mov edx, ecx
mov r8, qword [rbp - 0x68]
mov r9w, word [r8 + rdx*2]
cmp r9w, 0
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x78], rdx
mov word [rbp - 0x7a], r9w
jne 0x18000be95
mov dword [0x18022a798], 0x12c8
mov rax, qword [rbp - 0x78]
shl rax, 1
mov rcx, qword [rbp - 0x18]
add rcx, rax
mov qword [rbp - 0x88], rcx
mov rax, qword [rbp - 0x88]
cmp word [rax], 0
sete cl
and cl, 1
movzx edx, cl
mov dword [0x18022a79c], 0x2d0
mov dword [rbp - 0x8c], edx
jmp 0x18000bf19
mov ax, word [rbp - 0x7a]
movzx ecx, ax
call fcn.18000c045
mov word [rbp - 0x8e], ax
mov eax, dword [0x18022a798]
add eax, 0xfffff28b
mov dword [0x18022a798], eax
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x78]
mov r8w, word [rbp - 0x8e]
cmp word [rcx + rdx*2], r8w
sete r9b
mov dword [0x18022a79c], 0x1d7
mov eax, dword [rbp - 0x70]
add eax, 1
mov r10d, dword [rbp - 0x5c]
cmp eax, r10d
setb r11b
mov bl, r9b
and bl, r11b
test bl, 1
mov byte [rbp - 0x8f], r9b
mov dword [rbp - 0x6c], eax
jne 0x18000be1d
mov al, byte [rbp - 0x8f]
and al, 1
movzx ecx, al
mov dword [rbp - 0x8c], ecx
mov eax, dword [rbp - 0x8c]
cmp eax, 0
je 0x18000bf41
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
mov qword [rbp - 0x98], rcx
mov rax, qword [rbp - 0x98]
mov qword [rbp - 0x30], rax
jmp 0x18000bf61
xor eax, eax
mov ecx, eax
mov rdx, qword [rbp - 0x48]
mov r8, qword [rdx]
mov r9, qword [rbp - 0x28]
cmp r8, r9
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x30], rcx
jne 0x18000bd47
mov rax, qword [rbp - 0x30]
add rsp, 0xb8
pop rbx
pop rbp
ret