Function at 0x485f10
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4aa342
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push 0x1c
push eax
call fcn.00485d00
mov dword [esp + 0x510], 0
push str.MicrosoftWindowsExplorer
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403e3d
add esp, 0x14
mov byte [esp + 0x508], 2
lea ecx, [esp + 0x18]
call fcn.00403910
lea ecx, [esp + 0x24]
call fcn.004100b8
mov byte [esp + 0x508], 3
push str._thumbcache_.db
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00403e3d
add esp, 0xc
mov byte [esp + 0x508], 4
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x29c]
call fcn.004864d0
mov byte [esp + 0x508], 6
lea ecx, [esp + 0x18]
call fcn.00403910
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x29c]
call fcn.004865b0
mov bl, 7
mov byte [esp + 0x508], bl
mov edx, dword [esp + 0x294]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4860df
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x294]
mov dword [esp + 0x20], eax
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
call fcn.00485630
mov byte [esp + 0x508], 8
mov eax, dword [esp + 0x14]
push 0x80
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
call edi
test eax, eax
je 0x486064
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.0041013e
mov byte [esp + 0x508], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48608b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x508], 6
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4860b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x29c]
call fcn.004865b0
mov byte [esp + 0x508], bl
mov edx, dword [esp + 0x294]
cmp dword [edx - 0xc], 0
jne 0x486020
mov byte [esp + 0x508], 6
lea ecx, [esp + 0x294]
call fcn.00403910
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
sar eax, 2
test eax, eax
jbe 0x4862bf
push str.ThumbCacheToDelete
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403e3d
add esp, 0xc
mov byte [esp + 0x508], 0xd
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x486297
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, eax
jb 0x486156
call fcn.00488376
mov ecx, dword [esp + 0x30]
lea eax, [ecx + esi*4]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004856c0
mov edi, eax
mov byte [esp + 0x510], 0xe
push 0x4c2ce4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00403e3d
mov byte [esp + 0x51c], 0xf
push edi
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.0040f542
mov byte [esp + 0x528], 0x10
push 1
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004858f0
add esp, 0x2c
mov byte [esp + 0x508], 0x12
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4861da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x508], 0x14
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486202
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x508], 0x16
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48622a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
sar ecx, 2
cmp esi, ecx
jb 0x486242
call fcn.00488376
mov edx, dword [esp + 0x30]
mov ebp, dword [edx + esi*4]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xb
push edi
push ebp
call ebx
mov byte [esp + 0x508], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
inc esi
sar eax, 2
cmp esi, eax
jb 0x486156
mov byte [esp + 0x508], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4862bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x508], 3
lea ecx, [esp + 0x298]
call fcn.00486360
mov byte [esp + 0x508], 2
lea ecx, [esp + 0x24]
call fcn.004100ef
mov dword [esp + 0x508], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48630f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004876e8
add esp, 0x4f8
ret