Function at 0x18001e960
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 [0x18009d5d8]
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 0x18001e9d9
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 0x18001e9cc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x18001e9d9
mov dword [rax], 0
mov dword [rbx + 0x10], 0
xor r14d, r14d
xor ebp, ebp
cmp dword [rsi + 0x2fc], ebp
je 0x18001ea4b
mov r9d, dword [rsi + 0x300]
xor ecx, ecx
test r9d, r9d
je 0x18001ea3d
mov r10, qword [rsi + 0x308]
movzx r11d, word [r15]
nop
lea rax, [rcx + rcx*2]
cmp r11d, dword [r10 + rax*8]
jne 0x18001ea1d
movzx r8d, byte [r15 + 2]
cmp r8d, dword [r10 + rax*8 + 4]
jb 0x18001ea1d
cmp r8d, dword [r10 + rax*8 + 8]
jbe 0x18001ea26
inc ecx
cmp ecx, r9d
jb 0x18001ea00
jmp 0x18001ea3d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdx, qword [r10 + rdx*8 + 0x10]
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_copy
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x18001eb5e
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.180010120
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 0x18001eaeb
cmp dword [rsi + 0x2fc], 0
jne 0x18001eaba
cmp dword [0x1800a2f7c], 0
jne 0x18001eaba
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.1800100d0
mov dword [0x1800a2f7c], 1
cmp byte [rdi], 0
je 0x18001eae1
lea rdx, [rsp + 0x30]
lea rcx, str.Overriding_localcpus_using__s_in_the_environment_n
call fcn.1800101f0
mov rdx, rdi
mov rcx, rbx
call sym.xmrstak_cuda_backend.dll_hwloc_bitmap_sscanf
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x18001eb5e
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x18001eb07
mov r8, rbx
mov rdx, r15
mov rcx, rax
call qword [rax + 0x40]
test eax, eax
jns 0x18001eb5e
cmp dword [rsi + 4], 0
ja 0x18001eb11
xor eax, eax
jmp 0x18001eb28
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x18001eb1e
xor eax, eax
jmp 0x18001eb28
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.18001aa40
test eax, eax
jne 0x18001eb5e
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.180012be0
mov rdi, rax
test rax, rax
je 0x18001eb85
test ebp, ebp
jne 0x18001eba6
mov r8, rax
mov rdx, r15
call fcn.18001e720
mov rdi, rax
jmp 0x18001eba6
cmp dword [rsi + 4], 0
ja 0x18001eb8f
xor edi, edi
jmp 0x18001eba6
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x18001eb9c
xor edi, edi
jmp 0x18001eba6
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rdi, qword [rdx]
test rbx, rbx
je 0x18001ebbe
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.180076910
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret