Function at 0x1400d3390
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0xc8]
mov r12, rcx
mov rbx, rdx
mov r15d, r8d
test eax, eax
je 0x1400d3790
cmp qword [rcx + 0xe8], 0
jne 0x1400d37a7
test r8d, 0xffffffe0
jne 0x1400d3790
test r8b, 8
je 0x1400d3510
test r8b, 1
jne 0x1400d3790
mov rdx, qword [rcx + 0x1c0]
mov rcx, rbx
call fcn.1400e0e70
test eax, eax
je 0x1400d3790
call fcn.1400df8b0
mov r13, rax
call fcn.1400df8b0
mov r14, rax
test r13, r13
je 0x1400d37e8
test rax, rax
je 0x1400d37e8
mov rdx, rbx
mov rcx, r14
call fcn.1400e1680
test r15b, 0x10
je 0x1400d3700
mov edx, 3
mov rcx, r12
call fcn.1400d45d0
mov edx, eax
lea eax, [rax + 2]
cmp eax, 1
jbe 0x1400d3740
xor r8d, r8d
mov rcx, r12
call fcn.1400d4790
mov rbx, rax
test rax, rax
je 0x1400d3740
nop dword [rax]
mov rcx, qword [rbx + 0xb8]
call fcn.1400e0cf0
test eax, eax
jne 0x1400d348b
mov rcx, qword [rbx + 0xc8]
mov rdx, r14
call fcn.1400e0f70
test eax, eax
je 0x1400d3496
mov edx, dword [rbx + 0x10]
mov rcx, r13
call fcn.1400e07a0
mov rbx, qword [rbx + 0x38]
test rbx, rbx
jne 0x1400d3468
mov rcx, qword [r12 + 0x1b8]
mov rdx, r13
call fcn.1400e0f70
test eax, eax
jne 0x1400d37d6
mov rcx, r13
call fcn.1400e0cf0
test eax, eax
jne 0x1400d3700
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x20], r14
mov r9, r13
mov edx, r15d
mov rcx, r12
mov r8, qword [rax]
call fcn.1400d0bf0
mov rcx, qword [r12 + 0x1c0]
mov r8, r14
mov rdx, rcx
call fcn.1400e1390
mov rcx, qword [r12 + 0x1b8]
mov r8, r13
mov rdx, rcx
call fcn.1400e1390
jmp 0x1400d367d
test r8b, 0x10
jne 0x1400d3790
mov rdx, qword [rcx + 0x1b8]
mov rcx, rbx
call fcn.1400e0e70
test eax, eax
je 0x1400d3790
call fcn.1400df8b0
mov r13, rax
call fcn.1400df8b0
mov r14, rax
test r13, r13
je 0x1400d37e8
test rax, rax
je 0x1400d37e8
mov rdx, rbx
mov rcx, r13
call fcn.1400e1680
test r15b, 1
je 0x1400d3640
mov edx, 0xd
mov rcx, r12
call fcn.1400d45d0
mov edx, eax
lea eax, [rax + 2]
cmp eax, 1
jbe 0x1400d3768
xor r8d, r8d
mov rcx, r12
call fcn.1400d4790
mov rbx, rax
test rax, rax
je 0x1400d3768
nop word [rax + rax]
mov rsi, qword [rbx + 0xb8]
mov rcx, rsi
call fcn.1400e0cf0
test eax, eax
jne 0x1400d35c2
mov rdx, r13
mov rcx, rsi
call fcn.1400e0f70
test eax, eax
je 0x1400d35cd
mov edx, dword [rbx + 0x10]
mov rcx, r14
call fcn.1400e07a0
mov rbx, qword [rbx + 0x38]
test rbx, rbx
jne 0x1400d35a0
mov rcx, qword [r12 + 0x1c0]
mov rdx, r14
call fcn.1400e0f70
test eax, eax
jne 0x1400d37d6
mov rcx, r14
call fcn.1400e0cf0
test eax, eax
jne 0x1400d3640
mov rax, qword [r12 + 0x18]
mov qword [rsp + 0x20], r14
mov r9, r13
mov edx, r15d
mov rcx, r12
mov r8, qword [rax]
call fcn.1400d0f00
mov rcx, qword [r12 + 0x1b8]
mov r8, r13
mov rdx, rcx
call fcn.1400e1390
mov rcx, qword [r12 + 0x1c0]
mov r8, r14
mov rdx, rcx
call fcn.1400e1390
jmp 0x1400d367d
mov rcx, r14
xor r14d, r14d
call fcn.1400df940
mov rax, qword [r12 + 0x18]
mov r9, r13
mov edx, r15d
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r8, qword [rax]
call fcn.1400d0f00
mov rcx, qword [r12 + 0x1b8]
mov r8, r13
mov rdx, rcx
call fcn.1400e1390
mov rcx, r13
call fcn.1400df940
mov rcx, r14
call fcn.1400df940
mov rcx, r12
call fcn.1400cdd60
mov rcx, r12
test eax, eax
js 0x1400d37be
call fcn.1400d8730
mov rcx, r12
call fcn.1400d9f40
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov r13, qword [rax]
mov rcx, r13
call fcn.1400cc6a0
mov rcx, r13
xor r13d, r13d
call fcn.1400cab90
mov rcx, r12
call fcn.1400dbca0
lea rcx, str.HWLOC_DEBUG_CHECK
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d36ec
mov rcx, r12
call fcn.1400d20f0
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
xor r13d, r13d
call fcn.1400df940
mov rax, qword [r12 + 0x18]
xor r9d, r9d
mov edx, r15d
mov qword [rsp + 0x20], r14
mov rcx, r12
mov r8, qword [rax]
call fcn.1400d0bf0
mov rcx, qword [r12 + 0x1c0]
mov r8, r14
mov rdx, rcx
call fcn.1400e1390
jmp 0x1400d367d
mov r8d, 0x110b
lea rdx, str.topology.c
lea rcx, [0x1402a2945]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400d3468
mov r8d, 0x112f
lea rdx, str.topology.c
lea rcx, [0x1402a2948]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400d35a0
call qword [sym.imp.msvcrt.dll__errno]
mov r13d, 0xffffffff
mov dword [rax], 0x16
jmp 0x1400d36ec
call qword [sym.imp.msvcrt.dll__errno]
mov r13d, 0xffffffff
mov dword [rax], 1
jmp 0x1400d36ec
call fcn.1400d1c70
mov rcx, r12
mov r13d, 0xffffffff
call fcn.1400d1320
jmp 0x1400d36ec
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
nop word [rax + rax]
mov rcx, r13
mov r13d, 0xffffffff
call fcn.1400df940
mov rcx, r14
call fcn.1400df940
jmp 0x1400d36ec