Function at 0x1800107b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1800aad48]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
mov r15, rdx
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180010829
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x18001081c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x180010829
mov dword [rax], 0
mov dword [rbx + 0x10], 0
xor r14d, r14d
xor ebp, ebp
cmp dword [rsi + 0x2fc], ebp
je 0x18001089b
mov r9d, dword [rsi + 0x300]
xor ecx, ecx
test r9d, r9d
je 0x18001088d
mov r10, qword [rsi + 0x308]
movzx r11d, word [r15]
nop
lea rax, [rcx + rcx*2]
cmp r11d, dword [r10 + rax*8]
jne 0x18001086d
movzx r8d, byte [r15 + 2]
cmp r8d, dword [r10 + rax*8 + 4]
jb 0x18001086d
cmp r8d, dword [r10 + rax*8 + 8]
jbe 0x180010876
inc ecx
cmp ecx, r9d
jb 0x180010850
jmp 0x18001088d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdx, qword [r10 + rdx*8 + 0x10]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_copy
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x1800109ae
movzx eax, byte [r15 + 2]
lea r8, str.HWLOC_PCI__04x__02x_LOCALCPUS
movzx r9d, word [r15]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.180005410
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
je 0x18001093b
cmp dword [rsi + 0x2fc], 0
jne 0x18001090a
cmp dword [0x1800b02ec], 0
jne 0x18001090a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.Environment_variable__s_is_deprecated__please_use_HWLOC_PCI_LOCALITY_instead._n
mov rcx, rax
call fcn.1800053c0
mov dword [0x1800b02ec], 1
cmp byte [rdi], 0
je 0x180010931
lea rdx, [rsp + 0x30]
lea rcx, str.Overriding_localcpus_using__s_in_the_environment_n
call fcn.1800054e0
mov rdx, rdi
mov rcx, rbx
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_sscanf
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x1800109ae
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x180010957
mov r8, rbx
mov rdx, r15
mov rcx, rax
call qword [rax + 0x40]
test eax, eax
jns 0x1800109ae
cmp dword [rsi + 4], 0
ja 0x180010961
xor eax, eax
jmp 0x180010978
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x18001096e
xor eax, eax
jmp 0x180010978
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rdi, qword [rax + 0xb8]
mov rcx, rbx
mov r14d, dword [rdi]
mov edx, r14d
call fcn.180002010
test eax, eax
jne 0x1800109ae
mov rcx, qword [rbx + 8]
mov dword [rbx], r14d
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x10], eax
mov rdx, rbx
mov rcx, rsi
call fcn.180007ed0
mov rdi, rax
test rax, rax
je 0x1800109d5
test ebp, ebp
jne 0x1800109f6
mov r8, rax
mov rdx, r15
call fcn.180010570
mov rdi, rax
jmp 0x1800109f6
cmp dword [rsi + 4], 0
ja 0x1800109df
xor edi, edi
jmp 0x1800109f6
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x1800109ec
xor edi, edi
jmp 0x1800109f6
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rdi, qword [rdx]
test rbx, rbx
je 0x180010a0e
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rdi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18005aca0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret