Function at 0x49f5e0
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0049e300
add esp, 8
xor edi, edi
mov ecx, eax
mov dword [esp + 0x20], edi
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea edx, [esp + 8]
push edx
call fcn.0049da00
add esp, 8
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_CGopherFileFind::IsDots]
test al, al
je 0x49f660
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push SysReAllocStringLen
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x49f7be
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [esp + 0x24], ebx
call ebp
inc eax
add eax, eax
push eax
push esi
push 1
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x49f7b3
mov dword [esp + 0x14], edi
push esi
push SysReAllocStringLen
mov byte [esp + 0x34], 4
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x49f7b3
push esi
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
push str._shellopencommand
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x38], 5
call fcn.00402c1f
add esp, 0xc
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
push 0
push 0x2001f
push 0
push 0
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push SysReAllocStringLen
lea ecx, [esp + 0x30]
call fcn.0049d2d0
test eax, eax
mov esi, dword [esp + 0x14]
jne 0x49f79e
push edi
call ebp
inc eax
lea edx, [eax + eax]
push edx
push edi
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49f79e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call fcn.00497c0c
lea ecx, [esp + 0x20]
call fcn.00497c0c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test esi, esi
je 0x49f7b3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x49f7be
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret