Function at 0x14002426c
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 [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp dword [rcx + 0xc8], ebp
je 0x1400242ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_recv
or eax, 0xffffffff
jmp 0x1400245d6
test byte [rcx + 0x20], 0x80
jne 0x1400242b9
call fcn.140065cf4
mov ebx, 0x100
test dword [rdi + 0x20], ebx
jne 0x1400242cb
mov rcx, rdi
call fcn.140067090
mov ecx, 4
mov dword [rdi + 0x338], ebp
lea r14d, [rcx - 3]
mov eax, ecx
cmp dword [rdi + rax*4 + 0x74], r14d
jne 0x1400242ed
add ecx, r14d
cmp ecx, 0xb
jbe 0x1400242da
jmp 0x1400242f4
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 0x14002430d
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 0x140024413
cmp qword [rdi + 0x318], rbp
jne 0x140024413
lea rcx, str.HWLOC_FSROOT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140024361
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.14006469c
cmp qword [rdi + 0x318], rbp
jne 0x140024413
lea rcx, str.HWLOC_CPUID_PATH
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002439f
mov qword [rsp + 0x28], rbp
lea r8, [0x140413484]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.14006469c
cmp qword [rdi + 0x318], rbp
jne 0x140024413
lea rcx, str.HWLOC_SYNTHETIC
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400243d9
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.14006469c
cmp qword [rdi + 0x318], rbp
jne 0x140024413
lea rcx, str.HWLOC_XMLFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140024413
mov qword [rsp + 0x28], rbp
lea r8, [0x14041230c]
mov r9, rax
mov qword [rsp + 0x20], rbp
mov edx, r14d
mov rcx, rdi
call fcn.14006469c
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 0x140024442
lea rdx, [0x140412330]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140024442
or dword [rsp + 0x40], 2
mov rcx, rdi
call fcn.140064784
mov rcx, rdi
call fcn.140064acc
mov rcx, rdi
call fcn.140064b5c
mov rcx, rdi
call fcn.140063d44
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140028224
test eax, eax
jns 0x140024498
mov rcx, rdi
call fcn.140065650
mov rcx, rdi
call fcn.1400252a0
mov rcx, rdi
call fcn.14002516c
mov rcx, rdi
call fcn.140064ba8
jmp 0x1400242a6
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 0x1400244b6
mov rcx, rdi
call fcn.140068744
test byte [rdi + 0x20], 0x80
jne 0x1400244cc
mov rcx, rdi
call fcn.140065ee8
mov rcx, rdi
call fcn.140065e68
test dword [rdi + 0x20], ebx
jne 0x140024526
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.140067248
mov rcx, rdi
call fcn.14006727c
test rbx, rbx
jne 0x14002451c
mov rax, qword [rdi + 0x318]
lea rdx, [0x14041230c]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140024526
mov edx, esi
mov rcx, rdi
call fcn.1400672cc
test byte [rdi + 0x20], 0x10
mov dword [rdi + 0xc8], r14d
je 0x14002456b
call fcn.140061a0c
mov rbx, rax
test rax, rax
je 0x14002456b
mov r8d, 4
mov rdx, rax
mov rcx, rdi
call fcn.140063ab8
test eax, eax
jne 0x140024563
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.1400246d8
mov rcx, rbx
call fcn.140061a8c
test byte [rdi + 0x20], 0x20
je 0x1400245af
call fcn.140061a0c
mov rbx, rax
test rax, rax
je 0x1400245af
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rdi
call fcn.140063bfc
test eax, eax
jne 0x1400245a7
lea r8d, [rax + 8]
mov rdx, rbx
mov rcx, rdi
call fcn.1400246d8
mov rcx, rbx
call fcn.140061a8c
test byte [rdi + 0x328], 0x80
je 0x1400245d4
lea r8, str.TWEAK
mov dword [rsp + 0x38], 0x80
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400281a8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400106c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret