Function at 0x48daf0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d752
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x558384]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x82c], 0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x48deaf
push 2
push dword [edi]
call fcn.004e6c4d
add esp, 8
test eax, eax
jne 0x48deaf
push 6
push dword [edi]
call fcn.004e6c4d
add esp, 8
test eax, eax
jne 0x48deaf
lea eax, [ebp - 0x828]
push edi
push eax
call fcn.0048d960
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x828]
mov edx, 0x5151d0
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x48dbad
test si, si
je 0x48dba9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x48dbad
add ecx, 4
add edx, 4
test si, si
jne 0x48db87
xor ecx, ecx
jmp 0x48dbb2
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x48de97
mov edx, str.HFS
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x48dbeb
test si, si
je 0x48dbe7
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x48dbeb
add ecx, 4
add edx, 4
test si, si
jne 0x48dbc5
xor ecx, ecx
jmp 0x48dbf0
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x48de97
mov byte [ebp - 4], 3
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x48ded1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x814]
push str.HITTEST__lu.tmp
push eax
call fcn.00481b50
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00481a50
add eax, 0x10
add esp, 0x10
mov dword [ebp - 0x81c], eax
push 0x5c
push 0x2f
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 5
call fcn.0048e030
mov esi, dword [ebp - 0x814]
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x824], eax
call fcn.00481a50
add eax, 0x10
add esp, 4
mov dword [ebp - 0x818], eax
push 0x5c
push 0x2f
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 6
call fcn.0048e030
push 0x52980c
lea ecx, [ebp - 0x818]
call fcn.0048e0e0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004dc680
mov edi, dword [ebp - 0x818]
lea eax, [ebp - 0x810]
add esp, 0xc
push edi
push dword [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x48dedb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x820]
call fcn.00481910
test al, al
jne 0x48dd39
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48dd17
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x820]
call fcn.00482220
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48dd53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x81c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48dd70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 8
lea ebx, [eax - 0x10]
cmp ebx, ecx
je 0x48dddb
mov esi, dword [ebp - 0x824]
cmp dword [esi + 0xc], 0
jl 0x48ddc6
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x48ddc6
push ebx
call fcn.00481a50
add esp, 4
mov dword [ebp - 0x824], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48ddc1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x824]
lea esi, [eax + 0x10]
jmp 0x48dddb
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
push eax
call fcn.00482220
mov esi, dword [ebp - 0x814]
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x48ddef
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x82
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x48de1e
push eax
mov dword [ebp - 0x82c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x48de63
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48de63
push esi
call ebx
test eax, eax
je 0x48de63
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x48de58
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48de63
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48de7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x828]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x48deaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48deaf
lea esi, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48deaf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x82c]
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.004bd1b9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
int3