Function at 0x180017950
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2f]
sub rsp, 0xd8
mov rax, qword [0x1800aad48]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, qword [rbp + 0x7f]
mov rax, r8
mov qword [rbp - 0x51], rcx
mov rsi, r9
mov rcx, qword [rbp + 0x77]
mov rbx, rdx
mov qword [rbp - 0x21], rcx
xor ecx, ecx
mov dword [rbp - 0x79], ecx
mov dword [rbp - 0x29], ecx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x2d], ecx
mov qword [rbp - 0x41], r9
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x59], rdx
mov qword [rbp - 0x39], rdi
mov qword [r9 + 0x48], rax
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x49]
mov rcx, rdi
call qword [rax + 0x18]
test eax, eax
js 0x180017b7b
mov r9, qword [rbp - 0x49]
lea rdx, str.type
xor ecx, ecx
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180017aac
cmp rcx, 5
jne 0x1800179d1
mov rcx, qword [rbp - 0x61]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call sym.xmrstakrx_opencl_backend.dll_hwloc_type_sscanf
test eax, eax
jns 0x1800179aa
mov rcx, qword [rbp - 0x61]
lea rdx, str.Cache
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180017a23
mov dword [rsi], 0x13
mov dword [rbp - 0x31], 1
jmp 0x1800179aa
mov rcx, qword [rbp - 0x61]
lea rdx, str.System
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180017a4a
cmp qword [rbp - 0x71], 0
jne 0x180017ad7
mov dword [rsi], eax
jmp 0x1800179aa
mov rcx, qword [rbp - 0x61]
lea rdx, str.MemCache
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180017b0b
mov dword [rsi], 0x14
mov dword [rbp - 0x79], 1
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x1800179aa
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x61]
lea rdx, str._s:__s_object_not_supported__will_be_ignored_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.1800053c0
mov rbx, qword [rbp - 0x59]
jmp 0x1800179aa
cmp dword [rsi], 0xffffffff
je 0x180017b43
mov rax, qword [rbp - 0x61]
mov r8, rsi
mov rcx, qword [rbp - 0x51]
mov rdx, rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180015e90
jmp 0x1800179aa
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x48]
lea rdx, str._s:_obsolete_System_object_only_allowed_at_root_n
mov rcx, rax
call fcn.1800053c0
jmp 0x180018616
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x61]
lea rdx, str._s:_unrecognized_object_type_string__s_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.1800053c0
jmp 0x180018616
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x49]
lea rdx, str._s:_object_attribute__s_found_before_type_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.1800053c0
jmp 0x180018616
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x69], 0
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
js 0x180017ead
mov rbx, qword [rbp - 0x69]
lea rdx, str.object
je 0x180017bc7
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180017c4d
cmp rcx, 7
jne 0x180017bb0
mov r9, qword [rbp - 0x71]
test r9, r9
je 0x180018067
cmp dword [rsi], 0
jne 0x180017bdf
mov dword [rsi], 0xc
mov r8, qword [rbp - 0x59]
mov eax, dword [rsi]
cmp dword [r8 + 0x58], 2
jb 0x180017fbe
cmp eax, 0xc
jg 0x180017ef4
cmp dword [r9], 0xc
jle 0x18001806b
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rax, qword [rbp - 0x71]
mov ecx, dword [rax]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, dword [rsi]
mov rdi, rax
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.normal_object__s_cannot_be_child_of_non_normal_parent__s_n
mov rcx, rax
mov r8, rbx
call fcn.1800053c0
jmp 0x180018616
lea rdx, str.page_type
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180017c9b
cmp dword [rsi], 0xd
jne 0x180017c77
mov rdx, qword [rsi + 0x28]
lea r8, [rbp - 0x19]
call fcn.180016d60
jmp 0x180017e32
cmp qword [rbp - 0x71], 0
jne 0x180017e4a
mov rdx, qword [rbp - 0x51]
lea r8, [rbp - 0x19]
add rdx, 0x2e0
call fcn.180016d60
jmp 0x180017e32
xor ecx, ecx
lea rdx, str.info
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180017ddc
cmp rcx, 5
jne 0x180017ca4
mov rax, qword [rbp - 0x11]
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x61]
xor edi, edi
lea rcx, [rbp - 0x19]
xor ebx, ebx
call qword [rax + 0x18]
test eax, eax
js 0x180017dcb
nop word [rax + rax]
mov rdx, qword [rbp - 0x61]
lea r8, str.name
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x180017d0a
cmp rcx, 5
jne 0x180017cf0
mov rdi, qword [rbp - 0x49]
jmp 0x180017d2f
xor eax, eax
lea r8, str.value
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x180017ead
cmp rax, 6
jne 0x180017d13
mov rbx, qword [rbp - 0x49]
mov rax, qword [rbp - 0x11]
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x19]
call qword [rax + 0x18]
test eax, eax
jns 0x180017ce0
test rdi, rdi
je 0x180017dcb
mov rax, qword [rbp - 0x59]
cmp dword [rax + 0x58], 2
jae 0x180017dad
xor ecx, ecx
lea rdx, str.Type
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180017d77
cmp rcx, 5
jne 0x180017d62
jmp 0x180017d8a
lea rdx, str.CoProcType
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180017dad
test rbx, rbx
je 0x180017dcb
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180017d9e
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_string_l1_1_0.dll__strdup]
mov qword [rsi + 8], rax
jmp 0x180017dcb
test rbx, rbx
je 0x180017dcb
lea rdx, [rsi + 0xe0]
mov r9, rbx
lea rcx, [rsi + 0xd8]
mov r8, rdi
call fcn.180005850
mov rax, qword [rbp - 0x11]
lea rcx, [rbp - 0x19]
call qword [rax + 0x28]
mov rdi, qword [rbp - 0x39]
jmp 0x180017e32
mov rax, qword [rbp - 0x59]
cmp dword [rax + 0x58], 2
jae 0x180017e0b
lea rdx, str.distances
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180017e0b
mov rcx, qword [rbp - 0x59]
lea r8, [rbp - 0x19]
mov rdx, rsi
call fcn.180016eb0
jmp 0x180017e32
lea rdx, str.userdata
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180017ec8
mov rcx, qword [rbp - 0x51]
lea r8, [rbp - 0x19]
mov rdx, rsi
call fcn.180017250
test eax, eax
js 0x180017ead
mov rax, qword [rdi + 8]
lea rcx, [rbp - 0x19]
call qword [rax + 0x30]
jmp 0x180017b7b
cmp dword [0x1800b031c], 0
jne 0x180017e7e
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180017e74
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b0318], eax
mov dword [0x1800b031c], 1
cmp dword [0x1800b0318], 0
je 0x180017ead
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x69]
lea rdx, str._s:_invalid_non_NUMAnode_object_child__s_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.1800053c0
or eax, 0xffffffff
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18005aca0
add rsp, 0xd8
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180017ead
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x69]
lea rdx, str._s:_invalid_special_object_child__s_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
jmp 0x180017ea8
cmp eax, 0xd
jne 0x180017f57
mov ecx, dword [r9]
lea eax, [rcx - 0xe]
cmp eax, 2
jbe 0x180017f0d
cmp ecx, 0x11
jne 0x18001806b
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rax, qword [rbp - 0x71]
mov ecx, dword [rax]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, dword [rsi]
mov rdi, rax
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.Memory_object__s_cannot_be_child_of_non_normal_or_memory_parent__s_n
mov rcx, rax
mov r8, rbx
call fcn.1800053c0
jmp 0x180018616
add eax, 0xfffffff2
cmp eax, 2
ja 0x18001806b
mov eax, dword [r9]
sub eax, 0xd
test eax, 0xfffffffb
jne 0x18001806b
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rax, qword [rbp - 0x71]
mov ecx, dword [rax]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, dword [rsi]
mov rdi, rax
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.I_O_object__s_cannot_be_child_of_non_normal_or_I_O_parent__s_n
mov rcx, rax
mov r8, rbx
call fcn.1800053c0
jmp 0x180018616
cmp eax, 0xe
jl 0x180018012
add eax, 0xfffffff2
cmp eax, 2
ja 0x18001806b
cmp dword [r9], 0x11
jne 0x18001806b
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.I_O_object__s_cannot_be_child_of_Misc_parent_n
mov rcx, rax
call fcn.1800053c0
jmp 0x180018616
mov eax, dword [r9]
add eax, 0xfffffff2
cmp eax, 3
ja 0x18001806b
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rax, qword [rbp - 0x71]
mov ecx, dword [rax]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, dword [rsi]
mov rdi, rax
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.v1.x_normal_v1.x_object__s_cannot_be_child_of_special_parent__s_n
mov rcx, rax
mov r8, rbx
call fcn.1800053c0
jmp 0x180018616
mov r8, qword [rbp - 0x59]
cmp dword [r8 + 0x58], 2
jae 0x1800183ea
test r9, r9
je 0x180018089
cmp dword [r9], 0xd
jne 0x180018089
mov r9, qword [r9 + 0x48]
mov qword [rbp - 0x71], r9
cmp dword [rsi], 0xd
jne 0x18001823d
test r9, r9
jne 0x18001811e
mov rcx, qword [rbp - 0x51]
or r8d, 0xffffffff
xor edx, edx
call sym.xmrstakrx_opencl_backend.dll_hwloc_alloc_setup_object
mov rcx, qword [rsi + 0xb8]
mov rbx, rax
mov qword [rbp - 0x71], rax
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xb8], rax
mov rcx, qword [rsi + 0xb8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xc0], rax
mov rcx, qword [rsi + 0xc8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xc8], rax
mov rcx, qword [rsi + 0xd0]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xd0], rax
mov r9, rbx
mov rax, qword [rbp - 0x51]
mov dword [rbp - 0x2d], 1
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov qword [rcx], rbx
mov rbx, qword [rbp - 0x69]
jmp 0x18001823d
mov rdi, qword [rsi + 0xc0]
mov rdx, qword [r9 + 0xc0]
mov rcx, rdi
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_isequal
mov r9, qword [rbp - 0x71]
test eax, eax
jne 0x180018239
mov rax, qword [r9 + 0x90]
test rax, rax
je 0x180018198
cmp qword [rax + 8], 0
jne 0x180018198
cmp qword [rax + 0x58], 0
jne 0x180018198
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x180018198
xor ecx, ecx
lea r8, str.MCDRAM
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x180018198
cmp rcx, 7
jne 0x180018170
mov rcx, rdi
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_iszero
mov r9, qword [rbp - 0x71]
test eax, eax
jne 0x180018239
mov rdi, qword [rbp - 0x51]
cmp dword [rdi + 0x9c], 1
je 0x180018239
or r8d, 0xffffffff
mov edx, 0xc
mov rcx, rdi
call sym.xmrstakrx_opencl_backend.dll_hwloc_alloc_setup_object
mov rbx, rax
mov qword [rax + 0xf0], 0
mov rcx, qword [rsi + 0xb8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xb8], rax
mov rcx, qword [rsi + 0xb8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xc0], rax
mov rcx, qword [rsi + 0xc8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov qword [rbx + 0xc8], rax
mov rcx, qword [rsi + 0xd0]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_dup
mov rdx, qword [rbp - 0x71]
mov r8, rbx
mov qword [rbx + 0xd0], rax
mov rcx, rdi
mov rax, qword [rbx + 0x28]
mov dword [rax + 4], 0x3e9
call sym.xmrstakrx_opencl_backend.dll_hwloc_insert_object_by_parent
mov r9, rbx
mov qword [rbp - 0x71], rbx
mov rbx, qword [rbp - 0x69]
mov rdi, qword [rbp - 0x39]
cmp dword [rbp - 0x31], 0
je 0x18001826c
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 8]
cmp dword [rax + 0x14], 2
lea eax, [rcx - 1]
jne 0x18001825d
cmp eax, 2
ja 0x180018267
lea eax, [rcx + 8]
jmp 0x18001826a
cmp eax, 4
ja 0x180018267
lea eax, [rcx + 3]
jmp 0x18001826a
or eax, 0xffffffff
mov dword [rsi], eax
cmp dword [rsi], 0x11
jne 0x180018281
cmp qword [rsi + 0xb8], 0
je 0x180018281
mov dword [rsi], 0xc
mov r8, qword [rsi + 0xb8]
xor ecx, ecx
cmp qword [rsi + 0xc0], rcx
sete cl
xor eax, eax
test r8, r8
sete al
cmp eax, ecx
je 0x180018300
cmp dword [rsi], 0xc
jne 0x1800182b8
mov r8, qword [rbp - 0x59]
mov r11d, 1
mov dword [rbp - 0x79], r11d
jmp 0x1800183ee
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_object__s_P_u_with_some_missing_cpusets_n
call fcn.1800053c0
jmp 0x180018616
mov rdx, qword [rsi + 0xc8]
xor ecx, ecx
cmp qword [rsi + 0xd0], rcx
sete cl
xor eax, eax
test rdx, rdx
sete al
cmp eax, ecx
je 0x18001837f
cmp dword [rsi], 0xc
jne 0x180018337
mov r8, qword [rbp - 0x59]
mov r11d, 1
mov dword [rbp - 0x79], r11d
jmp 0x1800183ee
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_object__s_P_u_with_some_missing_nodesets_n
call fcn.1800053c0
jmp 0x180018616
test rdx, rdx
je 0x1800183e6
test r8, r8
jne 0x1800183e6
cmp dword [rsi], 0xc
jne 0x18001839e
mov r8, qword [rbp - 0x59]
mov r11d, 1
mov dword [rbp - 0x79], r11d
jmp 0x1800183ee
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_object__s_P_u_with_either_cpuset_or_nodeset_missing_n
call fcn.1800053c0
jmp 0x180018616
mov r8, qword [rbp - 0x59]
mov r11d, dword [rbp - 0x79]
mov ecx, dword [rsi]
lea eax, [rcx - 4]
cmp eax, 7
ja 0x180018482
mov rax, qword [rsi + 0x28]
mov edx, dword [rax + 8]
cmp dword [rax + 0x14], 2
lea eax, [rdx - 1]
jne 0x180018416
cmp eax, 2
ja 0x180018420
lea eax, [rdx + 8]
jmp 0x180018423
cmp eax, 4
ja 0x180018420
lea eax, [rdx + 3]
jmp 0x180018423
or eax, 0xffffffff
cmp ecx, eax
je 0x180018482
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rax, qword [rbp - 0x41]
mov rsi, qword [rsi + 0x28]
mov ecx, dword [rax]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x14]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x28], edx
mov edx, dword [rsi + 8]
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_cache_type__s_with_attribute_depth__u_and_type__d_n
call fcn.1800053c0
mov rsi, qword [rbp - 0x41]
jmp 0x180018616
cmp qword [rsi + 0xb8], 0
lea eax, [rcx - 0xe]
jne 0x1800184e0
cmp eax, 3
jbe 0x18001857d
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_normal_object__s_P_u_without_cpuset_n
call fcn.1800053c0
jmp 0x180018616
cmp eax, 3
ja 0x180018526
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rdi + 0x48]
lea rdx, str._s:_invalid_special_object__s_with_cpuset_n
mov rcx, rax
mov r9, rbx
call fcn.1800053c0
jmp 0x180018616
test r9, r9
je 0x18001857d
cmp qword [r9 + 0xb8], 0
jne 0x18001857d
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_object__s_P_u_with_cpuset_while_parent_has_none_n
call fcn.1800053c0
jmp 0x180018616
mov rax, qword [rsi + 0xc8]
test rax, rax
je 0x1800185d9
test r9, r9
je 0x1800185d9
cmp qword [r9 + 0xc8], 0
jne 0x1800185d9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov ecx, dword [rsi]
call sym.xmrstakrx_opencl_backend.dll_hwloc_obj_type_string
mov rdi, qword [rdi + 8]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, dword [rsi + 0x10]
mov r9, rbx
mov r8, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x20], edx
lea rdx, str._s:_invalid_object__s_P_u_with_nodeset_while_parent_has_none_n
call fcn.1800053c0
jmp 0x180018616
cmp ecx, 0xd
jne 0x180018666
test rax, rax
jne 0x180018637
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180018616
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsi + 0x10]
lea rdx, str._s:_invalid_NUMA_node_object_P_u_without_nodeset_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.1800053c0
cmp qword [rbp - 0x71], 0
je 0x180017ead
mov rcx, rsi
call fcn.180005c40
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180017ead
mov rax, qword [r8 + 0x70]
inc dword [r8 + 0x60]
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x38], 0
mov rax, qword [r8 + 0x70]
test rax, rax
je 0x18001865e
mov qword [rax + 0x38], rsi
mov rbx, qword [rbp - 0x69]
jmp 0x180018662
mov qword [r8 + 0x68], rsi
mov qword [r8 + 0x70], rsi
movsxd rcx, dword [rsi]
cmp ecx, 0x12
jb 0x180018688
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9, qword [rbp - 0x71]
mov r10, qword [rbp - 0x51]
mov dword [rax], 0x16
mov rbx, qword [rbp - 0x69]
jmp 0x1800186dc
mov r10, qword [rbp - 0x51]
mov edx, dword [r10 + rcx*4 + 0x6c]
cmp edx, 1
je 0x1800186dc
cmp edx, 3
jne 0x1800186eb
cmp ecx, 0xf
jne 0x1800186ce
mov rax, qword [rsi + 0x28]
movzx edx, word [rax + 6]
mov ecx, edx
shr ecx, 8
lea eax, [rcx - 1]
cmp eax, 2
jbe 0x1800186eb
cmp ecx, 0xb
je 0x1800186eb
lea eax, [rdx - 0xc04]
test eax, 0xfffffffd
je 0x1800186eb
cmp ecx, 0x12
jne 0x1800186dc
jmp 0x1800186eb
cmp ecx, 0x10
jne 0x1800186eb
mov rax, qword [rsi + 0x28]
cmp dword [rax], 4
jne 0x1800186eb
test r9, r9
je 0x180018707
mov r11d, 1
mov dword [rbp - 0x79], r11d
test r9, r9
je 0x180018707
test r11d, r11d
jne 0x180018707
mov r8, rsi
mov rdx, r9
mov rcx, r10
call sym.xmrstakrx_opencl_backend.dll_hwloc_insert_object_by_parent
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x1800187bd
xor ecx, ecx
lea rdx, str.object
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180018841
cmp rcx, 7
jne 0x180018720
lea edx, [rcx + 0xb]
or r8d, 0xffffffff
mov rcx, qword [rbp - 0x51]
call sym.xmrstakrx_opencl_backend.dll_hwloc_alloc_setup_object
cmp dword [rbp - 0x79], 0
lea rcx, [rbp - 0x19]
mov rdx, qword [rbp - 0x59]
mov r8, rsi
cmovne r8, qword [rbp - 0x71]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x51]
mov qword [rax + 0x48], r8
call fcn.180017950
test eax, eax
js 0x180017ead
mov rax, qword [rdi + 8]
lea rcx, [rbp - 0x19]
call qword [rax + 0x30]
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x69], 0
mov rcx, rdi
call qword [rax + 0x20]
test eax, eax
js 0x180017ead
je 0x1800187bd
mov rbx, qword [rbp - 0x69]
test rbx, rbx
jne 0x180018710
cmp dword [rbp - 0x2d], 0
je 0x180018810
xor ebx, ebx
cmp dword [rsi + 0xe0], ebx
jbe 0x180018810
mov rax, qword [rbp - 0x71]
lea rdi, [rax + 0xe0]
add rax, 0xd8
mov qword [rbp - 0x41], rax
mov r8d, ebx
mov rdx, rdi
shl r8, 4
mov rcx, rax
add r8, qword [rsi + 0xd8]
mov r9, qword [r8 + 8]
mov r8, qword [r8]
call fcn.180005850
mov rax, qword [rbp - 0x41]
inc ebx
cmp ebx, dword [rsi + 0xe0]
jb 0x1800187e2
cmp dword [rbp - 0x79], 0
je 0x180018874
mov rcx, rsi
call fcn.180005c40
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x39]
mov dword [rax], 1
mov rax, qword [rcx + 8]
call qword [rax + 0x28]
jmp 0x180017eb0
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180017ead
mov rbx, qword [rdi + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x69]
lea rdx, str._s:_invalid_special_object_child__s_while_looking_for_objects_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
jmp 0x180017ea8
mov rdi, qword [rsi + 0x78]
add rsi, 0x78
mov qword [rbp - 0x49], rsi
test rdi, rdi
je 0x1800189a7
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1800189a7
nop word [rax + rax]
mov rdx, qword [rdi + 0xc0]
mov rcx, qword [rbx + 0xc0]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_compare_first
test eax, eax
js 0x1800188d3
mov rdi, rbx
mov rbx, qword [rbx + 0x58]
test rbx, rbx
jne 0x1800188a0
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx + 8]
call qword [rax + 0x28]
jmp 0x180017eb0
cmp dword [rbp - 0x29], 0
jne 0x180018904
cmp dword [0x1800b0330], 0
jne 0x180018904
call sym.xmrstakrx_opencl_backend.dll_hwloc_hide_errors
test eax, eax
jne 0x180018904
mov rcx, qword [rbp - 0x51]
mov r8, rdi
mov rdx, rbx
call fcn.180017590
mov dword [0x1800b0330], 1
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1800189a7
nop word [rax + rax]
mov rax, rcx
mov qword [rbp - 0x41], rcx
add rcx, 0x58
mov rbx, rsi
cmp qword [rsi], 0
mov qword [rbp - 0x61], rcx
mov rcx, qword [rcx]
mov qword [rbp - 0x21], rcx
je 0x18001898d
mov rsi, qword [rax + 0xc0]
mov rdi, qword [rbx]
test rsi, rsi
je 0x18001895f
mov rdx, qword [rdi + 0xc0]
test rdx, rdx
je 0x18001895f
mov rcx, rsi
jmp 0x18001896d
mov rdx, qword [rdi + 0xb8]
mov rcx, qword [rax + 0xb8]
call sym.xmrstakrx_opencl_backend.dll_hwloc_bitmap_compare_first
test eax, eax
jle 0x180018985
cmp qword [rdi + 0x58], 0
lea rbx, [rdi + 0x58]
mov rax, qword [rbp - 0x41]
jne 0x180018946
mov rcx, qword [rbp - 0x21]
mov rsi, qword [rbp - 0x49]
mov rax, qword [rbx]
mov rdx, qword [rbp - 0x61]
mov qword [rdx], rax
mov rax, qword [rbp - 0x41]
mov qword [rbx], rax
test rcx, rcx
jne 0x180018920
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx + 8]
call qword [rax + 0x28]
jmp 0x180017eb0