Function at 0x1400d338c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
and dword [rcx + 0xcc], 0
mov r14, rdx
mov rsi, rcx
call fcn.1400dc0b8
mov qword [rsi + 0x1b8], rax
call fcn.1400dc0b8
mov qword [rsi + 0x1c0], rax
mov ebp, 1
mov eax, dword [rsi + 0x300]
test bpl, al
je 0x1400d3404
mov rax, qword [rsi + 0x2f0]
lea rcx, str.GLOBAL_phase_discovery_with_component__s..._n
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400d327c
mov rdx, r14
mov dword [r14], ebp
mov rcx, rax
call qword [rax + 0x40]
mov eax, dword [rsi + 0x300]
mov r13d, 2
test r13b, al
je 0x1400d3424
lea r8, [0x140106044]
mov dword [r14], r13d
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x1400d3942
call fcn.1400dcb5c
test eax, eax
jne 0x1400d3942
test byte [rsi + 0x300], 4
je 0x1400d346d
lea r8, str.MEMORY
mov dword [r14], 4
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
cmp qword [rsi + 0x280], 0
je 0x1400d34b8
cmp dword [rsi + 0xc4], 0
je 0x1400d34b8
test byte [r14 + 8], r13b
jne 0x1400d34b8
test byte [rsi + 0x20], 4
jne 0x1400d34ab
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400d34b8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x1400d34b8
mov rcx, rsi
call qword [rsi + 0x280]
or dword [r14 + 8], r13d
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0xd0]
call fcn.1400dcb5c
test eax, eax
je 0x1400d354b
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0xd]
call fcn.1400d29e4
mov rcx, qword [rsi + 0x18]
mov rdi, rax
mov rdx, qword [rcx]
mov rcx, qword [rdx]
mov rcx, qword [rcx + 0xb8]
call fcn.1400dc6f0
mov qword [rdi + 0xb8], rax
call fcn.1400dc05c
xor edx, edx
mov qword [rdi + 0xc8], rax
mov rcx, rax
call fcn.1400dcedc
mov rcx, qword [rdi + 0x28]
lea rbx, [rsi + 0x310]
mov rdx, rbx
mov r8d, 0x18
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rdx, rdi
mov rcx, rsi
call fcn.1400d40fc
jmp 0x1400d356a
mov rcx, qword [rsi + 0x320]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edx, edx
lea rcx, [rsi + 0x310]
lea r8d, [rdx + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xb8]
mov r8, qword [r8 + 0xc0]
mov rdx, rcx
call fcn.1400dc0dc
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov rdx, rcx
call fcn.1400dc0dc
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x1b8]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xb8]
call fcn.1400dc0dc
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x1c0]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xc8]
call fcn.1400dc0dc
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400d5200
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400d1878
test byte [rsi + 0x20], bpl
jne 0x1400d3620
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400d54e8
mov rax, qword [rsi + 0x18]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, qword [rax]
mov rdi, qword [rcx]
mov rcx, rsi
mov ebx, dword [rdi]
mov edx, ebx
call fcn.1400d4bc8
cmp dword [rsp + 0x40], ebp
je 0x1400d36a5
cmp dword [rsp + 0x40], 3
jne 0x1400d36a1
cmp ebx, 0xf
jne 0x1400d368f
mov rax, qword [rdi + 0x28]
movzx edx, word [rax + 6]
mov ecx, edx
shr ecx, 8
lea eax, [rcx - 1]
cmp eax, r13d
jbe 0x1400d371e
cmp ecx, 0xb
je 0x1400d371e
lea eax, [rdx - 0xc04]
test eax, 0xfffffffd
je 0x1400d371e
cmp ecx, 0x12
je 0x1400d371e
jmp 0x1400d36a5
cmp ebx, 0x10
jne 0x1400d36a1
mov rax, qword [rdi + 0x28]
xor ebp, ebp
cmp dword [rax], 4
setne bpl
test ebp, ebp
jne 0x1400d371e
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x78]
test r8, r8
je 0x1400d371e
cmp qword [r8 + 0x58], 0
jne 0x1400d371e
and qword [r8 + 0x48], 0
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov qword [rcx], r8
mov rdx, qword [rbx + 0x90]
test rdx, rdx
je 0x1400d36e6
lea rcx, [r8 + 0x90]
call fcn.1400d51a8
mov rdx, qword [rbx + 0xa0]
test rdx, rdx
je 0x1400d36fe
lea rcx, [r8 + 0xa0]
call fcn.1400d51a8
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
je 0x1400d3716
lea rcx, [r8 + 0xb0]
call fcn.1400d51a8
mov rcx, rbx
call fcn.1400d4098
xor edx, edx
mov rcx, rsi
call fcn.1400d4e64
test eax, eax
js 0x1400d394e
mov eax, dword [rsi + 0x300]
test al, 8
je 0x1400d3759
lea r8, [0x14010ced4]
mov dword [r14], 8
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
mov eax, dword [rsi + 0x300]
test al, 0x10
je 0x1400d377c
lea r8, [0x14010ced8]
mov dword [r14], shutdown
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
mov eax, dword [rsi + 0x300]
test al, 0x20
je 0x1400d379f
lea r8, str.MISC
mov dword [r14], 0x20
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
mov eax, dword [rsi + 0x300]
test al, 0x40
je 0x1400d37bc
lea r8, str.ANNOTATE
mov dword [r14], 0x40
mov rdx, r14
mov rcx, rsi
call fcn.1400d396c
lea rcx, str.HWLOC_DEBUG_SORT_CHILDREN
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400d37dd
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400d32e0
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400d3a24
mov rdx, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.1400d53cc
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rdx]
test rcx, rcx
jne 0x1400d382a
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Topology_became_empty__aborting__n
mov rcx, rax
call fcn.140001c80
jmp 0x1400d394e
mov rcx, qword [rcx + 0xb8]
call fcn.1400dcb5c
test eax, eax
je 0x1400d384c
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Topology_does_not_contain_any_PU__aborting__n
jmp 0x1400d381d
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0xc8]
call fcn.1400dcb5c
test eax, eax
je 0x1400d3878
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Topology_does_not_contain_any_NUMA_node__aborting__n
jmp 0x1400d381d
xor edx, edx
mov rcx, rsi
call fcn.1400d4e64
test eax, eax
js 0x1400d394e
mov rcx, rsi
call fcn.1400d3a70
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400d5310
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400d4610
mov rcx, rsi
call fcn.1400d4964
mov rcx, qword [rsi + 0x2f0]
test rcx, rcx
je 0x1400d393e
mov rcx, qword [rcx]
lea rdx, [0x14010cfa4]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400d393e
lea rcx, str.HWLOC_DONT_ADD_VERSION_INFO
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400d393e
mov rax, qword [rsi + 0x18]
lea r8, str.2.1.0
lea rdx, str.hwlocVersion
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400d448c
mov rcx, rsi
call fcn.1400074a0
mov rbx, rax
test rax, rax
je 0x1400d393e
mov rcx, qword [rsi + 0x18]
lea rdx, str.ProcessName
mov r8, rax
mov rcx, qword [rcx]
mov rcx, qword [rcx]
call fcn.1400d448c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400d3951
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret