Function at 0x140103c28
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 0x140103db0
cmp eax, 1
jne 0x140103c63
mov rax, qword [rcx + 0x2e8]
mov dword [rax + 8], edi
jmp 0x140103db0
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 0x140103e17
lea rdx, str.default
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140103e17
lea rdx, str.none
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103cae
lea ebp, [rax + 9]
jmp 0x140103d40
lea rdx, str.coretypefrequency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103cc6
lea ebp, [rax + 3]
jmp 0x140103d40
lea rdx, str.coretypefrequency_strict
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103cde
lea ebp, [rax + 4]
jmp 0x140103d40
lea rdx, str.coretype
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103cf6
lea ebp, [rax + 5]
jmp 0x140103d40
lea rdx, str.frequency
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103d0e
lea ebp, [rax + 6]
jmp 0x140103d40
lea rdx, str.frequency_max
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103d26
lea ebp, [rax + 7]
jmp 0x140103d40
lea rdx, str.frequency_base
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140103dc7
lea ebp, [rax + 8]
cmp ebp, 9
je 0x140103e84
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.1400f1cec
mov ecx, dword [rsi + 0x2e0]
mov edx, listen
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140103e84
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140103728
mov edx, ebp
lea r8, [rsp + 0x20]
mov rcx, rsi
call fcn.140103908
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 0x140103e84
mov rcx, rsi
call fcn.1401036d4
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 0x140103e66
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 0x140103e55
call fcn.1400f2bf8
mov ecx, 2
cmp eax, ecx
jge 0x140103e17
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.14000f480
mov rcx, rsi
call fcn.1401038cc
test eax, eax
je 0x140103da8
mov ecx, dword [rsi + 0x2e0]
mov edx, listen
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140103e84
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140103728
mov edx, 3
jmp 0x140103d86
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.1400f1cec
jmp 0x140103e23
mov rdx, rbx
lea rcx, str.Using_custom_ranking_strategy_from_HWLOC_CPUKINDS_RANKING_s_n
call fcn.1400f1cec
mov rcx, rsi
call fcn.1401038cc
test eax, eax
jmp 0x140103da2
cmp dword [rsi + 0x2e0], edi
jbe 0x140103db0
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 0x140103e90
jmp 0x140103db0