Function at 0x180018570
Capabilities:
Query environment variable

Disassembly:
push rsi
push r12
push r13
push r15
sub rsp, 0x78
mov rax, qword [0x1800824f0]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x180076ab0]
xor esi, esi
movups xmmword [rsp + 0x50], xmm0
mov r15, rcx
lea rcx, str.HWLOC_GROUPING
movss xmm0, dword [0x180076a4c]
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 0x1800185d4
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x1800189d5
lea rcx, str.HWLOC_IGNORE_DISTANCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1800189d5
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 0x18001860d
lea r12d, [rax + 1]
jmp 0x180018652
mov rcx, rsi
lea r8, [0x180074b10]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x180018636
cmp rcx, 4
jne 0x180018620
jmp 0x180018652
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 0x180018670
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 0x1800189cd
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 0x1800189ab
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x1800189ab
cmp r14d, 2
jbe 0x1800186f9
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.180017c60
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 0x180018771
mov rbx, rsi
jmp 0x1800187a5
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 0x1800187a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rsi
jmp 0x1800187a5
mov dword [rax], esi
mov dword [rbx + 0x10], esi
mov qword [rdi + 0xa0], rbx
test r14d, r14d
je 0x180018989
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.180014c20
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xa8], 0
je 0x180018867
cmp qword [rdi + 0xa8], 0
jne 0x180018849
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180018842
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 0x18001883b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x180018842
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.180014c20
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xc0], 0
je 0x1800188f0
cmp qword [rdi + 0xc0], 0
jne 0x1800188d2
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1800188cb
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 0x1800188c4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x1800188cb
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.180014c20
mov rax, qword [rbp + 0x10]
mov rcx, qword [rsi + rax]
cmp qword [rcx + 0xc8], 0
je 0x180018979
cmp qword [rdi + 0xc8], 0
jne 0x18001895b
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180018954
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 0x18001894d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x180018954
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.180014c20
add rsi, 8
sub r14, 1
jne 0x1800187c0
xor esi, esi
cmp qword [rbp + 8], 0
lea rax, [0x180017610]
lea r8, [0x18000e3c0]
mov rdx, rdi
cmovne r8, rax
mov rcx, r15
call fcn.18000f6a0
mov rbp, qword [rbp + 0x30]
test rbp, rbp
jne 0x1800186a0
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.180060dd0
add rsp, 0x78
pop r15
pop r13
pop r12
pop rsi
ret