Function at 0x1400cd800
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, dword [rcx + 4]
mov r14, rcx
cmp eax, 1
jbe 0x1400cd83a
mov ebx, 1
mov rax, qword [r14 + 0x18]
mov edx, ebx
add ebx, 1
mov rcx, qword [rax + rdx*8]
call fcn.140124a98
mov eax, dword [r14 + 4]
cmp eax, ebx
ja 0x1400cd820
lea r8d, [rax - 1]
mov rax, qword [r14 + 0x18]
xor edx, edx
shl r8, 3
lea rcx, [rax + 8]
call sub.msvcrt.dll_memset
mov eax, dword [r14 + 4]
xor edx, edx
lea r8d, [rax - 1]
mov rax, qword [r14 + 0x10]
shl r8, 2
lea rcx, [rax + 4]
call sub.msvcrt.dll_memset
mov rax, qword [r14 + 0x18]
mov qword [r14 + 0x24], 0xffffffffffffffff
mov qword [r14 + 0x2c], 0xffffffffffffffff
mov qword [r14 + 0x34], 0xffffffffffffffff
mov qword [r14 + 0x3c], 0xffffffffffffffff
mov qword [r14 + 0x44], 0xffffffffffffffff
mov qword [r14 + 0x4c], 0xffffffffffffffff
mov dword [r14 + 0x54], 0xffffffff
mov rdx, qword [rax]
mov dword [r14 + 4], 1
mov rax, qword [rdx]
mov dword [r14 + 0x70], 0xffffffff
mov ecx, dword [rax]
mov dword [rax + 0x30], 0
mov dword [r14 + rcx*4 + 0x24], 0
mov qword [rax + 0x34], 0
mov qword [rax + 0x4c], 0
mov qword [rax + 0x3c], 0
mov qword [rax + 0x44], 0
mov qword [rax + 0x60], 0
mov qword [rax + 0x58], 0
mov rdi, qword [rdx]
mov ebx, dword [rdi + 0x68]
mov rsi, rbx
shl rbx, 3
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x1400cdcab
mov rdx, qword [rdi + 0x70]
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
test esi, esi
je 0x1400cdc48
nop dword [rax + rax]
mov rdx, r12
xor eax, eax
nop dword [rax]
mov rcx, qword [rdx]
cmp dword [rcx], 3
jne 0x1400cd95b
add eax, 1
add rdx, 8
cmp esi, eax
ja 0x1400cd948
mov rbp, qword [r12]
mov rbx, rbp
cmp esi, eax
je 0x1400cd96a
mov rbx, qword [r12 + rax*8]
mov r13, rbp
xor edi, edi
jmp 0x1400cd984
add rdi, 1
cmp esi, edi
jbe 0x1400cd9db
mov r13, qword [r12 + rdi*8]
mov rdx, r13
mov rcx, rbx
call fcn.1400ccab0
test eax, eax
je 0x1400cd978
mov r15, qword [r13 + 0x78]
test r15, r15
je 0x1400cd978
mov rdx, rbx
mov rcx, r15
call fcn.1400ccab0
test eax, eax
je 0x1400cd9d0
mov rcx, qword [r15 + 0x78]
call fcn.1400cc9d0
test eax, eax
jne 0x1400cd9d0
mov r15, qword [r15 + 0x58]
test r15, r15
je 0x1400cd978
mov rdx, rbx
mov rcx, r15
call fcn.1400ccab0
test eax, eax
jne 0x1400cd9ab
add rdi, 1
mov rbx, r13
cmp esi, edi
ja 0x1400cd980
lea ecx, [rsi + 1]
shl rcx, 3
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400cdd3a
mov rdx, rbp
xor eax, eax
xor ecx, ecx
jmp 0x1400cda04
mov rdx, qword [r12 + rax*8]
mov edx, dword [rdx + 0x68]
lea r8d, [rcx + rdx]
add ecx, 1
test edx, edx
cmovne rcx, r8
add rax, 1
cmp esi, eax
ja 0x1400cda00
shl rcx, 3
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400cdd12
xor edi, edi
xor r13d, r13d
xor r15d, r15d
jmp 0x1400cda6f
mov rax, qword [rsp + 0x28]
mov r8d, dword [rbp + 0x68]
mov r9d, r15d
lea r11d, [r15 + 1]
mov qword [rax + r9*8], rbp
test r8d, r8d
jne 0x1400cdb80
add rdi, 1
add r13d, r8d
mov r15d, r11d
cmp esi, edi
jbe 0x1400cda96
mov rbp, qword [r12 + rdi*8]
mov rdx, rbp
mov rcx, rbx
call fcn.1400ccab0
test eax, eax
je 0x1400cda40
mov rdx, qword [rsp + 0x30]
mov eax, r13d
add rdi, 1
add r13d, 1
mov qword [rdx + rax*8], rbp
cmp esi, edi
ja 0x1400cda6b
test r13d, r13d
je 0x1400cdc30
mov rax, qword [rsp + 0x28]
mov r8d, dword [r14 + 4]
mov rax, qword [rax]
test r15d, r15d
je 0x1400cdaf9
mov dword [rax + 0x30], r8d
xor edx, edx
mov dword [rax + 0x34], 0
mov rax, qword [rsp + 0x28]
jmp 0x1400cdae9
mov rcx, qword [rax + 8]
mov r11, qword [rax]
add rax, 8
mov qword [rcx + 0x40], r11
mov r11, qword [rax]
mov dword [rcx + 0x30], r8d
mov dword [rcx + 0x34], edx
mov rcx, qword [rax - 8]
mov qword [rcx + 0x38], r11
add edx, 1
cmp r15d, edx
jne 0x1400cdac8
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rsi, qword [rsp + 0x28]
mov edx, 0xfffffffe
mov qword [rax + 0x40], 0
lea eax, [r15 - 1]
mov rcx, qword [r14 + 0x18]
mov rax, qword [rsi + rax*8]
mov qword [rax + 0x38], 0
mov eax, dword [rbx]
cmp dword [r14 + rax*4 + 0x24], 0xffffffff
cmove edx, r8d
mov dword [r14 + rax*4 + 0x24], edx
mov eax, r15d
mov qword [rsi + rax*8], 0
cmp dword [r14 + 8], r8d
je 0x1400cdbb0
mov rax, qword [r14 + 0x10]
mov rsi, qword [rsp + 0x28]
mov dword [rax + r8*4], r15d
mov edx, dword [r14 + 4]
mov rax, rdx
mov qword [rcx + rdx*8], rsi
mov rcx, r12
add eax, 1
mov dword [r14 + 4], eax
call fcn.140124a98
test r13d, r13d
je 0x1400cdc4d
mov r12, qword [rsp + 0x30]
mov esi, r13d
jmp 0x1400cd940
mov rdx, qword [rsp + 0x30]
mov eax, r13d
shl r8, 3
mov dword [rsp + 0x3c], r11d
lea rcx, [rdx + rax*8]
mov rdx, qword [rbp + 0x70]
call sub.msvcrt.dll_memcpy
mov rax, qword [r12 + rdi*8]
mov r11d, dword [rsp + 0x3c]
mov r8d, dword [rax + 0x68]
jmp 0x1400cda5d
lea edx, [r8 + r8]
shl rdx, 3
call sub.msvcrt.dll_realloc
mov rcx, qword [r14 + 0x10]
mov rbx, rax
mov eax, dword [r14 + 8]
lea edx, [rax + rax]
shl rdx, 2
call sub.msvcrt.dll_realloc
mov rsi, rax
test rbx, rbx
je 0x1400cdc6a
test rax, rax
je 0x1400cdc6a
mov r8d, dword [r14 + 8]
mov qword [r14 + 0x18], rbx
xor edx, edx
mov qword [r14 + 0x10], rax
shl r8, 3
lea rcx, [rbx + r8]
call sub.msvcrt.dll_memset
mov r8d, dword [r14 + 8]
mov rcx, qword [r14 + 0x10]
xor edx, edx
shl r8, 2
add rcx, r8
call sub.msvcrt.dll_memset
mov r8d, dword [r14 + 4]
mov rcx, qword [r14 + 0x18]
shl dword [r14 + 8], 1
jmp 0x1400cdb41
mov rcx, qword [rsp + 0x30]
call fcn.140124a98
mov qword [rsp + 0x30], 0
jmp 0x1400cda9f
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0x30]
call fcn.140124a98
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1405883c4]
test eax, eax
je 0x1400cdce4
cmp dword [0x14027e610], 1
jle 0x1400cdcbe
test rbx, rbx
je 0x1400cdc86
mov qword [r14 + 0x18], rbx
test rsi, rsi
je 0x1400cdc8f
mov qword [r14 + 0x10], rsi
mov rcx, r12
call fcn.140124a98
mov rcx, qword [rsp + 0x28]
call fcn.140124a98
mov rcx, qword [rsp + 0x30]
call fcn.140124a98
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400cdc59
mov eax, dword [r14 + 8]
mov ecx, 2
lea edi, [rax + rax]
call qword [fcn.140124330]
mov r8d, edi
lea rdx, str.hwloc:_failed_to_realloc_level_arrays_to__u_n
mov rcx, rax
call fcn.1400ca760
jmp 0x1400cdc7d
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400cdd03
call sub.msvcrt.dll_atoi
mov dword [0x14027e610], eax
mov dword [0x1405883c4], 1
jmp 0x1400cdc74
mov rcx, r12
call fcn.140124a98
mov rcx, qword [rsp + 0x28]
call fcn.140124a98
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400cdc59
mov rcx, r12
call fcn.140124a98
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400cdc59