Function at 0x1400d40c0
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 0x1400d40fa
mov ebx, 1
mov rax, qword [r14 + 0x18]
mov edx, ebx
add ebx, 1
mov rcx, qword [rax + rdx*8]
call fcn.14011a240
mov eax, dword [r14 + 4]
cmp eax, ebx
ja 0x1400d40e0
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 0x1400d456b
mov rdx, qword [rdi + 0x70]
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
test esi, esi
je 0x1400d4508
nop dword [rax + rax]
mov rdx, r12
xor eax, eax
nop dword [rax]
mov rcx, qword [rdx]
cmp dword [rcx], 3
jne 0x1400d421b
add eax, 1
add rdx, 8
cmp esi, eax
ja 0x1400d4208
mov rbp, qword [r12]
mov rbx, rbp
cmp esi, eax
je 0x1400d422a
mov rbx, qword [r12 + rax*8]
mov r13, rbp
xor edi, edi
jmp 0x1400d4244
add rdi, 1
cmp esi, edi
jbe 0x1400d429b
mov r13, qword [r12 + rdi*8]
mov rdx, r13
mov rcx, rbx
call fcn.1400d3370
test eax, eax
je 0x1400d4238
mov r15, qword [r13 + 0x78]
test r15, r15
je 0x1400d4238
mov rdx, rbx
mov rcx, r15
call fcn.1400d3370
test eax, eax
je 0x1400d4290
mov rcx, qword [r15 + 0x78]
call fcn.1400d3290
test eax, eax
jne 0x1400d4290
mov r15, qword [r15 + 0x58]
test r15, r15
je 0x1400d4238
mov rdx, rbx
mov rcx, r15
call fcn.1400d3370
test eax, eax
jne 0x1400d426b
add rdi, 1
mov rbx, r13
cmp esi, edi
ja 0x1400d4240
lea ecx, [rsi + 1]
shl rcx, 3
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400d45fa
mov rdx, rbp
xor eax, eax
xor ecx, ecx
jmp 0x1400d42c4
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 0x1400d42c0
shl rcx, 3
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400d45d2
xor edi, edi
xor r13d, r13d
xor r15d, r15d
jmp 0x1400d432f
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 0x1400d4440
add rdi, 1
add r13d, r8d
mov r15d, r11d
cmp esi, edi
jbe 0x1400d4356
mov rbp, qword [r12 + rdi*8]
mov rdx, rbp
mov rcx, rbx
call fcn.1400d3370
test eax, eax
je 0x1400d4300
mov rdx, qword [rsp + 0x30]
mov eax, r13d
add rdi, 1
add r13d, 1
mov qword [rdx + rax*8], rbp
cmp esi, edi
ja 0x1400d432b
test r13d, r13d
je 0x1400d44f0
mov rax, qword [rsp + 0x28]
mov r8d, dword [r14 + 4]
mov rax, qword [rax]
test r15d, r15d
je 0x1400d43b9
mov dword [rax + 0x30], r8d
xor edx, edx
mov dword [rax + 0x34], 0
mov rax, qword [rsp + 0x28]
jmp 0x1400d43a9
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 0x1400d4388
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 0x1400d4470
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.14011a240
test r13d, r13d
je 0x1400d450d
mov r12, qword [rsp + 0x30]
mov esi, r13d
jmp 0x1400d4200
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 0x1400d431d
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 0x1400d452a
test rax, rax
je 0x1400d452a
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 0x1400d4401
mov rcx, qword [rsp + 0x30]
call fcn.14011a240
mov qword [rsp + 0x30], 0
jmp 0x1400d435f
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0x30]
call fcn.14011a240
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 [0x1405848c4]
test eax, eax
je 0x1400d45a4
cmp dword [0x14026b490], 1
jle 0x1400d457e
test rbx, rbx
je 0x1400d4546
mov qword [r14 + 0x18], rbx
test rsi, rsi
je 0x1400d454f
mov qword [r14 + 0x10], rsi
mov rcx, r12
call fcn.14011a240
mov rcx, qword [rsp + 0x28]
call fcn.14011a240
mov rcx, qword [rsp + 0x30]
call fcn.14011a240
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400d4519
mov eax, dword [r14 + 8]
mov ecx, 2
lea edi, [rax + rax]
call qword [fcn.140119ad0]
mov r8d, edi
lea rdx, str.hwloc:_failed_to_realloc_level_arrays_to__u_n
mov rcx, rax
call fcn.1400d1020
jmp 0x1400d453d
lea rcx, str.HWLOC_HIDE_ERRORS
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x1400d45c3
call sub.msvcrt.dll_atoi
mov dword [0x14026b490], eax
mov dword [0x1405848c4], 1
jmp 0x1400d4534
mov rcx, r12
call fcn.14011a240
mov rcx, qword [rsp + 0x28]
call fcn.14011a240
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400d4519
mov rcx, r12
call fcn.14011a240
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xc
mov eax, 0xffffffff
jmp 0x1400d4519