Function at 0x40a9c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c020
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp edi, ebx
je 0x40ac1c
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
push str.open
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push ebx
push ebx
push edi
call esi
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.open
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x40ac0a
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0040a910
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
test eax, eax
jne 0x40abfe
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x24]
mov byte [esp + 0x30], 1
push edx
call fcn.0040a3c0
add esp, 4
test al, al
je 0x40abf1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.command
push ecx
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x40aadb
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push edx
push str.__s_____1_
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push 1
push ebx
push ebx
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call ebp
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.ddeexec
push ecx
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x40abf1
push str.__1____1_0____
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push ebx
push ebx
push edx
call esi
push 0x440080
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
push 1
push ebx
push str.NoActivateHandler
push eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Application
push edx
mov dword [esp + 0x40], ebx
call edi
test eax, eax
jne 0x40ab9a
push str.IExplore
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
push 1
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ebx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Topic
push eax
mov dword [esp + 0x44], ebx
call edi
test eax, eax
jne 0x40abea
push str.WWW_OpenURL
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push ebx
push ebx
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call ebp
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov dword [esp + 0x14], ebx
pop ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret