Function at 0x140067b98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov edx, 0xfffffffd
movss xmm6, dword [0x140316d58]
mov r13, rcx
movaps xmmword [rsp + 0x50], xmm7
movaps xmm7, xmm6
call fcn.140062f48
mov ebx, eax
lea rcx, str.HWLOC_MEMTIERS_BANDWIDTH_THRESHOLD
mov dword [rsp + 0xc0], ebx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140067bfa
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
lea rcx, str.HWLOC_MEMTIERS_LATENCY_THRESHOLD
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140067c1c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm7, xmm7
cvtsd2ss xmm7, xmm0
mov rax, qword [r13 + 0x2d8]
lea rsi, [rax + 0x40]
test byte [rsi + 0xc], 2
lea r12, [rax + 0x60]
mov qword [rsp + 0xd8], rsi
jne 0x140067c44
mov rdx, rsi
mov rcx, r13
call fcn.14006765c
test byte [r12 + 0xc], 2
jne 0x140067c57
mov rdx, r12
mov rcx, r13
call fcn.14006765c
mov rcx, rbx
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x20], rax
mov r15, rax
test rax, rax
je 0x14006814c
and dword [rsp + 0xd0], 0
lea r14, [rax + 0x18]
test ebx, ebx
je 0x140067e9a
mov r15d, dword [rsp + 0xc0]
mov rbx, r14
mov r14d, dword [rsp + 0xd0]
mov r8d, r14d
mov edx, 0xfffffffd
mov rcx, r13
call fcn.140062f78
and dword [rbx], 0
xor edi, edi
and qword [rbx - 0x10], 0
mov rbp, rax
and qword [rbx - 8], 0
mov qword [rbx - 0x18], rax
cmp dword [rax + 0xe0], edi
jbe 0x140067cf4
mov esi, edi
lea rdx, str.DAXType
shl rsi, 4
add rsi, qword [rbp + 0xd8]
mov rcx, qword [rsi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140067d17
inc edi
cmp edi, dword [rbp + 0xe0]
jb 0x140067cca
xor edi, edi
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140067d1d
lea rdx, str.GPUMemory
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140067d1d
mov dword [rbx], 4
jmp 0x140067d56
mov rdi, qword [rsi + 8]
jmp 0x140067cf6
test rdi, rdi
je 0x140067d56
lea rdx, [0x140412d08]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140067d3d
mov dword [rbx], reloc.WS2_32.dll_recv
jmp 0x140067d56
lea rdx, [0x140412d2c]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140067d56
mov dword [rbx], 8
xor edi, edi
cmp dword [rbp + 0xe0], edi
jbe 0x140067d99
mov esi, edi
lea rdx, str.CXLDevice
shl rsi, 4
add rsi, qword [rbp + 0xd8]
mov rcx, qword [rsi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140067d8c
inc edi
cmp edi, dword [rbp + 0xe0]
jb 0x140067d60
jmp 0x140067d99
cmp qword [rsi + 8], 0
je 0x140067d99
and dword [rbx], 0x10
or dword [rbx], 0x20
mov rsi, qword [rsp + 0xd8]
xor edx, edx
cmp dword [rsi + 0x10], edx
jbe 0x140067e0b
mov r8, qword [rsi + 0x18]
lea rdi, [rdx + rdx*2]
shl rdi, 4
add rdi, r8
cmp qword [rdi], rbp
je 0x140067dc5
inc edx
cmp edx, dword [rsi + 0x10]
jb 0x140067dac
jmp 0x140067e0b
test rdi, rdi
je 0x140067e0b
mov rcx, qword [rbp + 0xb8]
call fcn.1400620b0
test eax, eax
jne 0x140067e0b
mov rax, qword [rbp + 0xb8]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], 1
call fcn.1400677d0
test rax, rax
je 0x140067e0b
mov rax, qword [rax + 0x20]
mov qword [rbx - 0x10], rax
xor edx, edx
cmp dword [r12 + 0x10], edx
jbe 0x140067e7a
mov r8, qword [r12 + 0x18]
lea rdi, [rdx + rdx*2]
shl rdi, 4
add rdi, r8
cmp qword [rdi], rbp
je 0x140067e34
inc edx
cmp edx, dword [r12 + 0x10]
jb 0x140067e19
jmp 0x140067e7a
test rdi, rdi
je 0x140067e7a
mov rcx, qword [rbp + 0xb8]
call fcn.1400620b0
test eax, eax
jne 0x140067e7a
mov rax, qword [rbp + 0xb8]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], 1
call fcn.1400677d0
test rax, rax
je 0x140067e7a
mov rax, qword [rax + 0x20]
mov qword [rbx - 8], rax
inc r14d
add rbx, 0x20
cmp r14d, r15d
jb 0x140067c9c
mov r15, qword [rsp + 0x20]
mov ebx, dword [rsp + 0xc0]
lea r14, [r15 + 0x18]
lea r9, [0x140067b24]
mov edx, ebx
mov r8d, 0x20
mov r12d, ebx
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
and dword [r15 + 0x1c], 0
lea r9d, [rbx - 1]
cmp ebx, 1
jbe 0x140068027
movss xmm3, dword [0x140316d5c]
lea r8, [r15 + 0x3c]
movsd xmm2, qword [0x140313a28]
mov r10d, r9d
mov eax, dword [r14]
mov r11d, dword [r14 + 4]
mov dword [r8], r11d
cmp dword [r8 - 4], eax
jne 0x14006800e
mov rcx, qword [r8 - 0x14]
test rcx, rcx
je 0x140067f82
mov rdx, qword [r14 - 0x10]
test rdx, rdx
je 0x140067f82
xorps xmm0, xmm0
test rcx, rcx
js 0x140067f17
cvtsi2ss xmm0, rcx
jmp 0x140067f2c
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
xorps xmm1, xmm1
test rdx, rdx
js 0x140067f3b
cvtsi2ss xmm1, rdx
jmp 0x140067f50
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm3, xmm0
jbe 0x140067f6a
cvtps2pd xmm0, xmm0
movaps xmm1, xmm2
divsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
addsd xmm0, xmm2
comisd xmm1, xmm0
ja 0x14006800e
mov rcx, qword [r8 - 0xc]
test rcx, rcx
je 0x140068015
mov rdx, qword [r14 - 8]
test rdx, rdx
je 0x140068015
xorps xmm0, xmm0
test rcx, rcx
js 0x140067fa7
cvtsi2ss xmm0, rcx
jmp 0x140067fbc
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
xorps xmm1, xmm1
test rdx, rdx
js 0x140067fcb
cvtsi2ss xmm1, rdx
jmp 0x140067fe0
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm3, xmm0
jbe 0x140067ffa
cvtps2pd xmm0, xmm0
movaps xmm1, xmm2
divsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm7
addsd xmm0, xmm2
comisd xmm1, xmm0
jbe 0x140068015
lea eax, [r11 + 1]
mov dword [r8], eax
add r14, 0x20
add r8, 0x20
sub r10, 1
jne 0x140067ede
mov eax, r9d
mov edx, 0x30
shl rax, 5
mov ebp, dword [rax + r15 + 0x1c]
inc ebp
mov ecx, ebp
mov r14d, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140068143
xor esi, esi
xor r13d, r13d
test ebp, ebp
je 0x14006808d
lea rdi, [rax + 8]
call fcn.140061a0c
mov qword [rdi - 8], rax
test rax, rax
je 0x140068125
mov qword [rdi + 8], r13
inc esi
mov qword [rdi], r13
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x10], r13
mov dword [rdi + 0x20], r13d
add rdi, 0x30
cmp esi, ebp
jb 0x14006805e
cmp dword [rsp + 0xc0], r13d
jbe 0x14006810d
lea rdi, [r15 + 0x10]
mov eax, dword [rdi + 0xc]
lea rsi, [rax + rax*2]
mov rax, qword [rdi - 0x10]
add rsi, rsi
mov edx, dword [rax + 0x10]
mov rcx, qword [rbx + rsi*8]
call fcn.140061f68
mov eax, dword [rdi + 8]
mov dword [rbx + rsi*8 + 0x28], eax
cmp qword [rbx + rsi*8 + 8], r13
jne 0x1400680cc
mov rax, qword [rdi - 8]
mov qword [rbx + rsi*8 + 8], rax
mov rax, qword [rdi - 8]
mov qword [rbx + rsi*8 + 0x10], rax
mov rax, qword [rbx + rsi*8 + 0x18]
test rax, rax
je 0x1400680e4
cmp qword [rdi], rax
jae 0x1400680ec
mov rax, qword [rdi]
mov qword [rbx + rsi*8 + 0x18], rax
mov rax, qword [rbx + rsi*8 + 0x20]
test rax, rax
je 0x1400680fb
cmp qword [rdi], rax
jbe 0x140068103
mov rax, qword [rdi]
mov qword [rbx + rsi*8 + 0x20], rax
add rdi, 0x20
sub r12, 1
jne 0x14006809b
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0xc8]
mov dword [rax], ebp
mov rax, rbx
jmp 0x14006814e
mov rdi, rbx
mov rcx, qword [rdi]
call fcn.140061a8c
lea rdi, [rdi + 0x30]
sub r14, 1
jne 0x140068128
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret