Function at 0x4227a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b74f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4faee4]
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 ebx, ecx
push str.Product_Version
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 4
call fcn.0042e400
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARERenome_Smart_ftagentVersions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, eax
test edx, edx
jne 0x42296f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.0042e730
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x422854
mov eax, dword [0x5030bc]
push str.ERROR:_Could_not_read_registry_value_while_determining_Version_path_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
add esp, 8
mov ecx, ebx
call fcn.004229c0
mov ecx, eax
xor ecx, dword [ebp - 0x44]
movzx ecx, cx
xor ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x104], ecx
cmp eax, ecx
je 0x422924
mov edx, dword [0x5030bc]
movsx eax, al
push eax
mov eax, dword [ebp - 0x44]
mov esi, dword [edx]
movsx eax, ah
push eax
movsx eax, byte [ebp - 0x42]
push eax
movsx eax, byte [ebp - 0x41]
push eax
push str.old_product_version__d._d._d._d_n
push edx
call dword [esi + 0x18]
mov edi, dword [0x5030bc]
lea eax, [ebp - 0x28]
add esp, 0x18
mov ecx, ebx
push eax
call fcn.00422b50
mov byte [ebp - 4], 1
mov ecx, eax
mov esi, dword [edi]
call fcn.0042e730
push eax
push str.new_product_version__s_n
push edi
call dword [esi + 0x18]
mov byte [ebp - 4], 0
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4228e3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
push 4
lea eax, [ebx + 0x104]
push eax
push 4
push 0
lea ecx, [ebp - 0x40]
call fcn.0042e730
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x422964
mov eax, dword [0x5030bc]
push str.ERROR:_Could_not_set_Version_registry_value_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
add esp, 8
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422983
mov edi, dword [0x5030bc]
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00422b50
mov byte [ebp - 4], 2
mov ecx, eax
mov esi, dword [edi]
call fcn.0042e730
push eax
push str.product_version__s_n
push edi
call dword [esi + 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x422964
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422983
mov eax, dword [0x5030bc]
push edx
push str.ERROR:_unable_to_open_registry_key_error_____d_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x422998
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
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.00464228
mov esp, ebp
pop ebp
ret