Function at 0x49f7e0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5f4b
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 + 0x14]
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 + 0x10]
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 0x49f860
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_]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
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 ebx
cmp eax, edi
jne 0x49f9e4
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x18]
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push esi
push 1
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x49f9d9
mov dword [esp + 0x18], edi
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
push str.DefaultIcon
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x38], 5
call fcn.00402c1f
add esp, 0xc
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push SysReAllocStringLen
mov dword [esp + 0x3c], 0
call ebx
test eax, eax
jne 0x49f9c4
mov esi, dword [esp + 0x3c]
test esi, esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
jne 0x49f9a6
lea ecx, [esp + 0x18]
call fcn.0049795f
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call fcn.00497c0c
lea ecx, [esp + 0x1c]
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
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea edx, [eax + eax]
push edx
push esi
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x49f968
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test edi, edi
je 0x49f9d9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x49f9e4
push ebp
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