Function at 0x40a8a0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], eax
call fcn.0040ae70
mov dword [edi + 0x1c], eax
call fcn.0040aed0
mov dword [edi + 0x20], eax
cmp word [0x4528f0], 0
jne 0x40a930
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareTencentQQPlayerSettings
push connect
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a926
mov esi, dword [ebp - 8]
lea ecx, [ebp - 8]
push ecx
push 0x4528f0
push str.logFile
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x105
call fcn.00402590
test esi, esi
je 0x40a926
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x4528f0], 0
je 0x40a949
push 0x104
lea esi, [edi + 0x24]
push 0x4528f0
push esi
call dword [sym.imp.MSVCR80.dll_wcsncpy]
jmp 0x40a9fd
push 0x208
lea esi, [edi + 0x24]
push 0
push esi
call fcn.00417e46
add esp, 0xc
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40a999
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a974
sub eax, edx
sar eax, 1
mov edx, 0x103
sub edx, eax
push edx
push str.TencentQQPlayerQQPlayer.tlg
push esi
call dword [sym.imp.MSVCR80.dll_wcsncat]
jmp 0x40a9fd
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
push esi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x40aa00
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40a9c0
sub ecx, edi
sar ecx, 1
mov ebx, ecx
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40a9d6
sub ecx, edi
sar ecx, 1
sub ecx, ebx
add ecx, 0x103
push ecx
push str..tlg
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
mov edi, dword [ebp + 8]
add esp, 0xc
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa28
mov byte [edi + 0x23f], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40ab30
cmp dword [ebp - 0x448], 0
jne 0x40aa5b
cmp dword [ebp - 0x444], 0x500000
jbe 0x40ab29
push 0x104
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00417e46
add esp, 0xc
mov word [ebp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x1a
div ecx
push 0x103
push esi
add edx, 0x61
mov word [ebp + 8], dx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
lea eax, [ebp - 0x214]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aab0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
xor edi, edi
lea ecx, [ebp - 0x214]
push ecx
call ebx
lea edx, [ebp - 0x214]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40ab1a
push esi
call ebx
test eax, eax
jne 0x40ab1a
cmp edi, 2
jge 0x40ab12
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 3
jl 0x40aae3
lea eax, [ebp - 0x214]
push eax
call ebx
push esi
call ebx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4