Function at 0x4170a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
lea edi, [ebp - 0x24]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov ecx, dword [0x6507bc]
push 0x18
push str.enable_registry_features
push edi
call fcn.005570d0
movsx ecx, byte [edi + 0xb]
mov eax, ecx
test ecx, ecx
jns 0x4170e1
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x417275
xor esi, esi
cmp byte [ebp - 0x19], 0
js 0x417375
test esi, esi
jne 0x41736e
mov ecx, dword [0x6507bc]
push str.registry_feature_in_test
call fcn.00556fb0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea esi, [ebp - 0x24]
push esi
call fcn.00417460
add esp, 4
mov ecx, esi
push 9
push str.Features
call fcn.0054e9f0
cmp byte [eax + 0xb], 0
jns 0x417385
lea ecx, [ebp - 0x3c]
push dword [eax + 4]
push dword [eax]
call fcn.00556f30
cmp byte [ebp - 0x19], 0
jns 0x417158
push dword [ebp - 0x24]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x31], 0
js 0x417163
lea eax, [ebp - 0x3c]
jmp 0x417166
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push 0x20019
push eax
push 0x80000001
call fcn.004173b0
cmp byte [ebp - 0x31], 0
jns 0x41718a
push dword [ebp - 0x3c]
call fcn.0057dc2b
add esp, 4
mov eax, dword [ebp + 8]
mov edi, dword [eax]
test edi, edi
je 0x41735f
push edi
call fcn.00598320
add esp, 4
push eax
push edi
push esi
call fcn.00556e70
add esp, 0xc
cmp byte [ebp - 0x19], 0
jns 0x4171b4
mov esi, dword [ebp - 0x24]
mov eax, 4
lea ecx, [ebp - 0x3c]
mov dword [ecx], eax
lea edx, [ebp - 0x14]
mov dword [edx], eax
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [eax], edi
push edx
push eax
push ecx
push edi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417266
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffffd
cmp eax, 2
setb al
cmp dword [ebp - 0x14], 4
sete cl
and cl, al
cmp dword [ebp - 0x18], 0
setne al
mov esi, ecx
mov ebx, ecx
xor bl, 1
or bl, al
cmp byte [ebp - 0x19], 0
jns 0x417216
push dword [ebp - 0x24]
call fcn.0057dc2b
add esp, 4
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 1
sete cl
movzx eax, bl
mov ebx, ecx
mov ecx, esi
test cl, cl
cmovne ebx, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x417244
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
test ecx, ecx
jne 0x41726c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov bl, 1
jmp 0x417205
push 1
call fcn.0044c940
jmp 0x417252
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
test cl, cl
jns 0x417285
mov edi, dword [ebp - 0x24]
test eax, eax
js 0x417399
test edi, edi
je 0x4173a0
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
push esi
push esi
push esi
push 0x62a7e3
push eax
push edi
mov edi, ecx
push ecx
call fcn.00572850
add esp, 0x1c
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov al, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], edx
cmp ecx, edx
je 0x417331
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x41735f
push dword [ebp - 0x48]
call fcn.00598320
add esp, 4
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp - 0x40]
jmp 0x4172ef
add edi, 0xc
cmp edi, dword [ebp - 0x50]
je 0x417331
movsx ecx, byte [edi + 0xb]
mov eax, edi
test ecx, ecx
jns 0x4172fe
mov ecx, dword [edi + 4]
mov eax, dword [edi]
test ecx, ecx
js 0x417399
je 0x417310
test eax, eax
je 0x4173a0
cmp ecx, dword [ebp - 0x4c]
jne 0x4172e7
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push eax
call fcn.0057dd13
add esp, 0xc
test eax, eax
jne 0x4172e7
mov dword [ebp - 0x44], 0
jmp 0x417333
xor esi, esi
cmp dword [ebp - 0x40], 0
je 0x417350
lea edi, [ebp - 0x30]
mov ecx, edi
push dword [ebp - 0x40]
call fcn.0056f4a0
push dword [edi]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x44], 0
jne 0x4170e9
jmp 0x4170eb
push str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
push 0x62a183
call fcn.005aacb0
mov bl, 1
jmp 0x417252
push dword [ebp - 0x24]
call fcn.0057dc2b
add esp, 4
jmp 0x4170f5
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x3c], xmm0
jmp 0x417147
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x417364
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x417364