Function at 0x417f00
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x65c], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x64c], 0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
mov eax, 0x14
mov dword [ebp - 4], 0
call fcn.00425b40
mov esi, esp
xor eax, eax
test esi, esi
je 0x417ffa
push 9
push esi
push 0xffffffffffffffff
push str.Products
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
push str.AutoConnectionOrder
push str.DefaultSettings
push dword [ebp - 0x648]
push eax
push ebx
lea eax, [ebp - 0x628]
push str._s_s_s_s_s
push eax
call fcn.00415740
add esp, 0x1c
lea eax, [ebp - 0x654]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418073
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push eax
lea eax, [ebp - 0x65c]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x654]
call ebx
lea eax, [ebp - 0x640]
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x41808f
xor bl, bl
jmp 0x418408
cmp dword [ebp - 0x62c], 0x10
lea esi, [ebp - 0x640]
jb 0x4180ac
mov esi, dword [ebp - 0x640]
test esi, esi
jne 0x4180ac
xor eax, eax
jmp 0x4180e6
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4180b1
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x650], eax
cmp eax, 0x3fffffff
jle 0x4180ce
xor eax, eax
jmp 0x4180e6
add eax, eax
call fcn.00425b70
mov eax, esp
push 3
push dword [ebp - 0x650]
push esi
push eax
call fcn.004019a0
push str.AutoConnectionOrder
push dword [ebp - 0x648]
push eax
lea eax, [ebp - 0x420]
push str._s_s_s
push eax
call fcn.00415740
mov eax, dword [edi + 0x80]
lea esi, [edi + 0x80]
add esp, 0x14
test eax, eax
jne 0x41813d
push eax
push esi
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x418161
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push ecx
lea ecx, [ebp - 0x658]
push ecx
push 0
push 0
push str.Version
push eax
call ebx
mov eax, dword [ebp - 0x658]
mov ebx, dword [ebp - 0x654]
cmp eax, dword [ebp - 0x65c]
jb 0x418177
mov ebx, dword [esi]
push 0x78
push 0
push edi
mov dword [edi + 0x78], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x78]
add esp, 0xc
mov dword [ebp - 0x644], 0x208
lea eax, [ecx + 1]
mov dword [edi + 0x78], eax
lea eax, [ebp - 0x664]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4182f8
nop dword [eax]
lea eax, [ebp - 0x64c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4182b4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x644], 4
lea esi, [edi + eax*4]
lea eax, [ebp - 0x644]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push 0
push 0
push str.Number
push dword [ebp - 0x64c]
call eax
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push eax
lea eax, [esi + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push 0
push 0
push str.Enabled
push dword [ebp - 0x64c]
call esi
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push eax
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0
push eax
push 0
push 0
push str.Flags
push dword [ebp - 0x64c]
call esi
test eax, eax
jne 0x4182a8
mov ecx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x648]
mov dword [edi + ecx*4 + 0x50], eax
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi + 0x78]
mov dword [ebp - 0x644], 0x208
lea eax, [ecx + 1]
mov dword [edi + 0x78], eax
lea eax, [ebp - 0x664]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4181d0
lea esi, [edi + 0x80]
dec dword [edi + 0x78]
lea eax, [ebp - 0x644]
push eax
lea eax, [edi + 0x7c]
mov dword [ebp - 0x644], 4
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
push str.Version
push ebx
call eax
mov eax, dword [ebp - 0x658]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, dword [ebp - 0x65c]
jae 0x4183fe
push dword [esi]
call ebx
test eax, eax
jne 0x4183f5
cmp dword [ebp - 0x62c], 0x10
lea eax, [ebp - 0x640]
mov dword [ebp - 0x648], eax
jb 0x41836a
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x648], eax
test eax, eax
je 0x4183aa
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418370
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x650], eax
cmp eax, 0x3fffffff
jle 0x41838d
xor eax, eax
jmp 0x4183aa
add eax, eax
call fcn.00425b70
mov eax, esp
push 3
push dword [ebp - 0x650]
push dword [ebp - 0x648]
push eax
call fcn.004019a0
push esi
push 0xf003f
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4183f5
push str.AutoConnectionOrder
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi]
call ebx
push 0
push esi
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [esi]
mov ecx, edi
call fcn.00419e30
push dword [ebp - 0x654]
call ebx
mov bl, 1
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x418444
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41843a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41843a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov al, bl
lea esp, [ebp - 0x674]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret 8