Function at 0x4ef2f0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor esi, esi
mov ebx, 1
jmp 0x4ef312
call rdi
mov eax, esi
lock cmpxchg dword [0x00a0a110], ebx
test eax, eax
jne 0x4ef310
mov eax, dword [0x00a0a118]
cmp eax, 0xffffffff
je 0x4ef6e0
lea edx, [rax + 1]
mov dword [0x00a0a118], edx
test eax, eax
je 0x4ef380
cmp dword [0x00a0a110], 1
jne 0x4ef360
mov dword [0x00a0a110], 0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, 0x145
lea rdx, str.components.c
lea rcx, str.hwloc_components_mutex__1
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4ef345
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
call sub.msvcrt.dll_getenv
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x4ef39b
call sub.msvcrt.dll_atoi
mov dword [0x00a0a114], eax
lea r8, [0x00721918]
mov eax, 1
nop dword [rax]
mov edx, eax
mov rcx, rax
add rax, 1
cmp qword [r8 + rax*8], 0
jne 0x4ef3b0
mov dword [0x00a0a100], edx
mov edx, 8
call sub.msvcrt.dll_calloc
mov qword [0x00a0a108], rax
test rax, rax
je 0x4ef84e
mov r13, qword [0x0072c420]
mov rbx, qword [0x0072c400]
mov dword [0x00a0a100], 0
lea r12, [0x00721920]
jmp 0x4ef440
cmp eax, 1
je 0x4ef690
mov r8d, 0x179
lea rdx, str.components.c
lea rcx, [0x007215cb]
call qword [sym.imp.msvcrt.dll__assert]
add r12, 8
test r13, r13
je 0x4ef600
mov rbx, r13
mov r13, qword [r12 + 8]
mov esi, dword [rbx + 0x1c]
test esi, esi
jne 0x4ef668
mov rax, qword [rbx + 8]
test rax, rax
je 0x4ef460
xor ecx, ecx
call rax
test eax, eax
js 0x4ef6a0
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x4ef483
mov eax, dword [0x00a0a100]
lea ecx, [rax + 1]
mov dword [0x00a0a100], ecx
mov rcx, qword [0x00a0a108]
mov qword [rcx + rax*8], rdx
mov eax, dword [rbx + 0x18]
test eax, eax
jne 0x4ef408
mov rbp, qword [rbx + 0x20]
mov ecx, 5
lea rdi, str.stop
mov r15, qword [rbp]
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x4ef814
mov edx, 0x2d
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x4ef796
mov edx, 0x3a
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x4ef796
mov rcx, r15
lea rdx, [0x007213ff]
call sub.msvcrt.dll_strcspn
mov rcx, r15
mov rbx, rax
call sub.msvcrt.dll_strlen
cmp rbx, rax
jne 0x4ef796
mov r9d, dword [rbp + 8]
test r9d, r9d
je 0x4ef7e8
cmp r9d, 1
je 0x4ef523
test r9d, 0xffffff01
jne 0x4ef7e8
mov eax, dword [0x00a0a114]
mov rbx, qword [0x00a0a120]
lea rdi, [0x00a0a120]
mov dword [rsp + 0x4c], eax
test rbx, rbx
jne 0x4ef581
jmp 0x4ef7ce
mov r14d, dword [rbx + 0x18]
mov ebx, dword [rbp + 0x18]
cmp r14d, ebx
jae 0x4ef760
mov r8d, dword [rsp + 0x4c]
test r8d, r8d
jne 0x4ef630
mov rax, qword [rdi]
mov rax, qword [rax + 0x20]
mov qword [rdi], rax
mov rbx, qword [rax + 0x20]
lea rdi, [rax + 0x20]
test rbx, rbx
je 0x4ef5a3
mov r15, qword [rbp]
mov rsi, qword [rbx]
mov rdx, r15
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4ef548
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
lea rdi, [rax + 0x20]
test rbx, rbx
jne 0x4ef57d
mov edx, dword [rsp + 0x4c]
test edx, edx
jne 0x4ef708
mov rax, qword [0x00a0a120]
test rax, rax
je 0x4ef7da
mov ecx, dword [rbp + 0x18]
lea rdx, [0x00a0a120]
jmp 0x4ef5dd
lea rdx, [rax + 0x20]
mov rax, qword [rax + 0x20]
test rax, rax
je 0x4ef5e2
cmp dword [rax + 0x18], ecx
jae 0x4ef5d0
mov qword [rbp + 0x20], rax
add r12, 8
mov qword [rdx], rbp
test r13, r13
jne 0x4ef438
nop word cs:[rax + rax]
cmp dword [0x00a0a110], 1
je 0x4ef345
mov r8d, 0x199
lea rdx, str.components.c
lea rcx, str.hwloc_components_mutex__1
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4ef345
mov ecx, 2
call qword [fcn.0052ef40]
mov dword [rsp + 0x20], ebx
mov r9d, r14d
mov r8, rsi
mov rcx, rax
lea rdx, str.Dropping_previously_registered_discovery_component___s__priority__u_lower_than_new_one__u_n
call sub.msvcrt.dll_fprintf
mov eax, dword [0x00a0a114]
mov dword [rsp + 0x4c], eax
jmp 0x4ef566
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, esi
lea rdx, str.Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4ef42b
mov rcx, qword [rbx + 0x20]
call fcn.004ffce0
jmp 0x4ef42b
mov r11d, dword [0x00a0a114]
test r11d, r11d
je 0x4ef42b
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, 0x30
mov edx, 1
lea rcx, str.Ignoring_static_component__failed_to_initialize_n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x4ef42b
mov r8d, 0x143
lea rdx, str.components.c
lea rcx, str._unsigned___1___hwloc_components_users
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [0x00a0a118]
jmp 0x4ef32f
mov r9d, dword [rbp + 8]
mov r15, qword [rbp]
mov dword [rsp + 0x4c], r9d
mov ebx, dword [rbp + 0x18]
mov ecx, 2
call qword [fcn.0052ef40]
mov r9d, dword [rsp + 0x4c]
mov r8, r15
lea rdx, str.Registered_discovery_component___s_phases_0x_x_with_priority__u___s_s__n
mov rcx, rax
lea rax, [0x007215b9]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, str.statically_build
mov qword [rsp + 0x28], rax
call sub.msvcrt.dll_fprintf
jmp 0x4ef5af
mov ecx, dword [rsp + 0x4c]
test ecx, ecx
je 0x4ef42b
mov ecx, 2
call qword [fcn.0052ef40]
mov dword [rsp + 0x20], r14d
mov r9d, ebx
mov r8, r15
mov rcx, rax
lea rdx, str.Ignoring_new_discovery_component___s__priority__u_lower_than_previously_registered_one__u_n
call sub.msvcrt.dll_fprintf
jmp 0x4ef42b
mov r9d, dword [0x00a0a114]
test r9d, r9d
je 0x4ef42b
mov ecx, 2
call qword [fcn.0052ef40]
mov r9d, 0x2d
mov r8, r15
lea rdx, str.Cannot_register_discovery_component_with_name___s_containing_reserved_characters___c__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4ef42b
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x4ef710
xor eax, eax
lea rdx, [0x00a0a120]
jmp 0x4ef5e2
mov dword [rsp + 0x4c], r9d
mov ecx, 2
call qword [fcn.0052ef40]
mov r9d, dword [rsp + 0x4c]
mov r8, r15
lea rdx, str.Cannot_register_discovery_component___s_with_invalid_phases_0x_x_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x4ef42b
mov r10d, dword [0x00a0a114]
test r10d, r10d
je 0x4ef42b
mov ecx, 2
call qword [fcn.0052ef40]
mov r8d, 0x3e
mov edx, 1
lea rcx, str.Cannot_register_discovery_component_with_reserved_name__stop_n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x4ef42b
mov r8d, 0x15c
lea rdx, str.components.c
lea rcx, str.hwloc_component_finalize_cbs
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4ef3e0