Function at 0x180012900
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 0x180012943
mov rcx, rdi
call fcn.180010950
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 0x180012919
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
cmp dword [rcx + 4], ebx
ja 0x180012961
mov ebp, ebx
jmp 0x180012978
mov rax, qword [rcx + 0x10]
cmp dword [rax], ebx
ja 0x18001296e
mov rbp, rbx
jmp 0x180012978
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, qword [rdx + 0xb8]
test rcx, rcx
je 0x180012993
mov r8, qword [rbp + 0xb8]
mov rdx, rcx
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x1800129ae
mov r8, qword [rbp + 0xc0]
mov rdx, rcx
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x1800129c9
mov r8, qword [rbp + 0xc8]
mov rdx, rcx
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_and
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1800129e4
mov r8, qword [rbp + 0xd0]
mov rdx, rcx
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_and
mov rax, qword [rdi + 0xb8]
mov rbp, qword [rsp + 0x38]
test rax, rax
je 0x180012a1e
cmp dword [rax + 0x10], ebx
jne 0x180012a93
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x180012a1e
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x180012a93
inc ecx
cmp ecx, edx
jb 0x180012a10
mov rax, qword [rdi + 0xc0]
test rax, rax
je 0x180012a4e
cmp dword [rax + 0x10], ebx
jne 0x180012a93
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x180012a4e
mov r8, qword [rax + 8]
nop dword [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x180012a93
inc ecx
cmp ecx, edx
jb 0x180012a40
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x180012a7e
cmp dword [rax + 0x10], ebx
jne 0x180012a93
mov ecx, dword [rax]
test ecx, ecx
je 0x180012a7e
mov rdx, qword [rax + 8]
nop dword [rax]
mov eax, ebx
cmp dword [rdx + rax*4], 0
jne 0x180012a93
inc ebx
cmp ebx, ecx
jb 0x180012a70
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180012afd
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_iszero
test eax, eax
jne 0x180012afd
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sym.xmrstak_cuda_backend.dll_hwloc__insert_object_by_cpuset
test rax, rax
je 0x180012b1a
cmp rax, rdi
jne 0x180012b1c
mov rcx, rdi
call sym.xmrstak_cuda_backend.dll_hwloc_obj_add_children_sets
xor edx, edx
mov rcx, rsi
call sym.xmrstak_cuda_backend.dll_hwloc_topology_reconnect
test eax, eax
js 0x180012b1a
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1800141a0
mov rcx, rsi
call fcn.180014300
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.180010950
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