Function at 0x140005af0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140063828]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dword [rcx + 0x670], 0
mov rbx, rcx
je 0x140005b2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_recv
mov eax, 0xffffffff
jmp 0x140005fb8
mov qword [rsp + 0x98], rsi
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140005b58
mov dword [rbx + 0x7d0], 1
lea rcx, str.HWLOC_FORCE_FSROOT
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor esi, esi
lea r15, str.linux
mov r11, rax
test rax, rax
je 0x140005c26
cmp dword [rbx + 0x670], esi
je 0x140005b9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_recv
jmp 0x140005c26
mov r10, qword [0x1400683a0]
test r10, r10
je 0x140005c1a
cmp dword [r10], 1
jne 0x140005c11
mov rdx, qword [r10 + 8]
mov rcx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r15 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140005c11
cmp rcx, 6
jne 0x140005bc0
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rdi, rax
test rax, rax
je 0x140005c26
mov dword [rax + 0x10], 1
cmp qword [rbx + 0x7e8], rsi
je 0x140005c04
mov rcx, rbx
call fcn.14000cda0
mov rdx, rdi
mov rcx, rbx
call fcn.14000cba0
jmp 0x140005c26
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x140005ba7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
lea rcx, str.HWLOC_FORCE_XMLFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r14, [0x140055a04]
mov r11, rax
test rax, rax
je 0x140005ce6
cmp dword [rbx + 0x670], esi
je 0x140005c5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_recv
jmp 0x140005ce6
mov r10, qword [0x1400683a0]
test r10, r10
je 0x140005cda
nop dword [rax + rax]
mov rdx, qword [r10 + 8]
mov rcx, rsi
nop word [rax + rax]
movzx eax, byte [r14 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140005cd1
cmp rcx, 4
jne 0x140005c80
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rdi, rax
test rax, rax
je 0x140005ce6
mov dword [rax + 0x10], 1
cmp qword [rbx + 0x7e8], rsi
je 0x140005cc4
mov rcx, rbx
call fcn.14000cda0
mov rdx, rdi
mov rcx, rbx
call fcn.14000cba0
jmp 0x140005ce6
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x140005c70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
cmp qword [rbx + 0x7e8], rsi
jne 0x140005da6
lea rcx, str.HWLOC_FSROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r11, rax
test rax, rax
je 0x140005da6
cmp dword [rbx + 0x670], esi
je 0x140005d25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_recv
jmp 0x140005da6
mov r10, qword [0x1400683a0]
test r10, r10
je 0x140005d9a
cmp dword [r10], 1
jne 0x140005d91
mov rdx, qword [r10 + 8]
mov rcx, rsi
nop
movzx eax, byte [r15 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140005d91
cmp rcx, 6
jne 0x140005d40
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rdi, rax
test rax, rax
je 0x140005da6
mov dword [rax + 0x10], 1
cmp qword [rbx + 0x7e8], rsi
je 0x140005d84
mov rcx, rbx
call fcn.14000cda0
mov rdx, rdi
mov rcx, rbx
call fcn.14000cba0
jmp 0x140005da6
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x140005d31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
mov r15, qword [rsp + 0x70]
cmp qword [rbx + 0x7e8], rsi
jne 0x140005e76
lea rcx, str.HWLOC_XMLFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r11, rax
test rax, rax
je 0x140005e76
cmp dword [rbx + 0x670], esi
je 0x140005dea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_recv
jmp 0x140005e76
mov r10, qword [0x1400683a0]
test r10, r10
je 0x140005e6a
nop word [rax + rax]
mov rdx, qword [r10 + 8]
mov rcx, rsi
nop word [rax + rax]
movzx eax, byte [r14 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140005e61
cmp rcx, 4
jne 0x140005e10
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rdi, rax
test rax, rax
je 0x140005e76
mov dword [rax + 0x10], 1
cmp qword [rbx + 0x7e8], rsi
je 0x140005e54
mov rcx, rbx
call fcn.14000cda0
mov rdx, rdi
mov rcx, rbx
call fcn.14000cba0
jmp 0x140005e76
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x140005e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
mov rcx, rbx
call fcn.14000c680
mov rax, qword [rbx + 0x7e8]
mov r14, qword [rsp + 0x78]
mov rcx, rax
mov rdi, qword [rsp + 0xa0]
mov dword [rbx + 0x66c], 1
test rax, rax
je 0x140005ebe
cmp dword [rcx + 0x10], esi
jne 0x140005eb5
cmp dword [rcx + 0x28], 0xffffffff
je 0x140005eb5
mov dword [rbx + 0x66c], esi
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140005ea4
test byte [rbx + 0x608], 2
je 0x140005ed1
mov dword [rbx + 0x66c], 1
test rax, rax
je 0x140005ef1
cmp dword [rax + 0x10], 1
jne 0x140005ee8
cmp dword [rax + 0x28], 0xffffffff
je 0x140005ee8
mov dword [rbx + 0x66c], esi
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140005ed6
lea rcx, str.HWLOC_THISSYSTEM
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140005f12
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0x66c], eax
mov rcx, rbx
call fcn.140007250
nop word [rax + rax]
mov ecx, esi
call fcn.140006130
mov r9, rax
lea rcx, [rsp + 0x20]
mov edx, 0x40
lea r8, str.HWLOC__s_DISTANCES
call fcn.140001bb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140005f5d
mov r8, rax
mov edx, esi
mov rcx, rbx
call fcn.140009630
inc esi
cmp esi, 0xc
jl 0x140005f20
mov rcx, rbx
call fcn.140005150
mov rsi, qword [rsp + 0x98]
test eax, eax
jns 0x140005f9f
mov rcx, rbx
call fcn.140005930
mov rcx, rbx
call fcn.1400095a0
mov rcx, rbx
call fcn.140005640
mov rcx, rbx
call fcn.14000cda0
mov eax, 0xffffffff
jmp 0x140005fb8
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor eax, eax
mov dword [rbx + 0x670], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004c1b0
add rsp, 0x80
pop rbx
ret