Function at 0x1400e2570
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x138
mov r14, rdx
mov r12, rcx
call fcn.1400df8b0
movzx r10d, byte [r14 + 2]
movzx r9d, word [r14]
mov r13, rax
mov eax, dword [r12 + 0x350]
test eax, eax
je 0x1400e26c8
mov edx, dword [r12 + 0x354]
test edx, edx
je 0x1400e2600
mov rax, qword [r12 + 0x358]
sub edx, 1
lea rdx, [rdx + rdx*2]
lea rdx, [rax + rdx*8 + 0x18]
jmp 0x1400e25d9
add rax, 0x18
cmp rax, rdx
je 0x1400e2600
cmp dword [rax], r9d
jne 0x1400e25d0
cmp r10d, dword [rax + 4]
jb 0x1400e25d0
cmp r10d, dword [rax + 8]
ja 0x1400e25d0
mov rdx, qword [rax + 0x10]
mov rcx, r13
call fcn.1400dfac0
jmp 0x1400e2665
mov dword [rsp + 0x20], r10d
lea r15, [rsp + 0x30]
mov edx, 0x100
lea r8, str.HWLOC_PCI__04x__02x_LOCALCPUS
mov rcx, r15
call fcn.1400e2540
mov rcx, r15
call sub.msvcrt.dll_getenv
mov r15, rax
test rax, rax
je case.0x1400e276b.2
mov eax, dword [r12 + 0x350]
or eax, dword [0x140588400]
je 0x1400e2788
cmp byte [r15], 0
jne 0x1400e26a0
mov rax, qword [r12 + 0x320]
test rax, rax
je 0x1400e26b0
mov r8, r13
mov rdx, r14
mov rcx, rax
call qword [rax + 0x48]
test eax, eax
js 0x1400e26b0
mov rdx, r13
mov rcx, r12
call fcn.1400d08b0
mov r14, rax
test rax, rax
je 0x1400e2770
mov rcx, r13
call fcn.1400df940
mov rax, r14
add rsp, 0x138
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r15
mov rcx, r13
call fcn.1400e0070
jmp 0x1400e2665
mov rcx, r12
call fcn.1400d2070
mov rcx, r13
mov rdx, rax
call fcn.1400dfac0
jmp 0x1400e2665
mov dword [rsp + 0x20], r10d
lea r15, [rsp + 0x30]
mov edx, 0x100
lea r8, str.HWLOC_PCI__04x__02x_LOCALCPUS
mov rcx, r15
call fcn.1400e2540
mov rcx, r15
call sub.msvcrt.dll_getenv
mov r15, rax
test rax, rax
jne 0x1400e262e
mov rax, qword [r12 + 0x360]
test rax, rax
je case.0x1400e276b.2
cmp rax, 0xffffffffffffffff
je 0x1400e27ae
movabs rdx, 0x4000000000000000
and rdx, rax
test rdx, rdx
jne 0x1400e2854
test al, 1
je case.0x1400e276b.2
cmp word [r14], 0
jne case.0x1400e276b.2
movzx eax, byte [r14 + 2]
lea edx, [rax + 0x30]
cmp dl, 1
jbe 0x1400e29cf
add eax, 0x40
cmp al, 0x1e
ja case.0x1400e276b.2
lea rdx, [0x1402a3fe8]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1400d4790
mov r14, rax
jmp 0x1400e267c
call fcn.1400ce690
test eax, eax
je 0x1400e29ad
mov dword [0x140588400], 1
cmp byte [r15], 0
je case.0x1400e276b.2
jmp 0x1400e26a0
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [r12 + 0x360], 0
call fcn.1400d4790
mov r15, qword [rax + 0xd8]
mov eax, dword [rax + 0xe0]
test eax, eax
je 0x1400e282d
sub eax, 1
lea rbx, [0x1402a3faa]
shl rax, 4
lea rsi, [r15 + rax + 0x10]
jmp 0x1400e27f9
add r15, 0x10
cmp rsi, r15
je 0x1400e282d
mov rcx, qword [r15]
mov rdx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400e27f0
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x1400e282d
lea rdx, str.HPE_CRAY_EX235A
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400e282d
mov qword [r12 + 0x360], 1
lea rcx, str.HWLOC_PCI_LOCALITY_QUIRK_FAKE
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400e2873
call sub.msvcrt.dll_atoi
test eax, eax
je 0x1400e2873
bts qword [r12 + 0x360], 0x3e
mov rcx, r12
call fcn.1400d2070
mov rcx, rax
call fcn.1400e17a0
mov rcx, r13
mov edx, eax
call fcn.1400e07a0
jmp 0x1400e2665
mov rax, qword [r12 + 0x360]
jmp 0x1400e2715
mov rcx, r13
mov r8d, 0x2f
mov edx, 0x28
call fcn.1400e0800
mov r8d, 0x6f
mov edx, 0x68
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0xf
mov edx, 8
call fcn.1400e0800
mov r8d, 0x4f
mov edx, 0x48
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0x1f
mov edx, 0x18
call fcn.1400e0800
mov r8d, 0x5f
mov edx, 0x58
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0x3f
mov edx, 0x38
call fcn.1400e0800
mov r8d, 0x7f
mov edx, 0x78
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0x17
mov edx, 0x10
call fcn.1400e0800
mov r8d, 0x57
mov edx, 0x50
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0x27
mov edx, 0x20
call fcn.1400e0800
mov r8d, 0x67
mov edx, 0x60
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov rcx, r13
mov r8d, 0x37
mov edx, 0x30
call fcn.1400e0800
mov r8d, 0x77
mov edx, 0x70
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665
mov ecx, 2
call qword [fcn.140124330]
mov r8, r15
lea rdx, str.hwloc_pci:_Environment_variable__s_is_deprecated__please_use_HWLOC_PCI_LOCALITY_instead._n
mov rcx, rax
call fcn.1400e22a0
jmp 0x1400e2795
xor edx, edx
mov rcx, r13
mov r8d, 7
call fcn.1400e0800
mov r8d, 0x47
mov edx, 0x40
mov rcx, r13
call fcn.1400e0800
jmp 0x1400e2665