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

Disassembly:
push 0xffffffffffffffff
push 0x4016f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push str..qfs
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000000
mov byte [esp + 0x50], 2
mov dword [esp + 0x58], esi
call ebp
cmp eax, esi
jne 0x4012e4
lea ecx, [esp + 0x10]
call fcn.00401350
mov ecx, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x10], ecx
jne 0x4012e4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Five.Document
call ebx
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.Five.Document
push 1
push esi
push esi
push edx
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40110e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push str.Five.Document
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push 0x80000000
mov dword [esp + 0x58], esi
call ebp
cmp eax, esi
jne 0x4012e4
lea ecx, [esp + 0x10]
call fcn.00401350
mov ecx, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x10], ecx
jne 0x4012e4
push str.Tencent_QQGame_Five_Recorder
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
push str.Tencent_QQGame_Five_Recorder
push 1
push esi
push esi
push edx
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40118c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x18]
push str.__128
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
push str.DefaultIcon
push str.Five.Document
lea edx, [esp + 0x1c]
push 0x40303c
push edx
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push 0x80000000
mov dword [esp + 0x58], esi
call ebp
cmp eax, esi
jne 0x4012d6
lea ecx, [esp + 0x10]
call fcn.00401350
mov ecx, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x10], ecx
jne 0x4012d6
mov eax, dword [esp + 0x1c]
push eax
mov edi, eax
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
push edi
push 1
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401233
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
push str._shellopencommand
push str.Five.Document
lea eax, [esp + 0x1c]
push 0x40303c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000000
mov dword [esp + 0x58], esi
call ebp
cmp eax, esi
jne 0x4012d6
lea ecx, [esp + 0x10]
call fcn.00401350
mov ecx, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x10], ecx
jne 0x4012d6
lea edx, [esp + 0x18]
push str.___1_
lea eax, [esp + 0x38]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [esp + 0x34]
push eax
mov edi, eax
call ebx
mov ecx, dword [esp + 0x10]
inc eax
push eax
push edi
push 1
push esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4012cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x34]
call fcn.0040150c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0040150c
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.0040150c
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401305
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040150c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret