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

Disassembly:
push 0xffffffffffffffff
push 0x410991
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x18]
push eax
push str.CLSID_s
push ecx
mov byte [esp + 0x244], 7
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push 0x80000000
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40ecc6
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov edx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], edx
jne 0x40ecc6
mov eax, dword [esp + 0x248]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push ebx
push ecx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e485
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x240]
lea eax, [esp + 0x18]
push edx
push str.CLSID_sInprocServer32
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40ecc6
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x40ecc6
mov eax, dword [esp + 0x254]
push eax
mov ebp, eax
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ebp
push 1
push ebx
push ebx
push eax
call edi
push str.Apartment
call esi
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push str.Apartment
push 1
push ebx
push str.ThreadingModel
push edx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e533
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x18]
push eax
push str.CLSID_sProgID
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push 0x80000000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40ecc6
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov edx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], edx
jne 0x40ecc6
mov eax, dword [esp + 0x250]
push eax
mov ebp, eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push ebx
push ebx
push ecx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e5c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x240]
lea eax, [esp + 0x18]
push edx
push str.CLSID_sProgrammable
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40ecc6
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x40ecc6
cmp ecx, ebx
je 0x40e638
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x240]
lea edx, [esp + 0x18]
push ecx
push str.CLSID_sTypeLib
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000000
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40e692
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40e72d
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
mov eax, dword [esp + 0x244]
push eax
mov ebp, eax
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ebp
push 1
push ebx
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e75d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x240]
lea edx, [esp + 0x18]
push ecx
push str.CLSID_sVersionIndependentProgID
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40e7bb
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40e856
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
mov eax, dword [esp + 0x24c]
push eax
mov ebp, eax
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ebp
push 1
push ebx
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e886
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24c]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40e8cd
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40e968
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
mov eax, dword [esp + 0x248]
push eax
mov ebp, eax
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ebp
push 1
push ebx
push ebx
push eax
call edi
mov eax, dword [esp + 0x240]
push eax
mov ebp, eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push ebp
push 1
push ebx
push str.CLSID
push edx
call edi
mov eax, dword [esp + 0x250]
push eax
mov ebp, eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push ebx
push str.CurVer
push ecx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e9da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x250]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push 0x80000000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40ea21
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov edx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], edx
je 0x40eabc
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
mov eax, dword [esp + 0x248]
push eax
mov ebp, eax
call esi
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push ebx
push ebx
push ecx
call edi
mov eax, dword [esp + 0x240]
push eax
mov ebp, eax
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ebp
push 1
push ebx
push str.CLSID
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40eb0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x240]
lea edx, [esp + 0x20]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
push edx
mov byte [esp + 0x244], 8
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40eb7e
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40ec2a
lea ecx, [esp + 0x20]
mov byte [esp + 0x238], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
cmp ecx, ebx
je 0x40ec39
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0xf003f
push ebx
push 0x4197ec
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40ec75
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40ed81
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4197ec
push 0x80000002
mov dword [esp + 0x38], ebx
call ebp
cmp eax, ebx
jne 0x40ecb5
lea ecx, [esp + 0x10]
call fcn.0040dc00
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40ed61
lea ecx, [esp + 0x20]
mov byte [esp + 0x238], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40ef1b
push 0x4197e8
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push 0x4197e8
push 1
push ebx
push 0x4197d4
push eax
call edi
push 0x4197e8
call esi
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push 0x4197e8
push 1
push ebx
push 0x4197c0
push edx
call edi
push 0x4197e8
call esi
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push 0x4197e8
push 1
push ebx
push 0x4197ac
push ecx
call edi
push 0x4197e8
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push 0x4197e8
push 1
push ebx
push 0x419798
push eax
call edi
push 0x4197e8
call esi
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push 0x4197e8
push 1
push ebx
push 0x419784
push edx
call edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push ebx
push 0x4197d4
push eax
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40ee55
lea ecx, [esp + 0x28]
push ecx
push 0x419780
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40ee68
push 0x4197d4
push 0x4197e8
lea ecx, [esp + 0x18]
call fcn.0040ef40
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x20]
mov byte [esp + 0x238], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
call fcn.0040dc00
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x244]
mov byte [esp + 0x238], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x248]
mov byte [esp + 0x238], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov byte [esp + 0x238], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x250]
mov byte [esp + 0x238], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 0x18