Function at 0x40cad0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4137f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebp
call sub.MFC42.DLL_CString::CString_4
xor esi, esi
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x18], esi
push 0xf003f
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer
mov byte [esp + 0x178], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebx
call fcn.00408ac0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
push 0xf003f
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40cbe5
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push ebp
push str.NoInternetIcon
push esi
mov dword [esp + 0x30], esi
xor edi, edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
jne 0x40cff2
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov eax, dword [esp + 0x174]
jne 0x40cbab
cmp eax, ebp
je 0x40cbb8
jmp 0x40cfff
cmp eax, ebp
jne 0x40d004
mov edi, 1
lea edx, [esp + 0x10]
push 4
mov dword [esp + 0x14], ebp
push edx
push 4
push ebp
push str.NoInternetIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebp
je 0x40cbe5
push ebp
push ebp
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x34]
push eax
push 0xf003f
push ebp
push ebp
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40d018
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40cc1b
cmp eax, 0xea
jne 0x40d018
lea ecx, [esp + 0x58]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
push ebp
push ebp
lea eax, [esp + 0x70]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov dword [esp + 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
push 0x41879c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [edx - 8]
cmp eax, 0x10
jle 0x40cfe9
cmp eax, 0x33
jge 0x40cfe9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
push str.cZviduhcPljuvzviclqkvzcJxuuhqYhuzlvqcH
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 2
call sub.MFC42.DLL_CString::operator
push 5
push ebp
lea eax, [esp + 0x1c]
push 2
push eax
mov ecx, ebx
call fcn.0040d130
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebp
push eax
push 0x80000003
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40ccf7
xor eax, eax
cmp esi, ebp
je 0x40cced
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
je 0x40cd6b
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push eax
push 0x80000003
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40cd5a
xor eax, eax
cmp esi, ebp
je 0x40cd50
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
jne 0x40cfd8
cmp esi, ebp
je 0x40cd7c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
push 0x4195e4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 5
push ebp
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, ebx
call fcn.0040d130
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebp
push eax
push 0x80000003
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40cde9
xor eax, eax
cmp esi, ebp
je 0x40cddf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
je 0x40ce59
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x10]
push edx
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push eax
push 0x80000003
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40ce4c
xor eax, eax
cmp esi, ebp
je 0x40ce42
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
jne 0x40ceaa
push 0x4195bc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 5
push ebp
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, ebx
call fcn.0040d130
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push ebp
push edx
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebp
je 0x40ceaa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
push 0x419568
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 5
push ebp
lea eax, [esp + 0x1c]
push 2
push eax
mov ecx, ebx
call fcn.0040d130
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebp
push eax
push 0x80000003
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40cf17
xor eax, eax
cmp esi, ebp
je 0x40cf0d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
je 0x40cf87
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push eax
push 0x80000003
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40cf7a
xor eax, eax
cmp esi, ebp
je 0x40cf70
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
cmp edi, ebp
jne 0x40cfd8
push 0x4195bc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 5
push ebp
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, ebx
call fcn.0040d130
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push ebp
push edx
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebp
je 0x40cfd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x20]
jmp 0x40cc08
cmp dword [esp + 0x174], ebp
je 0x40cbb8
mov edi, 1
lea ecx, [esp + 0x10]
push 4
mov dword [esp + 0x14], 1
push ecx
jmp 0x40cbc3
cmp esi, ebp
je 0x40d023
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x160
ret 4