Function at 0x14001fe40
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 [0x1400b89e8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
mov r14, 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 0x14001feb9
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 0x14001feac
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
jmp 0x14001feb9
mov dword [rax], 0
mov dword [rbx + 0x10], 0
xor r15d, r15d
xor ebp, ebp
cmp dword [rsi + 0x2fc], ebp
je 0x14001ff2b
mov r9d, dword [rsi + 0x300]
xor ecx, ecx
test r9d, r9d
je 0x14001ff1d
mov r10, qword [rsi + 0x308]
movzx r11d, word [r14]
nop
lea rax, [rcx + rcx*2]
cmp r11d, dword [r10 + rax*8]
jne 0x14001fefd
movzx r8d, byte [r14 + 2]
cmp r8d, dword [r10 + rax*8 + 4]
jb 0x14001fefd
cmp r8d, dword [r10 + rax*8 + 8]
jbe 0x14001ff06
inc ecx
cmp ecx, r9d
jb 0x14001fee0
jmp 0x14001ff1d
lea rdx, [rcx + rcx*2]
mov rcx, rbx
mov rdx, qword [r10 + rdx*8 + 0x10]
call sym.cornelius.exe_hwloc_bitmap_copy
mov r15d, 1
mov ebp, 1
test r15d, r15d
jne 0x140020017
movzx eax, byte [r14 + 2]
lea r8, str.HWLOC_PCI__04x__02x_LOCALCPUS
movzx r9d, word [r14]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov dword [rsp + 0x20], eax
call fcn.140010c70
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 0x14001ffcb
cmp dword [rsi + 0x2fc], 0
jne 0x14001ff9a
cmp dword [0x1400c244c], 0
jne 0x14001ff9a
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.140001fc0
mov dword [0x1400c244c], 1
cmp byte [rdi], 0
je 0x14001ffc1
lea rdx, [rsp + 0x30]
lea rcx, str.Overriding_localcpus_using__s_in_the_environment_n
call fcn.140010d40
mov rdx, rdi
mov rcx, rbx
call sym.cornelius.exe_hwloc_bitmap_sscanf
mov r15d, 1
mov ebp, 1
test r15d, r15d
jne 0x140020017
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x14001ffe7
mov r8, rbx
mov rdx, r14
mov rcx, rax
call qword [rax + 0x40]
test eax, eax
jns 0x140020017
cmp dword [rsi + 4], 0
ja 0x14001fff1
xor edx, edx
jmp 0x140020008
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x14001fffe
xor edx, edx
jmp 0x140020008
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rdx, qword [rcx]
mov rdx, qword [rdx + 0xb8]
mov rcx, rbx
call sym.cornelius.exe_hwloc_bitmap_copy
mov rdx, rbx
mov rcx, rsi
call fcn.1400139b0
mov rdi, rax
test rax, rax
je 0x14002003e
test ebp, ebp
jne 0x14002005f
mov r8, rax
mov rdx, r14
call fcn.14001fc00
mov rdi, rax
jmp 0x14002005f
cmp dword [rsi + 4], 0
ja 0x140020048
xor edi, edi
jmp 0x14002005f
mov rax, qword [rsi + 0x10]
cmp dword [rax], 0
ja 0x140020055
xor edi, edi
jmp 0x14002005f
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rdi, qword [rdx]
test rbx, rbx
je 0x140020077
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.14008ccd0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret