Function at 0x140098c40
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [rcx + 0x28]
mov esi, r8d
mov r13, qword [rcx + 8]
mov r14, rdx
mov qword [rbp - 0x18], r13
mov r12d, dword [rax]
mov dword [rbp + 0x60], r12d
call fcn.14008e844
and dword [rbp - 0x20], 0
mov r15, rax
mov qword [rbp - 0x30], rax
xor ebx, ebx
or eax, 0xffffffff
test r12d, r12d
je 0x1400997ec
mov rdi, r14
cmp dword [rdi], 0
je 0x140098ca8
mov edx, ebx
mov rcx, r15
call fcn.14008f6c4
mov eax, ebx
inc ebx
add rdi, 0x88
cmp ebx, r12d
jb 0x140098c97
mov dword [rbp - 0x48], eax
cmp eax, 0xffffffff
je 0x1400997ec
call fcn.14008e844
lea r8, [rbp + 0x48]
mov dword [rbp + 0x48], 1
mov edx, 1
mov rcx, r13
mov rdi, rax
call fcn.140088320
cmp dword [rbp + 0x48], 1
je 0x140098e77
mov rdx, r15
mov rcx, rdi
call fcn.14008ee90
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
je 0x140098e77
test esi, esi
je 0x140098da2
mov ecx, ebx
imul rax, rcx, 0x88
add rax, r14
mov qword [rbp - 0x28], rax
lea rsi, [rax + 8]
mov r15d, dword [rsi]
call fcn.14008e844
mov qword [rbp + 0x48], rax
cmp ebx, r12d
jae 0x140098d65
mov r14, rax
cmp dword [rsi], r15d
jne 0x140098d53
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
inc ebx
add rsi, 0x88
cmp ebx, r12d
jb 0x140098d3a
mov r14, qword [rbp + 0x50]
mov r8d, r15d
mov edx, 1
mov rcx, r13
call fcn.1400861d8
mov rdx, qword [rbp - 0x28]
mov rbx, rax
mov rax, qword [rbp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov qword [rbx + 0xb8], rax
call fcn.140097d14
mov rdx, rbx
mov rcx, r13
call fcn.140087720
jmp 0x140098e3a
call fcn.14008e844
mov edx, ebx
mov rcx, rax
mov r15, rax
call fcn.14008f6c4
mov edx, 1
mov rcx, r13
call fcn.14008e074
lea ecx, [rax + 2]
cmp ecx, 1
jbe 0x140098dfc
xor r8d, r8d
mov edx, eax
mov rcx, r13
call fcn.14008e028
mov rsi, rax
test rax, rax
je 0x140098dfc
mov rdx, qword [rsi + 0xb8]
mov rcx, r15
call fcn.14008f124
test eax, eax
jne 0x140098dfe
mov rsi, qword [rsi + 0x38]
test rsi, rsi
jne 0x140098dde
jmp 0x140098dfe
xor esi, esi
mov rcx, r15
call fcn.14008f014
mov eax, ebx
imul rbx, rax, 0x88
add rbx, r14
test rsi, rsi
je 0x140098e52
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.140097d14
mov r8, qword [rsi + 0xb8]
mov rdx, rdi
mov rcx, rdi
call fcn.14008e9e4
mov rcx, rdi
call fcn.14008efc8
mov esi, dword [rbp + 0x58]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140098d0a
jmp 0x140098e70
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.14008e028
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.140097d14
mov r15, qword [rbp - 0x30]
mov esi, dword [rbp + 0x58]
test esi, esi
je 0x140098f8b
lea rcx, str.HWLOC_X86_TOPOEXT_NUMANODES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140098f8b
mov rdx, r15
mov rcx, rdi
call fcn.14008ee90
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
je 0x140098f8b
mov ecx, ebx
lea rsi, [r14 + 8]
imul rdx, rcx, 0x88
add rsi, rdx
mov r15d, dword [rdx + r14 + 0x10]
mov eax, dword [rsi]
mov dword [rbp + 0x48], eax
cmp r15d, 0xffffffff
jne 0x140098ee2
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
jmp 0x140098f75
call fcn.14008e844
mov qword [rbp - 0x40], rax
cmp ebx, r12d
jae 0x140098f32
mov r13d, dword [rbp + 0x48]
mov r14, rax
cmp dword [rsi + 8], 0xffffffff
je 0x140098f12
cmp dword [rsi], r13d
jne 0x140098f1c
cmp dword [rsi + 8], r15d
jne 0x140098f1c
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
inc ebx
add rsi, 0x88
cmp ebx, r12d
jb 0x140098ef7
mov r14, qword [rbp + 0x50]
mov r13, qword [rbp - 0x18]
mov r8d, r15d
mov edx, 0xd
mov rcx, r13
call fcn.1400861d8
mov rbx, rax
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0xb8], rax
call fcn.14008e844
mov edx, r15d
mov qword [rbx + 0xc8], rax
mov rcx, rax
call fcn.14008f6c4
mov rdx, rbx
mov rcx, r13
call fcn.140087720
inc dword [rbp - 0x20]
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140098eb3
mov esi, dword [rbp + 0x58]
lea r8, [rbp + 0x48]
mov dword [rbp + 0x48], 1
mov edx, 0xc
mov rcx, r13
call fcn.140088320
cmp dword [rbp + 0x48], 1
je 0x1400992ed
test esi, esi
je 0x1400992ed
mov rsi, qword [rbp - 0x30]
mov rcx, rdi
mov rdx, rsi
call fcn.14008ee90
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400990b2
mov ecx, ebx
lea rsi, [r14 + 8]
imul rdx, rcx, 0x88
add rsi, rdx
mov r15d, dword [rdx + r14 + 0x14]
mov eax, dword [rsi]
mov dword [rbp + 0x48], eax
cmp r15d, 0xffffffff
jne 0x140099006
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
jmp 0x14009909b
call fcn.14008e844
mov qword [rbp - 0x40], rax
cmp ebx, r12d
jae 0x140099056
mov r13d, dword [rbp + 0x48]
mov r14, rax
cmp dword [rsi + 0xc], 0xffffffff
je 0x140099036
cmp dword [rsi], r13d
jne 0x140099040
cmp dword [rsi + 0xc], r15d
jne 0x140099040
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
inc ebx
add rsi, 0x88
cmp ebx, r12d
jb 0x14009901b
mov r14, qword [rbp + 0x50]
mov r13, qword [rbp - 0x18]
mov r8d, r15d
mov edx, 0xc
mov rcx, r13
call fcn.1400861d8
mov rbx, rax
lea rcx, str.ComputeUnit
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0xb8], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [rbx + 0x28]
mov rdx, rbx
mov qword [rbx + 8], rax
mov dword [rcx + 4], 0x78
mov rcx, r13
call fcn.140087720
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140098fd7
mov rsi, qword [rbp - 0x30]
lea rcx, str.HWLOC_DONT_MERGE_DIE_GROUPS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400990d5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov byte [rbp + 0x48], 1
test eax, eax
jne 0x1400990d9
mov byte [rbp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.14008ee90
jmp 0x1400991b7
mov ecx, ebx
lea rsi, [r14 + 8]
imul rdx, rcx, 0x88
add rsi, rdx
mov r15d, dword [rdx + r14 + 0xc]
mov eax, dword [rsi]
mov dword [rbp - 0x38], eax
cmp r15d, 0xffffffff
jne 0x140099118
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
jmp 0x1400991b7
call fcn.14008e844
mov qword [rbp - 0x40], rax
cmp ebx, r12d
jae 0x140099168
mov r13d, dword [rbp - 0x38]
mov r14, rax
cmp dword [rsi + 4], 0xffffffff
je 0x140099148
cmp dword [rsi], r13d
jne 0x140099152
cmp dword [rsi + 4], r15d
jne 0x140099152
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
inc ebx
add rsi, 0x88
cmp ebx, r12d
jb 0x14009912d
mov r14, qword [rbp + 0x50]
mov r13, qword [rbp - 0x18]
mov r8d, r15d
mov edx, 0xc
mov rcx, r13
call fcn.1400861d8
mov rbx, rax
lea rcx, [0x1400a6abc]
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0xb8], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, qword [rbx + 0x28]
mov rdx, rbx
mov qword [rbx + 8], rax
mov al, byte [rbp + 0x48]
mov dword [rcx + 4], 0x68
mov rcx, qword [rbx + 0x28]
mov byte [rcx + 0xc], al
mov rcx, r13
call fcn.140087720
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400990e9
movsxd rax, dword [rbp - 0x48]
imul r15, rax, 0x88
mov qword [rbp - 0x28], r15
cmp qword [r15 + r14 + 0x20], 0
je 0x1400992ed
mov esi, dword [r15 + r14 + 0x28]
dec esi
or r12d, 0xffffffff
mov rax, qword [r15 + r14 + 0x20]
cmp dword [rax + rsi*4], r12d
je 0x1400992d7
mov rdx, qword [rbp - 0x30]
mov rcx, rdi
call fcn.14008ee90
mov rcx, rdi
call fcn.14008efc8
mov ebx, eax
cmp eax, r12d
je 0x1400992d7
mov ecx, ebx
imul r12, rcx, 0x88
add r12, 0x20
add r12, r14
mov rcx, qword [r12]
mov eax, dword [rcx + rsi*4]
mov dword [rbp + 0x48], eax
call fcn.14008e844
mov qword [rbp - 0x40], rax
mov eax, dword [rbp + 0x60]
cmp ebx, eax
jae 0x140099283
mov edx, dword [rbp + 0x48]
mov r14, qword [rbp - 0x40]
mov rcx, qword [r12]
cmp dword [rcx + rsi*4], edx
jne 0x140099272
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
mov eax, dword [rbp + 0x60]
mov edx, dword [rbp + 0x48]
inc ebx
add r12, 0x88
cmp ebx, eax
jb 0x14009924f
mov r14, qword [rbp + 0x50]
mov r8d, dword [rbp + 0x48]
mov edx, 0xc
mov rcx, r13
call fcn.1400861d8
mov rcx, qword [rbp - 0x40]
mov rdx, rax
mov qword [rax + 0xb8], rcx
mov rcx, qword [rax + 0x28]
mov dword [rcx + 4], 0x65
mov rcx, qword [rax + 0x28]
mov dword [rcx + 8], esi
mov rcx, r13
call fcn.140087720
mov rcx, rdi
call fcn.14008efc8
or r12d, 0xffffffff
mov ebx, eax
cmp eax, r12d
jne 0x14009921e
mov r15, qword [rbp - 0x28]
mov eax, dword [r15 + r14 + 0x28]
add esi, r12d
dec eax
cmp esi, eax
jbe 0x1400991f0
mov r12d, dword [rbp + 0x60]
lea r8, [rbp + 0x48]
mov dword [rbp + 0x48], 1
mov edx, 2
mov rcx, r13
call fcn.140088320
cmp dword [rbp + 0x48], 1
je 0x1400993f2
cmp dword [rbp + 0x58], 0
je 0x140099445
mov rdx, qword [rbp - 0x30]
mov rcx, rdi
call fcn.14008ee90
jmp 0x1400993db
mov ecx, ebx
lea rsi, [r14 + 8]
imul rdx, rcx, 0x88
add rsi, rdx
mov r15d, dword [rdx + r14 + 0x1c]
mov eax, dword [rsi]
mov dword [rbp + 0x48], eax
mov eax, dword [rdx + r14 + 0x10]
mov dword [rbp - 0x38], eax
cmp r15d, r8d
jne 0x14009935d
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
jmp 0x1400993db
call fcn.14008e844
mov qword [rbp - 0x40], rax
cmp ebx, r12d
jae 0x1400993b5
mov r13d, dword [rbp + 0x48]
mov r14, rax
cmp dword [rsi + 0x14], 0xffffffff
je 0x140099395
cmp dword [rsi], r13d
jne 0x14009939f
mov eax, dword [rbp - 0x38]
cmp dword [rsi + 8], eax
jne 0x14009939f
cmp dword [rsi + 0x14], r15d
jne 0x14009939f
mov edx, ebx
mov rcx, r14
call fcn.14008f6c4
mov edx, ebx
mov rcx, rdi
call fcn.14008eb68
inc ebx
add rsi, 0x88
cmp ebx, r12d
jb 0x140099372
mov r14, qword [rbp + 0x50]
mov r13, qword [rbp - 0x18]
mov r8d, r15d
mov edx, 2
mov rcx, r13
call fcn.1400861d8
mov rcx, qword [rbp - 0x40]
mov rdx, rax
mov qword [rax + 0xb8], rcx
mov rcx, r13
call fcn.140087720
mov rcx, rdi
call fcn.14008efc8
or r8d, 0xffffffff
mov ebx, eax
cmp eax, r8d
jne 0x14009932a
cmp dword [rbp + 0x58], 0
je 0x140099445
xor esi, esi
mov r15, r14
cmp dword [r15], 0
je 0x140099437
mov r8d, esi
mov edx, 3
mov rcx, r13
call fcn.1400861d8
mov rbx, rax
call fcn.14008e844
mov edx, esi
mov qword [rbx + 0xb8], rax
mov rcx, rax
call fcn.14008f4cc
mov rdx, rbx
mov rcx, r13
call fcn.140087720
inc esi
add r15, 0x88
cmp esi, r12d
jb 0x1400993fd
xor esi, esi
mov r8d, r12d
lea rcx, [r14 + 0x30]
cmp dword [rcx - 4], 0
jbe 0x140099472
mov rdx, qword [rcx]
mov r9d, dword [rcx - 4]
add rdx, 4
mov eax, esi
mov esi, dword [rdx]
cmp esi, eax
lea rdx, [rdx + 0x28]
cmovbe esi, eax
sub r9, 1
jne 0x14009945f
add rcx, 0x88
sub r8, 1
jne 0x14009944e
test esi, esi
je 0x1400997c8
xor ebx, ebx
mov dword [rbp - 0x34], ebx
lea eax, [rsi - 1]
cmp ebx, 2
jne 0x1400994a1
cmp eax, ebx
ja 0x1400997b1
lea eax, [rsi + 8]
jmp 0x1400994ae
cmp eax, 4
ja 0x1400994ab
lea eax, [rsi + 3]
jmp 0x1400994ae
or eax, 0xffffffff
mov dword [rbp + 0x48], eax
cmp eax, 0xffffffff
je 0x1400997b1
lea r8, [rbp - 0x48]
mov dword [rbp - 0x48], 1
mov edx, eax
mov rcx, r13
call fcn.140088320
cmp dword [rbp - 0x48], 1
je 0x1400997b1
mov rdx, qword [rbp - 0x30]
mov rcx, rdi
call fcn.14008ee90
jmp 0x14009979d
mov ecx, r15d
xor edx, edx
imul rax, rcx, 0x88
mov dword [rbp - 0x48], edx
mov qword [rbp - 0x28], rax
mov ecx, dword [rax + r14 + 0x2c]
test ecx, ecx
je 0x140099525
mov r9, qword [rax + r14 + 0x30]
lea r8, [rdx + rdx*4]
cmp dword [r9 + r8*8 + 4], esi
jne 0x14009951c
cmp dword [r9 + r8*8], ebx
je 0x140099522
inc edx
cmp edx, ecx
jb 0x14009950b
mov dword [rbp - 0x48], edx
cmp edx, ecx
jne 0x140099539
mov edx, r15d
mov rcx, rdi
call fcn.14008eb68
jmp 0x14009979d
call fcn.14008e844
mov edx, r15d
mov qword [rbp - 0x40], rax
mov rcx, rax
call fcn.14008f6c4
mov edx, dword [rbp + 0x48]
mov rcx, r13
call fcn.14008e074
lea ecx, [rax + 2]
cmp ecx, 1
jbe 0x14009959b
xor r8d, r8d
mov edx, eax
mov rcx, r13
call fcn.14008e028
mov rbx, rax
test rax, rax
je 0x14009959b
mov r12, qword [rbp - 0x40]
mov rdx, qword [rbx + 0xb8]
mov rcx, r12
call fcn.14008f124
test eax, eax
jne 0x140099595
mov rbx, qword [rbx + 0x38]
test rbx, rbx
jne 0x140099579
mov r12d, dword [rbp + 0x60]
jmp 0x14009959d
xor ebx, ebx
mov rcx, qword [rbp - 0x40]
call fcn.14008f014
test rbx, rbx
je 0x140099647
xor eax, eax
mov dword [rbp - 0x38], eax
cmp dword [rbx + 0xe0], eax
jbe 0x1400995ed
mov r15d, eax
lea rdx, str.Inclusive
shl r15, 4
add r15, qword [rbx + 0xd8]
mov rcx, qword [r15]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140099641
mov eax, dword [rbp - 0x38]
inc eax
mov dword [rbp - 0x38], eax
cmp eax, dword [rbx + 0xe0]
jb 0x1400995bc
xor eax, eax
test rax, rax
jne 0x14009962a
mov eax, dword [rbp - 0x48]
lea r8, [0x1400a94a4]
lea rdx, str.Inclusive
lea rcx, [rax + rax*4]
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + r14 + 0x30]
cmp dword [rax + rcx*8 + 0x18], 0
lea rax, [0x1400a75f0]
mov rcx, rbx
cmovne r8, rax
call fcn.140087b3c
mov r8, qword [rbx + 0xb8]
mov rdx, rdi
mov rcx, rdi
call fcn.14008e9e4
jmp 0x14009979a
mov rax, qword [r15 + 8]
jmp 0x1400995ef
mov rax, qword [rbp - 0x28]
mov ecx, dword [rax + r14 + 8]
lea rbx, [rax + 0x30]
mov eax, dword [rbp - 0x48]
add rbx, r14
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x28], rbx
lea rcx, [rax + rax*4]
mov rax, qword [rbx]
mov qword [rbp - 0x10], rcx
mov eax, dword [rax + rcx*8 + 0xc]
mov dword [rbp - 0x48], eax
call fcn.14008e844
mov qword [rbp - 0x40], rax
mov r8, rax
cmp r15d, r12d
jae 0x1400996fe
mov r13d, dword [rbp - 0x34]
mov r14d, dword [rbp - 0x38]
mov edx, dword [rbx - 4]
xor ecx, ecx
test edx, edx
je 0x1400996b3
mov r9, qword [rbx]
lea r8, [rcx + rcx*4]
cmp dword [r9 + r8*8 + 4], esi
jne 0x1400996a9
cmp dword [r9 + r8*8], r13d
je 0x1400996af
inc ecx
cmp ecx, edx
jb 0x140099698
mov r8, qword [rbp - 0x40]
cmp ecx, edx
je 0x1400996d8
cmp dword [rbx - 0x28], r14d
jne 0x1400996e3
mov rax, qword [rbx]
lea rcx, [rcx + rcx*4]
mov edx, dword [rbp - 0x48]
cmp dword [rax + rcx*8 + 0xc], edx
jne 0x1400996e3
mov edx, r15d
mov rcx, r8
call fcn.14008f6c4
mov edx, r15d
mov rcx, rdi
call fcn.14008eb68
mov r8, qword [rbp - 0x40]
inc r15d
add rbx, 0x88
cmp r15d, r12d
jb 0x14009968c
mov r14, qword [rbp + 0x50]
mov r13, qword [rbp - 0x18]
mov edx, dword [rbp + 0x48]
or r8d, 0xffffffff
mov rcx, r13
call fcn.1400861d8
mov r8, qword [rbp - 0x28]
mov rbx, rax
mov r9, qword [rbp - 0x10]
mov rcx, qword [rax + 0x28]
mov dword [rcx + 8], esi
mov rcx, qword [r8]
mov edx, dword [rcx + r9*8 + 0x24]
mov rcx, qword [rax + 0x28]
mov qword [rcx], rdx
mov rdx, qword [rax + 0x28]
mov rcx, qword [r8]
mov ecx, dword [rcx + r9*8 + 0x10]
mov dword [rdx + 0xc], ecx
mov rdx, qword [rax + 0x28]
mov rcx, qword [r8]
mov ecx, dword [rcx + r9*8 + 0x1c]
mov dword [rdx + 0x10], ecx
lea rdx, str.Inclusive
mov rax, qword [r8]
mov rcx, qword [rbx + 0x28]
mov eax, dword [rax + r9*8]
mov dword [rcx + 0x14], eax
mov rcx, rbx
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0xb8], rax
mov rax, qword [r8]
lea r8, [0x1400a94a4]
cmp dword [rax + r9*8 + 0x18], 0
lea rax, [0x1400a75f0]
cmovne r8, rax
call fcn.140087b3c
mov rdx, rbx
mov rcx, r13
call fcn.140087720
mov ebx, dword [rbp - 0x34]
mov rcx, rdi
call fcn.14008efc8
mov r15d, eax
cmp eax, 0xffffffff
jne 0x1400994ea
inc ebx
mov dword [rbp - 0x34], ebx
cmp ebx, 2
jle 0x14009948c
add esi, 0xffffffff
jne 0x140099487
mov rcx, rdi
call fcn.14008f014
mov rcx, qword [rbp - 0x30]
call fcn.14008f014
cmp dword [rbp - 0x20], 0
je 0x1400997f4
mov rax, qword [r13 + 0x258]
mov byte [rax + 1], 1
jmp 0x1400997f4
mov rcx, r15
call fcn.14008f014
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret