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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, r9
mov ebp, r8d
mov qword [rsp + 0x58], rdx
mov r14d, ecx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ecx, pe_nt_image_headers64
call fcn.14013a6b4
mov rdi, rax
mov dword [rax + 8], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], 0xffffffffffffffff
lea rax, fcn.140098d30
mov qword [rdi], rax
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x48], xmm0
movups xmmword [rdi + 0x58], xmm0
movups xmmword [rdi + 0x68], xmm0
mov eax, ebp
mov rcx, rax
shl rcx, 4
mov qword [rsp + 0x40], rcx
lea r12, [rcx + 8]
test ebp, ebp
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x48], ebp
jne 0x14018d18f
lea rax, [rdi + 0x58]
mov qword [rsp + 0x50], rax
xor r13d, r13d
xor eax, eax
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov esi, r14d
mov rax, qword [rdi]
mov rax, qword [rax + 0x10]
lea rcx, [0x14020dbf0]
cmp rax, rcx
jne 0x14018cf07
mov rax, qword [rdi + 0x60]
sub rax, qword [rdi + 0x58]
sar rax, 4
mov ecx, 0x70
mul rcx
jo 0x14018d294
mov r14, rax
add r14, 0x10
jb 0x14018d29d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x68], rsi
lea rax, [r12 + rsi]
lea rsi, [r14 + rax]
add rsi, 0x30
add rax, r14
add rax, 0x38
cmp rax, rsi
cmovbe rax, rsi
test rsi, rsi
mov ebx, 8
cmovne rbx, rax
mov ecx, 0x48
call fcn.14013a6b4
mov r15, rax
lea rax, [0x1402e4c80]
mov qword [r15], rax
lea rax, [r13*4]
mov r12, rax
and r12, 0xfffffffffffffff8
add r12, 8
test r13b, 1
cmove r12, rax
mov qword [r15 + 0x20], r13
lea rcx, [rbx + r12 + 0x10]
xorps xmm0, xmm0
movups xmmword [r15 + 0x28], xmm0
movups xmmword [r15 + 0x38], xmm0
mov qword [r15 + 0x18], rcx
lea rax, [r12 + rsi]
add rax, 0x18
mov qword [r15 + 8], rax
call fcn.1400ae680
test rax, rax
je 0x14018d291
add r12, 0x10
mov qword [r15 + 0x10], rax
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.14013f660
mov esi, dword [r15 + 8]
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
mov rcx, r15
call qword [case.0x14017aab5.0]
mov dword [rax], esi
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
mov rcx, r15
call qword [case.0x14017aab5.0]
mov word [rax + 6], 1
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
mov rcx, r15
call qword [case.0x14017aab5.0]
mov word [rax + 4], r12w
cmp qword [r15 + 0x20], 0
je 0x14018cd43
movabs rbx, 0xfffffffc00000000
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
mov rcx, r15
call qword [case.0x14017aab5.0]
mov rsi, rax
add rsi, 0x10
mov rcx, qword [r15 + 0x40]
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140336a08]
jne 0x14018cd0e
call fcn.14010edf0
and rbx, rsi
cmp rbx, qword [0x140336a08]
jne 0x14018cd22
mov rcx, rsi
call fcn.14010ecc8
mov qword [r15 + 0x40], rsi
cmp qword [r15 + 0x20], 0
je 0x14018cd43
xor eax, eax
mov rcx, qword [r15 + 0x40]
mov dword [rcx + rax*4], 0xffffffff
inc rax
cmp rax, qword [r15 + 0x20]
jb 0x14018cd2f
lea rbx, [r14 + 0x30]
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
lea rsi, [0x1400dc990]
cmp rax, rsi
mov r8, qword [rsp + 0x28]
jne 0x14018d2a6
mov r12, qword [r15 + 0x10]
cmp word [r12 + 6], 0
mov rax, r12
je 0x14018d389
movzx esi, word [rax + 4]
add rsi, r12
mov qword [rsi], 5
lea rbp, [rsi + rbx]
add rbp, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
test r13, r13
mov r12, qword [rsp + 0x30]
jne 0x14018cf3a
mov ecx, dword [rsp + 0x48]
mov dword [rbp], ecx
mov rax, r12
shr rax, 0x20
jne 0x14018d11a
mov dword [rbp + 4], r12d
test ecx, ecx
jne 0x14018cf54
lea rsi, [r12 + rbp]
xor eax, eax
xor r13d, r13d
mov r14, r15
mov r12, qword [rsp + 0x90]
mov r15, rax
test r12, r12
jne 0x14018d251
test r15, r15
jne 0x14018d368
test r8, r8
mov r15, qword [rsp + 0x30]
jne 0x14018ceef
test r13d, r13d
jne 0x14018d15b
mov ecx, 0x88
call fcn.14013a6b4
mov rbx, rax
lea rax, [0x1402e9bef]
mov qword [rbx + 8], rax
lea rax, [0x1402e3388]
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
xorps xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], r14
mov word [rbx + 0x38], 0x100
mov byte [rbx + 0x3a], 1
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x50], rsi
mov rcx, qword [rsp + 0x68]
mov qword [rbx + 0x58], rcx
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], rax
mov eax, dword [0x140339338]
mov ecx, dword [0x140337e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14018d0c1
lock inc dword [0x14033932c]
mov rcx, qword [rdi + 0x70]
mov qword [rdi + 0x70], rbx
test rcx, rcx
jne 0x14018d145
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov qword [rax], rdi
test rcx, rcx
jne 0x14018d136
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14013d520
mov eax, r13d
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r8
call fcn.14013a6ac
jmp 0x14018ce09
mov r14d, 8
jmp 0x14018cbe2
lea rcx, [0x14009c290]
cmp rax, rcx
je 0x14018cefc
mov r14d, 0x40
lea rcx, [0x14020dc90]
cmp rax, rcx
je 0x14018cbe2
mov rcx, rdi
call qword [case.0x14017aab5.0]
mov r14, rax
jmp 0x14018cbe2
lea rcx, [rsp + 0x90]
mov rdx, r13
call fcn.1400c4660
mov r8, qword [rsp + 0x28]
jmp 0x14018cdb2
add rbx, rsi
mov rax, qword [rsp + 0x40]
lea r9, [rax + rbx]
add r9, 0x10
mov rax, qword [rsp + 0x38]
sub rax, r8
movabs rcx, 0x2aaaaaaaaaaaaaab
imul rcx
mov rax, rdx
shr rax, 0x3f
sar rdx, 1
add rdx, rax
lea rax, [r14 + rsi]
add rax, 0x4c
mov qword [rsp + 0x60], rax
mov rsi, r9
lea r14, [r8 + 8]
xor ebx, ebx
xor r13d, r13d
xor r12d, r12d
mov qword [rsp + 0x48], rsi
sub rdx, 1
mov qword [rsp + 0x38], rdx
jb 0x14018d3a9
mov rax, qword [rsp + 0x58]
mov rsi, qword [rax + rbx]
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
call qword [case.0x14017aab5.0]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + rbx - 0xc], eax
mov eax, dword [r14 - 8]
mov dword [rcx + rbx - 8], eax
mov eax, dword [r14 - 4]
mov dword [rcx + rbx - 4], eax
mov eax, dword [r14]
mov dword [rcx + rbx], eax
mov rax, qword [rsp + 0x90]
mov rcx, r13
shl rcx, 4
add rcx, rax
cmp rax, qword [rsp + 0x98]
mov r9d, 0
cmovne r9, rcx
mov r8, r12
shl r8, 4
mov rax, qword [rsp + 0x50]
add r8, qword [rax]
mov rax, qword [rsi]
mov rax, qword [rax + 0xc0]
mov rcx, rsi
mov rsi, qword [rsp + 0x48]
mov rdx, rsi
call qword [case.0x14017aab5.0]
test al, al
je 0x14018d303
mov eax, dword [r14 - 8]
mov ecx, dword [r14 - 4]
add rsi, rax
add r12, rcx
mov eax, dword [r14]
add r13, rax
add rbx, 0x10
add r14, 0xc
cmp qword [rsp + 0x40], rbx
mov rdx, qword [rsp + 0x38]
jne 0x14018cfa2
mov rax, qword [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rdx + 8], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x30]
mov rcx, r15
call qword [case.0x14017aab5.0]
mov r12, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
jmp 0x14018cdd2
lea rcx, [0x140339338]
call fcn.14013b388
cmp dword [0x140339338], 0xffffffff
jne 0x14018ce9c
lea rax, [0x1402e3c50]
mov qword [0x140339330], rax
lea rsi, [0x140339330]
call fcn.1400ea230
lea r8, str.MojoMessages
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400ea250
lea rcx, [0x140339338]
call fcn.14013a7d4
jmp 0x14018ce9c
mov r13d, 0xb
xor ebp, ebp
mov rax, r15
xor r15d, r15d
xor esi, esi
xor ecx, ecx
mov qword [rsp + 0x30], rcx
jmp 0x14018cddb
mov edx, 1
call fcn.140098d30
jmp 0x14018cec8
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x14017aab5.0]
jmp 0x14018ceb4
test rdi, rdi
je 0x14018d16d
mov rcx, rdi
mov edx, 1
call fcn.140098d30
test r14, r14
je 0x14018cec8
mov rax, qword [r14]
mov rax, qword [rax]
mov rcx, r14
mov edx, 1
call qword [case.0x14017aab5.0]
jmp 0x14018cec8
shl rax, 2
lea rsi, [rax + rax*2]
mov rcx, rsi
call fcn.14013a6b4
lea rcx, [rax + rsi]
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rax
add rcx, rdx
je 0x14018d3a6
mov dword [rcx + 8], 0
mov qword [rcx], 0
add rdx, 0xc
cmp rsi, rdx
jne 0x14018d1aa
mov rbp, rax
mov rsi, rax
add rsi, 8
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + rbx]
lea rdx, [rsi - 8]
lea r8, [rsi - 4]
mov rax, qword [rcx]
mov rax, qword [rax + 0xb8]
mov r9, rsi
call qword [case.0x14017aab5.0]
mov eax, dword [rsi - 8]
mov ecx, dword [rsi - 4]
add r12, rax
add r15, rcx
mov eax, dword [rsi]
add r13, rax
add rbx, 0x10
add rsi, 0xc
cmp qword [rsp + 0x40], rbx
jne 0x14018d1df
lea rax, [rdi + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x60]
sub rax, qword [rdi + 0x58]
sar rax, 4
cmp r15, rax
jbe 0x14018cb9c
mov rcx, rdi
mov rdx, r15
call fcn.1400daef0
jmp 0x14018cb9c
mov rbx, qword [rsp + 0x98]
mov rcx, r12
cmp rbx, r12
je 0x14018d27a
add rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1400bb656
cmp rbx, r12
jne 0x14018d261
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x98], r12
call fcn.14013a6ac
mov r8, qword [rsp + 0x28]
jmp 0x14018cdf2
int3
int3
int3
mov rcx, r15
call qword [case.0x14017aab5.0]
mov rcx, rax
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
cmp word [rcx + 6], 0
je 0x14018d386
cmp rax, rsi
je 0x14018d2e7
mov rcx, r15
call qword [case.0x14017aab5.0]
mov r12, rax
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
cmp rax, rsi
jne 0x14018d2f8
mov rax, qword [r15 + 0x10]
jmp 0x14018d2ee
mov r12, qword [r15 + 0x10]
mov rax, r12
mov r8, qword [rsp + 0x28]
jmp 0x14018cd77
mov rcx, r15
call qword [case.0x14017aab5.0]
jmp 0x14018d2ee
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
cmp r12, rsi
je 0x14018d34a
xor ebp, ebp
mov r13d, 3
mov rcx, r12
call fcn.1400ad4f2
add r12, 0x10
cmp r12, rsi
jne 0x14018d320
mov rax, r15
xor r15d, r15d
xor esi, esi
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov r8, qword [rsp + 0x28]
jmp 0x14018cddb
mov r13d, 3
xor r14d, r14d
xor ebp, ebp
xor esi, esi
xor eax, eax
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
jmp 0x14018cde9
mov rax, qword [r15]
mov rax, qword [rax]
mov rcx, r15
mov edx, 1
call qword [case.0x14017aab5.0]
mov r8, qword [rsp + 0x28]
jmp 0x14018cdfb
mov rsi, rax
mov rcx, r15
mov rax, rsi
call qword [case.0x14017aab5.0]
mov r8, qword [rsp + 0x28]
mov rsi, rax
add rsi, 8
jmp 0x14018cd7e
int3
int3