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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4062f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x494
push edi
mov dword [ebp - 0x498], ecx
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x214]
mov eax, dword [edx - 8]
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], 9
jge 0x405011
mov dword [ebp - 0x47c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00405b58
mov eax, dword [ebp - 0x47c]
jmp 0x405419
push 9
lea ecx, [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x49c], eax
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.00405b58
lea ecx, [ebp - 0x214]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x494], ecx
push str.AVIEW.EXE
mov edx, dword [ebp - 0x494]
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
and eax, 0xff
test eax, eax
je 0x4050bd
mov dword [ebp - 0x484], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00405b58
mov eax, dword [ebp - 0x484]
jmp 0x405419
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x498]
cmp dword [eax + 0x94], 0x844
jne 0x4050f3
push str.SOFTWAREAkvmViewer
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov ecx, dword [ebp - 0x498]
cmp dword [ecx + 0x94], 0x102c
jne 0x40511a
push str.SOFTWAREAkvmViewer4140
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov edx, dword [ebp - 0x498]
cmp dword [edx + 0x94], 0x1770
jne 0x405141
push str.SOFTWAREAkvmViewer6000
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov eax, dword [ebp - 0x498]
cmp dword [eax + 0x94], 0xc2c
jne 0x405168
push str.SOFTWAREOemViewer
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov ecx, dword [ebp - 0x498]
cmp dword [ecx + 0x94], 0x2198
jne 0x40518f
push str.SOFTWAREAkvmViewer8600
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov edx, dword [ebp - 0x498]
cmp dword [edx + 0x94], 0x102d
jne 0x4051b3
push str.SOFTWARETrippliteViewer4141
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov eax, dword [ebp - 0x498]
cmp dword [eax + 0x94], 0x1fe4
jne 0x4051d7
push str.SOFTWAREAkvmViewer8164
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov ecx, dword [ebp - 0x498]
cmp dword [ecx + 0x94], 0x1fe5
jne 0x4051fb
push str.SOFTWAREAkvmViewer8165
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
jmp 0x40521d
mov edx, dword [ebp - 0x498]
cmp dword [edx + 0x94], 0x2199
jne 0x40521d
push str.SOFTWAREAkvmViewer8601
lea ecx, [ebp - 0x418]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 0x414], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.Filename]
mov dword [ebp - 0x450], eax
mov ecx, dword [0x4092f4]
mov dword [ebp - 0x44c], ecx
mov dl, byte [0x4092f8]
mov byte [ebp - 0x448], dl
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x447]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x454]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
mov edx, dword [ebp - 0x418]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405363
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x458]
push edx
push 0
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405363
lea ecx, [ebp - 0x478]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x414]
push edx
lea ecx, [ebp - 0x478]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x405354
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x488], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
call fcn.00405d14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.00405b58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00405b58
mov eax, dword [ebp - 0x488]
jmp 0x405419
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
call fcn.00405d14
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x454]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp - 0x418]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4053e8
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x454]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.00405b58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00405b58
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret