Function at 0x140028224
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
and dword [rcx + 0xcc], 0
mov r14, rdx
mov rsi, rcx
call fcn.140061a68
mov qword [rsi + 0x1b8], rax
call fcn.140061a68
mov ebp, 1
mov qword [rsi + 0x1c0], rax
test byte [rsi + 0x328], bpl
je 0x140028294
mov rax, qword [rsi + 0x318]
lea rcx, str.GLOBAL_phase_discovery_with_component__s..._n
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140025738
mov rdx, r14
mov dword [r14], ebp
mov rcx, rax
call qword [rax + 0x40]
mov r13d, 2
test byte [rsi + 0x328], r13b
je 0x1400282b8
lea r8, [0x140412b18]
mov dword [r14], r13d
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
je 0x140028814
call fcn.1400620b0
test eax, eax
jne 0x140028814
test byte [rsi + 0x328], 4
je 0x140028301
lea r8, str.MEMORY
mov dword [r14], 4
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
cmp qword [rsi + 0x280], 0
je 0x14002834c
cmp dword [rsi + 0xc4], 0
je 0x14002834c
test byte [r14 + 8], r13b
jne 0x14002834c
test byte [rsi + 0x20], 4
jne 0x14002833f
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002834c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
je 0x14002834c
mov rcx, rsi
call qword [rsi + 0x280]
or dword [r14 + 8], r13d
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0xd0]
call fcn.1400620b0
test eax, eax
je 0x1400283ec
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0xd]
call fcn.140024e94
mov rcx, qword [rsi + 0x18]
mov rdi, rax
mov rdx, qword [rcx]
mov rcx, qword [rdx]
mov rcx, qword [rcx + 0xb8]
call fcn.140061ab4
mov qword [rdi + 0xb8], rax
call fcn.140061a0c
xor edx, edx
mov qword [rdi + 0xc8], rax
mov rcx, rax
call fcn.140061f68
mov rcx, qword [rdi + 0x28]
lea rbx, [rsi + 0x340]
mov rdx, rbx
mov r8d, 0x18
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x18]
call sub.VCRUNTIME140.dll_memset
lea r9, str.core:defaultnumanode
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140024c50
jmp 0x14002840b
mov rcx, qword [rsi + 0x350]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edx, edx
lea rcx, [rsi + 0x340]
lea r8d, [rdx + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xb8]
mov r8, qword [r8 + 0xc0]
mov rdx, rcx
call fcn.140062430
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov rdx, rcx
call fcn.140062430
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x1b8]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xb8]
call fcn.140062430
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x1c0]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xc8]
call fcn.140062430
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400272d0
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400271b8
test byte [rsi + 0x20], bpl
jne 0x1400284c1
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400273dc
mov rax, qword [rsi + 0x18]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, qword [rax]
mov rdi, qword [rcx]
mov rcx, rsi
mov ebx, dword [rdi]
mov edx, ebx
call fcn.1400246ac
cmp dword [rsp + 0x40], ebp
je 0x14002854b
cmp dword [rsp + 0x40], 3
jne 0x1400285c4
cmp ebx, 0xf
jne 0x140028531
mov rax, qword [rdi + 0x28]
movzx ecx, word [rax + 6]
mov eax, ecx
shr eax, 8
cmp eax, 3
jbe 0x140028547
cmp eax, 0xb
je 0x140028547
cmp ecx, 0xc04
je 0x140028547
cmp ecx, 0xc06
je 0x140028547
cmp ecx, 0x502
je 0x140028547
cmp eax, 6
je 0x140028547
cmp eax, 0x12
jne 0x14002854b
jmp 0x140028547
cmp ebx, 0x10
jne 0x1400285c4
mov rax, qword [rdi + 0x28]
xor ebp, ebp
cmp dword [rax], 4
setne bpl
test ebp, ebp
jne 0x1400285c4
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov r8, qword [rbx + 0x78]
test r8, r8
je 0x1400285c4
cmp qword [r8 + 0x58], 0
jne 0x1400285c4
and qword [r8 + 0x48], 0
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov qword [rcx], r8
mov rdx, qword [rbx + 0x90]
test rdx, rdx
je 0x14002858c
lea rcx, [r8 + 0x90]
call fcn.140025d5c
mov rdx, qword [rbx + 0xa0]
test rdx, rdx
je 0x1400285a4
lea rcx, [r8 + 0xa0]
call fcn.140025d5c
mov rdx, qword [rbx + 0xb0]
test rdx, rdx
je 0x1400285bc
lea rcx, [r8 + 0xb0]
call fcn.140025d5c
mov rcx, rbx
call fcn.1400256d0
xor edx, edx
mov rcx, rsi
call fcn.140024f6c
test eax, eax
js 0x140028820
mov rcx, rsi
call fcn.140065534
test byte [rsi + 0x328], 8
je 0x140028600
lea r8, [0x140412eb4]
mov dword [r14], 8
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
test byte [rsi + 0x328], 0x10
je 0x140028622
lea r8, [0x140412cd0]
mov dword [r14], reloc.WS2_32.dll_recv
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
test byte [rsi + 0x328], 0x20
je 0x140028644
lea r8, str.MISC
mov dword [r14], 0x20
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
test byte [rsi + 0x328], 0x40
je 0x140028666
lea r8, str.ANNOTATE
mov dword [r14], 0x40
mov rdx, r14
mov rcx, rsi
call fcn.1400281a8
mov rcx, rsi
call fcn.140065650
lea rcx, str.HWLOC_DEBUG_SORT_CHILDREN
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002868f
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400280fc
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140027548
mov rdx, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.140027594
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rdx]
test rcx, rcx
jne 0x1400286df
call fcn.140024c0c
cmp eax, r13d
jge 0x140028820
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.hwloc:_Topology_became_empty__aborting__n
jmp 0x140028747
mov rcx, qword [rcx + 0xb8]
call fcn.1400620b0
test eax, eax
je 0x14002870f
call fcn.140024c0c
cmp eax, r13d
jge 0x140028820
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.hwloc:_Topology_does_not_contain_any_PU__aborting__n
jmp 0x140028747
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0xc8]
call fcn.1400620b0
test eax, eax
je 0x140028754
call fcn.140024c0c
cmp eax, r13d
jge 0x140028820
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.hwloc:_Topology_does_not_contain_any_NUMA_node__aborting__n
mov rcx, rax
call fcn.140010930
jmp 0x140028820
mov rcx, rsi
call fcn.140027750
test eax, eax
js 0x140028820
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.1400269c4
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140026898
mov rcx, rsi
call fcn.140026a8c
mov rcx, qword [rsi + 0x318]
test rcx, rcx
je 0x140028810
mov rcx, qword [rcx]
lea rdx, [0x14041230c]
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140028810
lea rcx, str.HWLOC_DONT_ADD_VERSION_INFO
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140028810
mov rax, qword [rsi + 0x18]
lea r8, str.2.10.0
lea rdx, str.hwlocVersion
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.140024688
mov rcx, rsi
call fcn.140069500
mov rbx, rax
test rax, rax
je 0x140028810
mov rcx, qword [rsi + 0x18]
lea rdx, str.ProcessName
mov r8, rax
mov rcx, qword [rcx]
mov rcx, qword [rcx]
call fcn.140024688
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140028823
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret