Function at 0x40536e
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x40f344
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x138
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::CFile
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x144]
push 0x104
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040e3ba
lea eax, [ebp - 0x1c]
push 1
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, 0x415a2c
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x1c]
setne byte [ebp - 0x25]
call fcn.0040e3ae
cmp byte [ebp - 0x25], bl
je 0x4053f8
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
push str.ISDvX.ocx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jb 0x405841
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x416264
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40544e
call eax
test eax, eax
jge 0x40544e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405841
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00405193
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_LOCALMACHINE_LOCKDOWN_
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x80000003
push eax
push esi
call edi
test eax, eax
jne 0x405835
push 4
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push str.iexplore.exe
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x405516
cmp dword [ebp - 0x24], 1
jne 0x405530
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push ebx
push str.iexplore.exe
push dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
test eax, eax
jne 0x405835
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push str.Flags
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4055ae
cmp dword [ebp - 0x24], 0x47
jne 0x4055cc
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push ebx
push str.Flags
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 0x43
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomainsxpcad.net_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
test eax, eax
je 0x405654
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov eax, dword [eax - 8]
push ebx
push 4
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405835
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomainsxpcad.netwww_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
test eax, eax
je 0x4056f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov eax, dword [eax - 8]
push ebx
push 4
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405835
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains_vdonline.net_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
test eax, eax
je 0x40576f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov eax, dword [eax - 8]
push ebx
push 4
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405835
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains_vdonline.netwww_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0040e3b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
test eax, eax
je 0x405807
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov eax, dword [eax - 8]
push ebx
push 4
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405835
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
mov eax, dword [eax - 8]
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call edi
push 4
lea ecx, [ebp - 0x24]
pop eax
mov dword [ebp - 0x24], 2
push eax
push ecx
push eax
push ebx
push 0x416034
mov dword [ebp - 0x30], eax
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040e3ae
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040e420
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret