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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
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 dword [ebp - 0x440], ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov eax, 0x14
mov dword [ebp - 4], 0
call fcn.00425b40
mov esi, esp
xor eax, eax
test esi, esi
je 0x418551
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.DefaultDevice
push str.DefaultSettings
push ebx
push eax
push edi
lea eax, [ebp - 0x420]
push str._s_s_s_s_s
push eax
call fcn.00415740
add esp, 0x1c
lea eax, [ebp - 0x444]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4185c5
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 4
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x444]
call ebx
lea eax, [ebp - 0x438]
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x4185e1
xor bl, bl
jmp 0x4187e7
cmp dword [ebp - 0x424], 0x10
lea esi, [ebp - 0x438]
jb 0x4185fe
mov esi, dword [ebp - 0x438]
test esi, esi
jne 0x4185fe
xor eax, eax
jmp 0x41862f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418603
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x41861b
xor eax, eax
jmp 0x41862f
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
push str.DefaultDevice
push dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x218]
push str._s_s_s
push eax
call fcn.00415740
mov edi, dword [ebp - 0x440]
add esp, 0x14
mov eax, dword [edi + 8]
lea esi, [edi + 8]
test eax, eax
jne 0x418683
push eax
push esi
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [edi + 8]
test eax, eax
je 0x4186a7
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x43c], 4
push ecx
lea ecx, [ebp - 0x448]
push ecx
push 0
push 0
push str.Version
push eax
call ebx
mov eax, dword [ebp - 0x448]
mov edi, dword [ebp - 0x444]
cmp eax, dword [ebp - 0x44c]
jb 0x4186bd
mov edi, dword [esi]
mov eax, dword [ebp - 0x440]
lea ecx, [ebp - 0x43c]
push ecx
push eax
push 0
push 0
push str.SerialNumber
push edi
mov dword [eax], 0
mov dword [ebp - 0x43c], 4
call ebx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 4
push eax
mov eax, dword [ebp - 0x440]
add eax, 4
push eax
push 0
push 0
push str.Version
push edi
call ebx
mov eax, dword [ebp - 0x448]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, dword [ebp - 0x44c]
jae 0x4187dd
push dword [esi]
call ebx
test eax, eax
jne 0x4187dd
cmp dword [ebp - 0x424], 0x10
lea edi, [ebp - 0x438]
jb 0x41874b
mov edi, dword [ebp - 0x438]
test edi, edi
je 0x418785
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418750
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x450], eax
cmp eax, 0x3fffffff
jle 0x41876d
xor eax, eax
jmp 0x418785
add eax, eax
call fcn.00425b70
mov eax, esp
push 3
push dword [ebp - 0x450]
push edi
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 0x4187d0
push str.DefaultDevice
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 - 0x218]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [esi]
mov ecx, dword [ebp - 0x440]
call fcn.00419fc0
push dword [ebp - 0x444]
call ebx
mov bl, 1
mov edx, dword [ebp - 0x424]
cmp edx, 0x10
jb 0x418823
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418819
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418819
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 - 0x460]
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