Function at 0x418f80
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 - 0x65c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x648], 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 0x41907a
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.InterfaceTypeOrder
push str.DefaultSettings
push dword [ebp - 0x65c]
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 - 0x64c]
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 0x4190f3
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x64c]
call ebx
lea eax, [ebp - 0x640]
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x41910f
xor bl, bl
jmp 0x41941b
cmp dword [ebp - 0x62c], 0x10
lea esi, [ebp - 0x640]
jb 0x41912c
mov esi, dword [ebp - 0x640]
test esi, esi
jne 0x41912c
xor eax, eax
jmp 0x419166
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419131
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x658], eax
cmp eax, 0x3fffffff
jle 0x41914e
xor eax, eax
jmp 0x419166
add eax, eax
call fcn.00425b70
mov eax, esp
push 3
push dword [ebp - 0x658]
push esi
push eax
call fcn.004019a0
push str.InterfaceTypeOrder
push dword [ebp - 0x65c]
push eax
lea eax, [ebp - 0x420]
push str._s_s_s
push eax
call fcn.00415740
mov eax, dword [edi + 0x58]
lea esi, [edi + 0x58]
add esp, 0x14
test eax, eax
jne 0x4191b4
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 + 0x58]
test eax, eax
je 0x4191d8
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push ecx
lea ecx, [ebp - 0x650]
push ecx
push 0
push 0
push str.Version
push eax
call ebx
mov eax, dword [ebp - 0x650]
mov ebx, dword [ebp - 0x64c]
cmp eax, dword [ebp - 0x654]
jb 0x4191ee
mov ebx, dword [esi]
push 0x50
push 0
push edi
mov dword [edi + 0x50], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x50]
add esp, 0xc
mov dword [ebp - 0x644], 0x208
lea eax, [ecx + 1]
mov dword [edi + 0x50], 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 0x419311
lea eax, [ebp - 0x648]
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 0x4192d0
lea eax, [ebp - 0x1fe]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
add esp, 4
mov dword [ebp - 0x644], 4
lea esi, [edi + eax*4]
lea eax, [ebp - 0x644]
push eax
push esi
push 0
push 0
push str.Number
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 4
push eax
lea eax, [esi + 0x28]
push eax
push 0
push 0
push str.Enabled
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x644], 0x208
lea eax, [ecx + 1]
mov dword [edi + 0x50], 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 0x419240
lea esi, [edi + 0x58]
dec dword [edi + 0x50]
lea eax, [ebp - 0x644]
push eax
lea eax, [edi + 0x54]
mov dword [ebp - 0x644], 4
push eax
push 0
push 0
push str.Version
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x650]
cmp eax, dword [ebp - 0x654]
jae 0x41940d
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x419404
cmp dword [ebp - 0x62c], 0x10
lea ebx, [ebp - 0x640]
jb 0x419374
mov ebx, dword [ebp - 0x640]
test ebx, ebx
je 0x4193b5
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419380
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x658], eax
cmp eax, 0x3fffffff
jle 0x41939d
xor eax, eax
jmp 0x4193b5
add eax, eax
call fcn.00425b70
mov eax, esp
push 3
push dword [ebp - 0x658]
push ebx
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 0x419404
push str.InterfaceTypeOrder
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0041a490
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x419457
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41944d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41944d
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