Function at 0x180007bf0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xb8], 0
mov rdi, rdx
mov rsi, rcx
jne 0x180007c33
mov rcx, rdi
call fcn.180005c40
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rcx + 0x9c], 1
je 0x180007c09
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
cmp dword [rcx + 4], ebx
ja 0x180007c51
mov ebp, ebx
jmp 0x180007c68
mov rax, qword [rcx + 0x10]
cmp dword [rax], ebx
ja 0x180007c5e
mov rbp, rbx
jmp 0x180007c68
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, qword [rdx + 0xb8]
test rcx, rcx
je 0x180007c83
mov r8, qword [rbp + 0xb8]
mov rdx, rcx
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x180007c9e
mov r8, qword [rbp + 0xc0]
mov rdx, rcx
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x180007cb9
mov r8, qword [rbp + 0xc8]
mov rdx, rcx
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180007cd4
mov r8, qword [rbp + 0xd0]
mov rdx, rcx
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_and
mov rax, qword [rdi + 0xb8]
mov rbp, qword [rsp + 0x38]
test rax, rax
je 0x180007d0e
cmp dword [rax + 0x10], ebx
jne 0x180007d83
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x180007d0e
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x180007d83
inc ecx
cmp ecx, edx
jb 0x180007d00
mov rax, qword [rdi + 0xc0]
test rax, rax
je 0x180007d3e
cmp dword [rax + 0x10], ebx
jne 0x180007d83
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x180007d3e
mov r8, qword [rax + 8]
nop dword [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x180007d83
inc ecx
cmp ecx, edx
jb 0x180007d30
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x180007d6e
cmp dword [rax + 0x10], ebx
jne 0x180007d83
mov ecx, dword [rax]
test ecx, ecx
je 0x180007d6e
mov rdx, qword [rax + 8]
nop dword [rax]
mov eax, ebx
cmp dword [rdx + rax*4], 0
jne 0x180007d83
inc ebx
cmp ebx, ecx
jb 0x180007d60
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180007ded
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_iszero
test eax, eax
jne 0x180007ded
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sym.xmrstakrx_opencl_backend.dll_hwloc__insert_object_by_cpuset
test rax, rax
je 0x180007e0a
cmp rax, rdi
jne 0x180007e0c
mov rcx, rdi
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_add_children_sets
xor edx, edx
mov rcx, rsi
call sym.xmrstakrx_opencl_backend.dll_hwloc_topology_reconnect
test eax, eax
js 0x180007e0a
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.180009490
mov rcx, rsi
call fcn.1800095f0
lea rcx, str.HWLOC_DEBUG_CHECK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.180005c40
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret