Function at 0x1400136d0
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 0x140013713
mov rcx, rdi
call fcn.140011460
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 0x1400136e9
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
cmp dword [rcx + 4], ebx
ja 0x140013731
mov ebp, ebx
jmp 0x140013748
mov rax, qword [rcx + 0x10]
cmp dword [rax], ebx
ja 0x14001373e
mov rbp, rbx
jmp 0x140013748
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, qword [rdx + 0xb8]
test rcx, rcx
je 0x140013763
mov r8, qword [rbp + 0xb8]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x14001377e
mov r8, qword [rbp + 0xc0]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x140013799
mov r8, qword [rbp + 0xc8]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1400137b4
mov r8, qword [rbp + 0xd0]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rax, qword [rdi + 0xb8]
mov rbp, qword [rsp + 0x38]
test rax, rax
je 0x1400137ee
cmp dword [rax + 0x10], ebx
jne 0x140013863
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x1400137ee
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x140013863
inc ecx
cmp ecx, edx
jb 0x1400137e0
mov rax, qword [rdi + 0xc0]
test rax, rax
je 0x14001381e
cmp dword [rax + 0x10], ebx
jne 0x140013863
mov edx, dword [rax]
mov ecx, ebx
test edx, edx
je 0x14001381e
mov r8, qword [rax + 8]
nop dword [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], ebx
jne 0x140013863
inc ecx
cmp ecx, edx
jb 0x140013810
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x14001384e
cmp dword [rax + 0x10], ebx
jne 0x140013863
mov ecx, dword [rax]
test ecx, ecx
je 0x14001384e
mov rdx, qword [rax + 8]
nop dword [rax]
mov eax, ebx
cmp dword [rdx + rax*4], 0
jne 0x140013863
inc ebx
cmp ebx, ecx
jb 0x140013840
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1400138cd
call sym.cornelius.exe_hwloc_bitmap_iszero
test eax, eax
jne 0x1400138cd
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sym.cornelius.exe_hwloc__insert_object_by_cpuset
test rax, rax
je 0x1400138ea
cmp rax, rdi
jne 0x1400138ec
mov rcx, rdi
call sym.cornelius.exe_hwloc_obj_add_children_sets
xor edx, edx
mov rcx, rsi
call sym.cornelius.exe_hwloc_topology_reconnect
test eax, eax
js 0x1400138ea
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140015270
mov rcx, rsi
call fcn.1400153c0
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.140011460
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