Function at 0x14001eda0
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 [0x1400b59e8]
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 0x14001ee19
mov ecx, 0x40
mov dword [rax], 1
mov dword [rax + 4], reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001ee0c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x14001ee19
mov dword [rax], 0
mov dword [rbx + 0x10], 0
xor r14d, r14d
xor ebp, ebp
cmp dword [rsi + 0x2fc], ebp
je 0x14001ee8b
mov r9d, dword [rsi + 0x300]
xor ecx, ecx
test r9d, r9d
je 0x14001ee7d
mov r10, qword [rsi + 0x308]
movzx r11d, word [r15]
nop
lea rax, [rcx + rcx*2]
cmp r11d, dword [r10 + rax*8]
jne 0x14001ee5d
movzx r8d, byte [r15 + 2]
cmp r8d, dword [r10 + rax*8 + 4]
jb 0x14001ee5d
cmp r8d, dword [r10 + rax*8 + 8]
jbe 0x14001ee66
inc ecx
cmp ecx, r9d
jb 0x14001ee40
jmp 0x14001ee7d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdx, qword [r10 + rdx*8 + 0x10]
call sym.xmr_stak_rx.exe_hwloc_bitmap_copy
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x14001ef9e
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.140010560
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 0x14001ef2b
cmp dword [rsi + 0x2fc], 0
jne 0x14001eefa
cmp dword [0x1400c1574], 0
jne 0x14001eefa
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.140001e00
mov dword [0x1400c1574], 1
cmp byte [rdi], 0
je 0x14001ef21
lea rdx, [rsp + 0x30]
lea rcx, str.Overriding_localcpus_using__s_in_the_environment_n
call fcn.140010630
mov rdx, rdi
mov rcx, rbx
call sym.xmr_stak_rx.exe_hwloc_bitmap_sscanf
mov r14d, 1
mov ebp, 1
test r14d, r14d
jne 0x14001ef9e
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x14001ef47
mov r8, rbx
mov rdx, r15
mov rcx, rax
call qword [rax + 0x40]
test eax, eax
jns 0x14001ef9e
cmp dword [rsi + 4], 0
ja 0x14001ef51
xor eax, eax
jmp 0x14001ef68
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x14001ef5e
xor eax, eax
jmp 0x14001ef68
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.14001ae80
test eax, eax
jne 0x14001ef9e
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.140013020
mov rdi, rax
test rax, rax
je 0x14001efc5
test ebp, ebp
jne 0x14001efe6
mov r8, rax
mov rdx, r15
call fcn.14001eb60
mov rdi, rax
jmp 0x14001efe6
cmp dword [rsi + 4], 0
ja 0x14001efcf
xor edi, edi
jmp 0x14001efe6
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x14001efdc
xor edi, edi
jmp 0x14001efe6
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rdi, qword [rdx]
test rbx, rbx
je 0x14001effe
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.140087840
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret