Function at 0x14002ce38
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400866a0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15d, 0xa8
mov r8d, r15d
lea rcx, [rbp]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp]
mov r8d, r15d
movups xmm0, xmmword [rax]
lea ebx, [r15 - 0x28]
xor edx, edx
movups xmm1, xmmword [rax + 0x10]
lea r9, [rbx + rsi]
movups xmmword [rsi], xmm0
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsi + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rsi + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rsi + 0x50], xmm1
movups xmm1, xmmword [rax + rbx]
movups xmmword [rsi + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [r9 - 0x10], xmm0
movups xmm0, xmmword [rax + rbx + 0x10]
mov rax, qword [rax + rbx + 0x20]
movups xmmword [r9], xmm1
movups xmmword [r9 + 0x10], xmm0
mov qword [r9 + 0x20], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
or dword [r14], 0xffffffff
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x50]
xor r9d, r9d
movups xmm0, xmmword [rax]
lea rcx, [rbp]
mov r8d, r15d
movups xmm1, xmmword [rax + 0x10]
lea rdx, [rbp]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x60], xmm0
add rcx, rbx
movups xmm0, xmmword [rax + rbx]
movups xmmword [rcx - 0x10], xmm1
movups xmm1, xmmword [rax + rbx + 0x10]
mov rax, qword [rax + rbx + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea ecx, [rbx + 0x2d]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14002d13f
and dword [rsp + 0x20], 0
lea r15d, [rbx - 0x7c]
mov ecx, r15d
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLogicalProcessorInformationEx]
mov ebx, dword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [r15 + 4]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14002cfd6
mov eax, 0xc000009a
jmp 0x14002d13f
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, r15d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLogicalProcessorInformationEx]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14002d0b7
movzx ecx, word [rbx + 0xa]
xor eax, eax
mov qword [rsp + 0x30], rax
xor r11b, r11b
mov qword [rsp + 0x38], rax
xor r9d, r9d
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsi], ecx
test ecx, ecx
je 0x14002d0a4
mov r12, qword [rsp + 0x38]
lea rax, [r9 + r9*2]
add rax, rax
mov r10, qword [rbx + rax*8 + 0x48]
mov qword [rsi + r9*8 + 8], r10
test r11b, r11b
jne 0x14002d092
xor r13d, r13d
lea edx, [r13 + 1]
test dl, r10b
je 0x14002d092
mov r15, qword [0x140087388]
movzx r8d, r9w
test r12, r12
jne 0x14002d062
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov word [rsp + 0x30], r8w
movzx ecx, r8w
test r15, r15
je 0x14002d102
movzx eax, word [0x140087380]
cmp r9d, eax
jne 0x14002d118
test rdx, r15
je 0x14002d118
mov qword [rdi + 8], rdx
mov r11b, 1
mov word [rdi], cx
inc r9d
cmp r9d, dword [rsi]
jb 0x14002d022
test r11b, r11b
jne 0x14002d0a8
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rax, qword [rdi + 8]
movzx ecx, word [rdi]
not rax
and qword [rsi + rcx*8 + 8], rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp dword [rsp + 0x40], 0
je 0x14002d13a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002d13a
bsf edx, ecx
setne al
test al, al
jne 0x14002d0ef
shr rcx, 0x20
bsf edx, ecx
add edx, 0x20
movzx eax, word [rdi]
shl eax, 0x10
or eax, edx
bts eax, 8
mov dword [r14], eax
xor eax, eax
jmp 0x14002d13f
mov qword [rdi + 8], rdx
test qword [rbp + r9*8 + 8], rdx
je 0x14002d08c
mov r15, qword [0x140087388]
not rdx
inc r13d
and r10, rdx
mov ecx, r13d
mov edx, 1
shl rdx, cl
test r10, rdx
jne 0x14002d04f
jmp 0x14002d092
mov eax, 0xc0000001
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140015a80
mov rbx, qword [rsp + 0x218]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret