Function at 0x1800126e0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x670], 0
mov rdi, rcx
je 0x180012707
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x10
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rsi
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
mov qword [rsp + 0x40], r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18001272d
mov dword [rdi + 0x7d0], 1
lea rcx, str.HWLOC_FORCE_FSROOT
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r14, str.linux
mov r11, rax
test rax, rax
je 0x1800127f7
cmp dword [rdi + 0x670], 0
je 0x18001276c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x10
jmp 0x1800127f7
mov r10, qword [0x180087cc8]
test r10, r10
je 0x1800127eb
cmp dword [r10], 1
jne 0x1800127e2
mov rdx, qword [r10 + 8]
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r14 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1800127e2
cmp rcx, 6
jne 0x180012790
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rbx, rax
test rax, rax
je 0x1800127f7
mov dword [rax + 0x10], 1
cmp qword [rdi + 0x7e8], 0
je 0x1800127d5
mov rcx, rdi
call fcn.180019840
mov rdx, rbx
mov rcx, rdi
call fcn.1800195b0
jmp 0x1800127f7
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180012778
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 rsi, [0x180074044]
mov r11, rax
test rax, rax
je 0x1800128b6
cmp dword [rdi + 0x670], 0
je 0x180012831
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x10
jmp 0x1800128b6
mov r10, qword [0x180087cc8]
test r10, r10
je 0x1800128aa
nop dword [rax]
mov rdx, qword [r10 + 8]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1800128a1
cmp rcx, 4
jne 0x180012850
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rbx, rax
test rax, rax
je 0x1800128b6
mov dword [rax + 0x10], 1
cmp qword [rdi + 0x7e8], 0
je 0x180012894
mov rcx, rdi
call fcn.180019840
mov rdx, rbx
mov rcx, rdi
call fcn.1800195b0
jmp 0x1800128b6
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180012840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
cmp qword [rdi + 0x7e8], 0
jne 0x180012977
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 0x180012977
cmp dword [rdi + 0x670], 0
je 0x1800128f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x10
jmp 0x180012977
mov r10, qword [0x180087cc8]
test r10, r10
je 0x18001296b
cmp dword [r10], 1
jne 0x180012962
mov rdx, qword [r10 + 8]
xor ecx, ecx
nop
movzx eax, byte [r14 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180012962
cmp rcx, 6
jne 0x180012910
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rbx, rax
test rax, rax
je 0x180012977
mov dword [rax + 0x10], 1
cmp qword [rdi + 0x7e8], 0
je 0x180012955
mov rcx, rdi
call fcn.180019840
mov rdx, rbx
mov rcx, rdi
call fcn.1800195b0
jmp 0x180012977
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180012903
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
cmp qword [rdi + 0x7e8], 0
mov r14, qword [rsp + 0x40]
jne 0x180012a46
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 0x180012a46
cmp dword [rdi + 0x670], 0
je 0x1800129bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x10
jmp 0x180012a46
mov r10, qword [0x180087cc8]
test r10, r10
je 0x180012a3a
nop dword [rax]
mov rdx, qword [r10 + 8]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180012a31
cmp rcx, 4
jne 0x1800129e0
xor r9d, r9d
xor r8d, r8d
mov rdx, r11
mov rcx, r10
call qword [r10 + 0x18]
mov rbx, rax
test rax, rax
je 0x180012a46
mov dword [rax + 0x10], 1
cmp qword [rdi + 0x7e8], 0
je 0x180012a24
mov rcx, rdi
call fcn.180019840
mov rdx, rbx
mov rcx, rdi
call fcn.1800195b0
jmp 0x180012a46
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x1800129d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x28
mov rcx, rdi
call fcn.180018ff0
mov rcx, rdi
call fcn.1800197a0
mov rcx, rdi
call fcn.180014050
mov rcx, rdi
call fcn.1800165e0
mov rcx, rdi
call fcn.180011e20
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
test eax, eax
jns 0x180012aa5
mov rcx, rdi
call fcn.1800125c0
mov rcx, rdi
call fcn.180015f20
mov rcx, rdi
call fcn.1800122d0
mov rcx, rdi
call fcn.180019840
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180012abf
mov rcx, rdi
call fcn.180012bf0
mov dword [rdi + 0x670], 1
xor eax, eax
add rsp, 0x20
pop rdi
ret