Function at 0x1400f361c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp dword [rcx + 0xc8], ebp
je 0x1400f365e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], select
or eax, 0xffffffff
jmp 0x1400f3986
test byte [rcx + 0x20], 0x80
jne 0x1400f3669
call fcn.1401016f8
mov ebx, 0x100
test dword [rdi + 0x20], ebx
jne 0x1400f367b
mov rcx, rdi
call fcn.14010308c
mov ecx, 4
mov dword [rdi + 0x338], ebp
lea r14d, [rcx - 3]
mov eax, ecx
cmp dword [rdi + rax*4 + 0x74], r14d
jne 0x1400f369d
add ecx, r14d
cmp ecx, 0xb
jbe 0x1400f368a
jmp 0x1400f36a4
mov dword [rdi + 0x338], r14d
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f36bd
mov dword [rdi + 0x2b8], r14d
lea rcx, str.HWLOC_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x1400f37c3
cmp qword [rdi + 0x318], rbp
jne 0x1400f37c3
lea rcx, str.HWLOC_FSROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f3711
mov qword [rsp + 0x28], rbp
lea r8, str.linux
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.1400ffad0
cmp qword [rdi + 0x318], rbp
jne 0x1400f37c3
lea rcx, str.HWLOC_CPUID_PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f374f
mov qword [rsp + 0x28], rbp
lea r8, [0x14013bcec]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.1400ffad0
cmp qword [rdi + 0x318], rbp
jne 0x1400f37c3
lea rcx, str.HWLOC_SYNTHETIC
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f3789
mov qword [rsp + 0x28], rbp
lea r8, str.synthetic
mov r9, rax
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.1400ffad0
cmp qword [rdi + 0x318], rbp
jne 0x1400f37c3
lea rcx, str.HWLOC_XMLFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f37c3
mov qword [rsp + 0x28], rbp
lea r8, [0x14013bc44]
mov r9, rax
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.1400ffad0
lea rcx, str.HWLOC_ALLOW
mov qword [rsp + 0x3c], rbp
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f37f2
lea rdx, [0x14013bd1c]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400f37f2
or dword [rsp + 0x40], 2
mov rcx, rdi
call fcn.1400fff18
mov rcx, rdi
call fcn.1400ff610
mov rcx, rdi
call fcn.1400ff5e4
mov rcx, rdi
call fcn.1400fee20
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400f1dfc
test eax, eax
jns 0x1400f3848
mov rcx, rdi
call fcn.1401003a4
mov rcx, rdi
call fcn.1400f3434
mov rcx, rdi
call fcn.1400f3d84
mov rcx, rdi
call fcn.1400ff558
jmp 0x1400f3656
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test dword [rdi + 0x20], 0x200
jne 0x1400f3866
mov rcx, rdi
call fcn.140103c28
test byte [rdi + 0x20], 0x80
jne 0x1400f387c
mov rcx, rdi
call fcn.1401016e0
mov rcx, rdi
call fcn.1401019b4
test dword [rdi + 0x20], ebx
jne 0x1400f38d6
lea rcx, str.HWLOC_MEMTIERS_REFRESH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, ebp
mov rcx, rdi
test rax, rax
mov rbx, rax
setne sil
call fcn.140103058
mov rcx, rdi
call fcn.140103198
test rbx, rbx
jne 0x1400f38cc
mov rax, qword [rdi + 0x318]
lea rdx, [0x14013bc44]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400f38d6
mov edx, esi
mov rcx, rdi
call fcn.140102f58
test byte [rdi + 0x20], 0x10
mov dword [rdi + 0xc8], r14d
je 0x1400f391b
call fcn.1400fca04
mov rbx, rax
test rax, rax
je 0x1400f391b
mov r8d, 4
mov rdx, rax
mov rcx, rdi
call fcn.1400fec14
test eax, eax
jne 0x1400f3913
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.1400f3a08
mov rcx, rbx
call fcn.1400fd1fc
test byte [rdi + 0x20], 0x20
je 0x1400f395f
call fcn.1400fca04
mov rbx, rax
test rax, rax
je 0x1400f395f
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rdi
call fcn.1400feccc
test eax, eax
jne 0x1400f3957
lea r8d, [rax + 8]
mov rdx, rbx
mov rcx, rdi
call fcn.1400f3a08
mov rcx, rbx
call fcn.1400fd1fc
test byte [rdi + 0x328], 0x80
je 0x1400f3984
lea r8, str.TWEAK
mov dword [rsp + 0x38], 0x80
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400f2414
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011ae70
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret