Function at 0x1400d3810
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x48
mov r10d, dword [rcx + 0xc8]
mov r12, rcx
test r10d, r10d
jne 0x1400d42d0
call fcn.1400d6e00
mov rcx, r12
call fcn.1400d96d0
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d3858
mov dword [r12 + 0x2b8], 1
lea rcx, [0x1402a296f]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d3ff0
mov qword [rsp + 0x38], 0
lea rcx, str.HWLOC_ALLOW
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400d389f
lea rdx, [0x1402a29d2]
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400d389f
or dword [rsp + 0x3c], 2
mov rcx, r12
call fcn.1400dd590
mov rcx, r12
call fcn.1400dd9f0
mov rcx, r12
call fcn.1400ddb30
mov rcx, r12
call fcn.1400df440
mov dword [r12 + 0xcc], 0
call fcn.1400df910
mov qword [r12 + 0x1b8], rax
call fcn.1400df910
mov r13d, dword [r12 + 0x328]
mov qword [r12 + 0x1c0], rax
test r13b, 1
jne 0x1400d3c90
test r13b, 2
jne 0x1400d3ce8
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x1400d4298
call fcn.1400e0cf0
test eax, eax
jne 0x1400d4298
and r13d, 4
jne 0x1400d3f10
mov rax, qword [r12 + 0x280]
test rax, rax
je 0x1400d3970
mov r9d, dword [r12 + 0xc4]
test r9d, r9d
je 0x1400d3970
test byte [rsp + 0x3c], 2
jne 0x1400d3970
test byte [r12 + 0x20], 4
je 0x1400d4200
mov rcx, r12
call rax
or dword [rsp + 0x3c], 2
nop word [rax + rax]
mov rax, qword [r12 + 0x18]
lea rbx, [r12 + 0x338]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xd0]
call fcn.1400e0cf0
test eax, eax
jne 0x1400d3d10
mov rcx, qword [r12 + 0x348]
call fcn.140124a98
mov qword [r12 + 0x338], 0
mov qword [r12 + 0x340], 0
mov qword [rbx + 0x10], 0
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
mov r8, qword [rax + 0xc0]
mov rdx, rcx
call fcn.1400e1200
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xc8]
mov r8, qword [rax + 0xd0]
mov rdx, rcx
call fcn.1400e1200
mov rax, qword [r12 + 0x18]
mov rcx, qword [r12 + 0x1b8]
mov rax, qword [rax]
mov rdx, rcx
mov rax, qword [rax]
mov r8, qword [rax + 0xb8]
call fcn.1400e1200
mov rax, qword [r12 + 0x18]
mov rcx, qword [r12 + 0x1c0]
mov rax, qword [rax]
mov rdx, rcx
mov rax, qword [rax]
mov r8, qword [rax + 0xc8]
call fcn.1400e1200
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.1400ca910
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.1400caa50
test byte [r12 + 0x20], 1
je 0x1400d3f30
mov rax, qword [r12 + 0x18]
mov rcx, qword [rax]
mov r13, qword [rcx]
mov eax, dword [r13]
cmp eax, 0x13
ja 0x1400d4318
mov edx, eax
mov edx, dword [r12 + rdx*4 + 0x74]
cmp edx, 1
je 0x1400d3dd0
cmp edx, 3
je 0x1400d3db0
mov r8d, dword [r12 + 0xcc]
test r8d, r8d
je 0x1400d3af0
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.1400ca400
mov rcx, r12
call fcn.1400cd800
test eax, eax
js 0x1400d42a4
mov rcx, r12
call fcn.1400ca5e0
test eax, eax
js 0x1400d42a4
mov dword [r12 + 0xcc], 0
mov rcx, r12
call fcn.1400e2ae0
mov eax, dword [r12 + 0x328]
test al, 8
jne 0x1400d3f50
test al, 0x10
jne 0x1400d3f7a
test al, 0x20
jne 0x1400d3fa4
test al, 0x40
jne 0x1400d3fce
mov rcx, r12
call fcn.1400e2c10
lea rcx, str.HWLOC_DEBUG_SORT_CHILDREN
call sub.msvcrt.dll_getenv
test rax, rax
mov rax, qword [r12 + 0x18]
mov rbx, qword [rax]
je 0x1400d3b49
mov rcx, qword [rbx]
call fcn.1400cb0b0
mov rdx, qword [rbx]
mov rcx, r12
call fcn.1400cd520
mov rax, qword [r12 + 0x18]
mov rcx, r12
mov rdx, qword [rax]
call fcn.1400cd6c0
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov r13, qword [rax]
test r13, r13
je 0x1400d43a0
mov rcx, qword [r13 + 0xb8]
call fcn.1400e0cf0
test eax, eax
jne 0x1400d4334
mov rcx, qword [r13 + 0xc8]
call fcn.1400e0cf0
mov r13d, eax
test eax, eax
jne 0x1400d42e7
mov rcx, r12
call fcn.1400cdd60
test eax, eax
js 0x1400d42a4
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.1400cab90
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.1400cc6a0
mov rcx, r12
call fcn.1400c9e30
mov rax, qword [r12 + 0x318]
test rax, rax
je 0x1400d3c02
mov rax, qword [rax]
lea rdx, [0x1402a21ff]
mov rcx, qword [rax]
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400d4120
lea rcx, str.HWLOC_DEBUG_CHECK
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d3c1b
mov rcx, r12
call fcn.1400d20f0
mov rcx, r12
call fcn.1400dc4f0
mov rcx, r12
call fcn.1400d8730
mov rcx, r12
call fcn.1400d8230
mov rcx, r12
call fcn.1400d9f40
mov rcx, r12
call fcn.1400d9ef0
mov rcx, r12
call fcn.1400dac70
mov eax, dword [r12 + 0x20]
mov dword [r12 + 0xc8], 1
test al, 0x10
jne 0x1400d3ed0
test al, 0x20
jne 0x1400d3e90
test byte [r12 + 0x328], 0x80
jne 0x1400d3e60
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
mov r13, qword [r12 + 0x318]
test r13, r13
je 0x1400d41e0
cmp dword [r13 + 0x20], 1
je 0x1400d3cc2
mov r8d, 0xd53
lea rdx, str.topology.c
lea rcx, str.global_backend__phases__HWLOC_DISC_PHASE_GLOBAL
call qword [sym.imp.msvcrt.dll__assert]
mov rcx, r13
mov dword [rsp + 0x34], 1
lea rdx, [rsp + 0x34]
call qword [r13 + 0x40]
mov r13d, dword [r12 + 0x328]
test r13b, 2
je 0x1400d3901
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 2
call fcn.1400cb4f0
mov r13d, dword [r12 + 0x328]
jmp 0x1400d3901
xor r8d, r8d
mov edx, 0xd
mov rcx, r12
call fcn.1400cf230
mov r13, rax
mov rax, qword [r12 + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
call fcn.1400dfa30
mov qword [r13 + 0xb8], rax
call fcn.1400df8b0
xor edx, edx
mov qword [r13 + 0xc8], rax
mov rcx, rax
call fcn.1400e07a0
mov rax, qword [r13 + 0x28]
mov r8, r13
mov rcx, r12
movdqu xmm0, xmmword [r12 + 0x338]
lea r9, str.core:defaultnumanode
movups xmmword [rax], xmm0
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
xor edx, edx
mov qword [r12 + 0x338], 0
mov qword [r12 + 0x340], 0
mov qword [rbx + 0x10], 0
call fcn.1400cf9c0
jmp 0x1400d39c4
cmp eax, 0xf
je 0x1400d4238
cmp eax, 0x10
jne 0x1400d3aa7
mov rax, qword [r13 + 0x28]
cmp dword [rax], 4
jne 0x1400d3aa7
nop
mov r11, qword [r13 + 0x78]
test r11, r11
je 0x1400d3aa7
cmp qword [r11 + 0x58], 0
jne 0x1400d3aa7
mov qword [r11 + 0x48], 0
mov qword [rcx], r11
mov rdx, qword [r13 + 0x90]
test rdx, rdx
je 0x1400d3e0e
lea rcx, [r11 + 0x90]
mov r8, r11
call fcn.1400c9d90
mov rdx, qword [r13 + 0xa0]
test rdx, rdx
je 0x1400d3e29
lea rcx, [r11 + 0xa0]
mov r8, r11
call fcn.1400c9d90
mov rdx, qword [r13 + 0xb0]
test rdx, rdx
je 0x1400d3e44
lea rcx, [r11 + 0xb0]
mov r8, r11
call fcn.1400c9d90
mov rcx, r13
call fcn.1400cc7c0
mov rcx, r13
call fcn.140124a98
jmp 0x1400d3aa7
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], pe_nt_image_headers64
call fcn.1400cb4f0
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
call fcn.1400df8b0
mov r14, rax
test rax, rax
je 0x1400d3c6c
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, r12
call fcn.1400debc0
test eax, eax
je 0x1400d41c8
mov rcx, r14
call fcn.1400df940
jmp 0x1400d3c6c
call fcn.1400df8b0
mov r14, rax
test rax, rax
je 0x1400d3efe
mov r8d, 4
mov rdx, rax
mov rcx, r12
call fcn.1400de7c0
test eax, eax
je 0x1400d41b0
mov rcx, r14
call fcn.1400df940
mov eax, dword [r12 + 0x20]
jmp 0x1400d3c64
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 4
call fcn.1400cb4f0
jmp 0x1400d3933
mov rax, qword [r12 + 0x18]
mov rcx, r12
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.1400ca890
jmp 0x1400d3a76
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 8
call fcn.1400cb4f0
mov eax, dword [r12 + 0x328]
test al, 0x10
je 0x1400d3b10
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 0x10
call fcn.1400cb4f0
mov eax, dword [r12 + 0x328]
test al, 0x20
je 0x1400d3b18
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 0x20
call fcn.1400cb4f0
mov eax, dword [r12 + 0x328]
test al, 0x40
je 0x1400d3b20
mov rcx, qword [r12 + 0x318]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], 0x40
call fcn.1400cb4f0
jmp 0x1400d3b20
cmp qword [r12 + 0x318], 0
jne 0x1400d386d
lea rcx, str.HWLOC_FSROOT
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d4039
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 1
mov rcx, r12
mov qword [rsp + 0x20], 0
lea r8, [0x1402a298d]
call fcn.1400ddc20
cmp qword [r12 + 0x318], 0
jne 0x1400d386d
lea rcx, [0x1402a2993]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d4082
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 1
mov rcx, r12
mov qword [rsp + 0x20], 0
lea r8, [0x1402a29a4]
call fcn.1400ddc20
cmp qword [r12 + 0x318], 0
jne 0x1400d386d
lea rcx, [0x1402a29a8]
call sub.msvcrt.dll_getenv
mov r9, rax
test rax, rax
je 0x1400d40cb
lea r8, [0x1402a21f5]
mov edx, 1
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.1400ddc20
cmp qword [r12 + 0x318], 0
jne 0x1400d386d
lea rcx, [0x1402a29b8]
call sub.msvcrt.dll_getenv
mov r9, rax
test rax, rax
je 0x1400d386d
lea r8, [0x1402a21ff]
mov edx, 1
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.1400ddc20
jmp 0x1400d386d
lea rcx, str.HWLOC_DONT_ADD_VERSION_INFO
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x1400d3c02
mov rax, qword [r12 + 0x18]
lea r9, [0x1402a10e6]
lea r8, [0x1402a2b37]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.1400ce740
mov rcx, r12
call fcn.1400e3db0
mov r14, rax
test rax, rax
je 0x1400d3c02
mov rax, qword [r12 + 0x18]
mov r9, r14
lea r8, [0x1402a2b44]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.1400ce740
mov rcx, r14
call fcn.140124a98
jmp 0x1400d3c02
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.1400d3390
jmp 0x1400d3ef6
mov r8d, 8
mov rdx, r14
mov rcx, r12
call fcn.1400d3390
jmp 0x1400d3ebf
mov r8d, 0xd52
lea rdx, str.topology.c
lea rcx, str.global_backend
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400d3ca1
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400d3970
call sub.msvcrt.dll_atoi
test eax, eax
je 0x1400d3970
mov rax, qword [r12 + 0x280]
jmp 0x1400d3960
mov rax, qword [r13 + 0x28]
movzx edx, word [rax + 6]
mov r8d, edx
mov eax, edx
shr r8d, 8
cmp edx, 0x12ff
ja 0x1400d4280
mov r9, 0xfffffffffffbf7b0
bt r9, r8
jae 0x1400d3aa7
and eax, 0xfffffffd
cmp ax, 0xc04
je 0x1400d3aa7
cmp edx, 0x502
je 0x1400d3aa7
jmp 0x1400d3dd0
and eax, 0xfffffffd
cmp ax, 0xc04
je 0x1400d3aa7
jmp 0x1400d3dd0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rcx, r12
mov r13d, 0xffffffff
call fcn.1400e2c10
mov rcx, r12
call fcn.1400d1c70
mov rcx, r12
call fcn.1400d1320
mov rcx, r12
call fcn.1400ddb70
jmp 0x1400d3c7b
call qword [sym.imp.msvcrt.dll__errno]
mov r13d, 0xffffffff
mov dword [rax], 0x10
jmp 0x1400d3c7b
mov eax, dword [0x1405883c4]
test eax, eax
je 0x1400d436e
mov eax, dword [0x14027e610]
cmp eax, 1
jg 0x1400d42a4
mov ecx, 2
call qword [fcn.140124330]
lea rdx, str.hwloc:_Topology_does_not_contain_any_NUMA_node__aborting__n
mov rcx, rax
call fcn.1400ca760
jmp 0x1400d42a4
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rax, qword [r12 + 0x18]
mov rcx, qword [rax]
mov r13, qword [rcx]
jmp 0x1400d3dd0
mov edx, dword [0x1405883c4]
test edx, edx
je 0x1400d43d6
cmp dword [0x14027e610], 1
jg 0x1400d42a4
mov ecx, 2
call qword [fcn.140124330]
lea rdx, str.hwloc:_Topology_does_not_contain_any_PU__aborting__n
mov rcx, rax
call fcn.1400ca760
jmp 0x1400d42a4
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400d4404
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [0x14027e610], eax
mov dword [0x1405883c4], 1
jmp 0x1400d42f7
mov ecx, dword [0x1405883c4]
test ecx, ecx
je 0x1400d440c
cmp dword [0x14027e610], 1
jg 0x1400d42a4
mov ecx, 2
call qword [fcn.140124330]
lea rdx, str.hwloc:_Topology_became_empty__aborting__n
mov rcx, rax
call fcn.1400ca760
jmp 0x1400d42a4
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400d43f5
call sub.msvcrt.dll_atoi
mov dword [0x14027e610], eax
mov dword [0x1405883c4], 1
jmp 0x1400d4342
mov eax, dword [0x14027e610]
jmp 0x1400d4391
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400d442b
call sub.msvcrt.dll_atoi
mov dword [0x14027e610], eax
mov dword [0x1405883c4], 1
jmp 0x1400d43aa