Function at 0x140012d40
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 0x140012d83
mov rcx, rdi
call fcn.140010d90
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], reloc.WS2_32.dll_shutdown
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rcx + 0x9c], 1
je 0x140012d59
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
cmp dword [rcx + 4], ebx
ja 0x140012da1
mov ebp, ebx
jmp 0x140012db8
mov rax, qword [rcx + 0x10]
cmp dword [rax], ebx
ja 0x140012dae
mov rbp, rbx
jmp 0x140012db8
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, qword [rdx + 0xb8]
test rcx, rcx
je 0x140012dd3
mov r8, qword [rbp + 0xb8]
mov rdx, rcx
call sym.xmr_stak_rx.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x140012dee
mov r8, qword [rbp + 0xc0]
mov rdx, rcx
call sym.xmr_stak_rx.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x140012e09
mov r8, qword [rbp + 0xc8]
mov rdx, rcx
call sym.xmr_stak_rx.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x140012e24
mov r8, qword [rbp + 0xd0]
mov rdx, rcx
call sym.xmr_stak_rx.exe_hwloc_bitmap_and
mov rax, qword [rdi + 0xb8]
mov rbp, qword [rsp + 0x38]
test rax, rax
je 0x140012e5e
cmp dword [rax + 0x10], ebx
jne 0x140012ed3
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x140012e5e
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x140012ed3
inc ecx
cmp ecx, edx
jb 0x140012e50
mov rax, qword [rdi + 0xc0]
test rax, rax
je 0x140012e8e
cmp dword [rax + 0x10], ebx
jne 0x140012ed3
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x140012e8e
mov r8, qword [rax + 8]
nop dword [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x140012ed3
inc ecx
cmp ecx, edx
jb 0x140012e80
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x140012ebe
cmp dword [rax + 0x10], ebx
jne 0x140012ed3
mov ecx, dword [rax]
test ecx, ecx
je 0x140012ebe
mov rdx, qword [rax + 8]
nop dword [rax]
mov eax, ebx
cmp dword [rdx + rax*4], 0
jne 0x140012ed3
inc ebx
cmp ebx, ecx
jb 0x140012eb0
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x140012f3d
call sym.xmr_stak_rx.exe_hwloc_bitmap_iszero
test eax, eax
jne 0x140012f3d
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sym.xmr_stak_rx.exe_hwloc__insert_object_by_cpuset
test rax, rax
je 0x140012f5a
cmp rax, rdi
jne 0x140012f5c
mov rcx, rdi
call sym.xmr_stak_rx.exe_hwloc_obj_add_children_sets
xor edx, edx
mov rcx, rsi
call sym.xmr_stak_rx.exe_hwloc_topology_reconnect
test eax, eax
js 0x140012f5a
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400145e0
mov rcx, rsi
call fcn.140014740
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.140010d90
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], reloc.WS2_32.dll_shutdown
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret