Function at 0x485970
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push 0xffffffffffffffff
push 0x5ab411
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8a8]
mov ebp, dword [esp + 0x8ac]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
call fcn.00486270
mov eax, dword [eax]
sub eax, 0x10
call fcn.00403ce0
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
push edi
mov dword [esp + 0x8a4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x485a03
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebp, ebp
je 0x485a25
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00404460
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x1b], 0
jne 0x485a2a
mov byte [esp + 0x1b], 1
test bl, 1
je 0x485a53
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x485a56
or ebx, 0xffffffff
cmp byte [esp + 0x1b], 0
je 0x485b15
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040cbf0
mov ebp, dword [0x5fe584]
push str.10000000_0000_0000_0000_000000000001
mov edx, str.SkinGUID
mov ecx, str.SOFTWARETencentQQPinyin
mov dword [0x5fe580], 1
call fcn.004736e0
add esp, 4
push 0x5bcc3c
mov edx, str.SkinFileName
mov ecx, str.SOFTWARETencentQQPinyin
call fcn.004736e0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
je 0x485aeb
mov edx, esi
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.004849b0
add edi, 0xfffffff0
mov esi, eax
mov dword [esp + 0x8a0], ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x485ae4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, esi
jmp 0x485d0a
add edi, 0xfffffff0
mov dword [esp + 0x8a0], ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x485b0b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
jmp 0x485d0a
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485b39
add edi, 0xfffffff0
mov dword [esp + 0x8a0], ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x485cfc
call fcn.0040cbf0
mov ebx, dword [0x5fe584]
push 0
push edi
push ebp
mov dword [0x5fe580], 1
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x485ce1
push 0
push 0
push 3
push 0
push 1
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x485baf
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [esp + 0x44]
call fcn.00484590
push 1
mov edx, esi
push edx
mov ecx, edi
call fcn.004857d0
test eax, eax
je 0x485bd9
mov eax, dword [esp + 0x2c]
push eax
call fcn.00484ab0
lea ecx, [esp + 0x44]
push ecx
mov edx, str.SkinGUID
mov ecx, str.SOFTWARETencentQQPinyin
call fcn.004736e0
add esp, 4
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00404460
mov byte [esp + 0x8a0], 1
mov eax, dword [esp + 0x1c]
push 0x5c
push eax
call fcn.0057b53f
add esp, 8
test eax, eax
jne 0x485c1c
or eax, 0xffffffff
jmp 0x485c22
sub eax, dword [esp + 0x1c]
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x1c]
call fcn.00403540
mov byte [esp + 0x8a0], 2
mov eax, dword [eax]
push eax
mov edx, str.SkinFileName
mov ecx, str.SOFTWARETencentQQPinyin
call fcn.004736e0
mov byte [esp + 0x8a4], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x485c8b
lea ecx, [esp + 0x44]
push ecx
mov ebx, eax
call fcn.00484680
mov byte [esp + 0x8a0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x8a0], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485cda
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
jmp 0x485d0a
add edi, 0xfffffff0
mov dword [esp + 0x8a0], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x485d08
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.005787fd
add esp, 0x890
ret 8