Function at 0x410df0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4773b1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax + 0x5e4], 0
jne 0x410e4c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 4
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x410e61
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
push ecx
mov ecx, esp
push dword [eax + 0x5e4]
call fcn.00407540
lea ecx, [ebp - 0x21c]
call fcn.0042c9b0
add esp, 4
lea ecx, [ebp - 0x21c]
push 4
push str..tlg
call fcn.00414e00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x410f01
push 0x48edf8
lea eax, [ebp - 0x218]
push eax
call edi
push str.TencentLogs_
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 4], 1
jle 0x410f2f
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00408520
mov esi, dword [ebp - 0x21c]
push esi
lea eax, [ebp - 0x218]
push eax
call edi
push dword [esi - 8]
push esi
call fcn.0045ffc5
add esp, 8
test eax, eax
js 0x411075
cmp eax, dword [esi - 8]
jg 0x411075
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x410f7a
xor ebx, ebx
jmp 0x411052
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410f83
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a2150
call fcn.004085a0
lea ecx, [ebp - 0x220]
call fcn.0042ac00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jne 0x410fc3
xor ebx, ebx
jmp 0x411037
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x224]
call fcn.004124d0
add esp, 4
push eax
mov ecx, 0x4a2150
mov byte [ebp - 4], 2
call fcn.004137d0
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41100e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x4a2150]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [0x4a2150]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x411052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41106e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
jmp 0x410e2e
push 0x80070057
call fcn.004064f0
int3