Function at 0x180018000
Capabilities:
Query environment variable

Disassembly:
push rsi
push r12
push r13
push r15
sub rsp, 0x78
mov rax, qword [0x180071240]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x1800664b0]
xor esi, esi
movups xmmword [rsp + 0x50], xmm0
mov r15, rcx
lea rcx, str.HWLOC_GROUPING
movss xmm0, dword [0x18006644c]
mov r13d, esi
movss dword [rsp + 0x60], xmm0
lea r12d, [rsi + 5]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180018064
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x180018465
lea rcx, str.HWLOC_IGNORE_DISTANCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x180018465
lea rcx, str.HWLOC_GROUPING_ACCURACY
mov qword [rsp + 0xb0], rbp
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
test rax, rax
jne 0x18001809d
lea r12d, [rax + 1]
jmp 0x1800180e2
mov rcx, rsi
lea r8, [0x180064510]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1800180c6
cmp rcx, 4
jne 0x1800180b0
jmp 0x1800180e2
mov rcx, rdx
mov r12d, 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rsp + 0x50], xmm1
lea rcx, str.HWLOC_GROUPING_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180018100
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r13d, eax
mov rbp, qword [r15 + 0x7d8]
test rbp, rbp
je 0x18001845d
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0x70], r14
nop word [rax + rax]
mov r14d, dword [rbp + 4]
test r14d, r14d
je 0x18001843b
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x18001843b
cmp r14d, 2
jbe 0x180018189
cmp qword [rbp + 8], 0
mov eax, esi
mov r9, qword [rbp + 0x18]
mov edx, r14d
mov dword [rsp + 0x40], r13d
setne al
mov dword [rsp + 0x38], 1
mov rcx, r15
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call fcn.1800176f0
mov ecx, 0xf8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0xf8
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x28
mov dword [rdi], 7
mov dword [rdi + 4], 0xffffffff
mov dword [rdi + 0x40], 0xffffffff
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x30], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov ecx, 0x18
mov rax, qword [rdi + 0x30]
mov dword [rax], 0xffffffff
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x180018201
mov rbx, rsi
jmp 0x180018235
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x180018230
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rsi
jmp 0x180018235
mov dword [rax], esi
mov dword [rbx + 0x10], esi
mov qword [rdi + 0xa0], rbx
test r14d, r14d
je 0x180018419
nop word [rax + rax]
mov rax, qword [rbp + 0x10]
mov rcx, qword [rdi + 0xa0]
mov rdx, rcx
mov r8, qword [rsi + rax]
mov r8, qword [r8 + 0xa0]
call fcn.1800146b0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xa8], 0
je 0x1800182f7
cmp qword [rdi + 0xa8], 0
jne 0x1800182d9
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1800182d2
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1800182cb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x1800182d2
xor ecx, ecx
mov dword [rax], ecx
mov dword [rbx + 0x10], ecx
mov qword [rdi + 0xa8], rbx
mov rax, qword [rbp + 0x10]
mov rcx, qword [rdi + 0xa8]
mov rdx, rcx
mov r8, qword [rsi + rax]
mov r8, qword [r8 + 0xa8]
call fcn.1800146b0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xc0], 0
je 0x180018380
cmp qword [rdi + 0xc0], 0
jne 0x180018362
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x18001835b
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x180018354
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x18001835b
xor ecx, ecx
mov dword [rax], ecx
mov dword [rbx + 0x10], ecx
mov qword [rdi + 0xc0], rbx
mov rax, qword [rbp + 0x10]
mov rcx, qword [rdi + 0xc0]
mov rdx, rcx
mov r8, qword [rsi + rax]
mov r8, qword [r8 + 0xc0]
call fcn.1800146b0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xc8], 0
je 0x180018409
cmp qword [rdi + 0xc8], 0
jne 0x1800183eb
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1800183e4
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1800183dd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x1800183e4
xor ecx, ecx
mov dword [rax], ecx
mov dword [rbx + 0x10], ecx
mov qword [rdi + 0xc8], rbx
mov rax, qword [rbp + 0x10]
mov rcx, qword [rdi + 0xc8]
mov rdx, rcx
mov r8, qword [rsi + rax]
mov r8, qword [r8 + 0xc8]
call fcn.1800146b0
add rsi, 8
sub r14, 1
jne 0x180018250
xor esi, esi
cmp qword [rbp + 8], 0
lea rax, [0x1800170a0]
lea r8, [0x18000de50]
mov rdx, rdi
cmovne r8, rax
mov rcx, r15
call fcn.18000f130
mov rbp, qword [rbp + 0x30]
test rbp, rbp
jne 0x180018130
mov r14, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180050ed0
add rsp, 0x78
pop r15
pop r13
pop r12
pop rsi
ret