Function at 0x140068744
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 0x2e0]
xor edi, edi
mov rsi, rcx
test eax, eax
je 0x1400688cc
cmp eax, 1
jne 0x14006877f
mov rax, qword [rcx + 0x2e8]
mov dword [rax + 8], edi
jmp 0x1400688cc
lea rcx, str.HWLOC_CPUKINDS_RANKING
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140068933
lea rdx, [0x140418fd8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140068933
lea rdx, str.none
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400687ca
lea ebp, [rax + 9]
jmp 0x14006885c
lea rdx, str.coretypefrequency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400687e2
lea ebp, [rax + 3]
jmp 0x14006885c
lea rdx, str.coretypefrequency_strict
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400687fa
lea ebp, [rax + 4]
jmp 0x14006885c
lea rdx, str.coretype
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140068812
lea ebp, [rax + 5]
jmp 0x14006885c
lea rdx, str.frequency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14006882a
lea ebp, [rax + 6]
jmp 0x14006885c
lea rdx, str.frequency_max
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140068842
lea ebp, [rax + 7]
jmp 0x14006885c
lea rdx, str.frequency_base
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400688e3
lea ebp, [rax + 8]
cmp ebp, 9
je 0x1400689a0
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.140025738
mov ecx, dword [rsi + 0x2e0]
mov edx, ntohs
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400689a0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140068f40
mov edx, ebp
lea r8, [rsp + 0x20]
mov rcx, rsi
call fcn.1400690e4
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
jne 0x1400689a0
mov rcx, rsi
call fcn.140069344
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, str.forced_efficiency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140068982
lea rdx, str.no_forced_efficiency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140068971
call fcn.140024c0c
mov ecx, 2
cmp eax, ecx
jge 0x140068933
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.hwloc:_Failed_to_recognize_HWLOC_CPUKINDS_RANKING_value__s_n
mov rcx, rax
call fcn.140010930
mov rcx, rsi
call fcn.140068f04
test eax, eax
je 0x1400688c4
mov ecx, dword [rsi + 0x2e0]
mov edx, ntohs
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400689a0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140068f40
mov edx, 3
jmp 0x1400688a2
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.140025738
jmp 0x14006893f
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.140025738
mov rcx, rsi
call fcn.140068f04
test eax, eax
jmp 0x1400688be
cmp dword [rsi + 0x2e0], edi
jbe 0x1400688cc
mov eax, edi
inc edi
lea rcx, [rax + rax*4]
mov rax, qword [rsi + 0x2e8]
or dword [rax + rcx*8 + 8], 0xffffffff
cmp edi, dword [rsi + 0x2e0]
jb 0x1400689ac
jmp 0x1400688cc