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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ee2
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x58d984]
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 0x4120df
push 2
push dword [edi]
call fcn.0051797b
add esp, 8
test eax, eax
jne 0x4120df
push 6
push dword [edi]
call fcn.0051797b
add esp, 8
test eax, eax
jne 0x4120df
lea eax, [ebp - 0x828]
push edi
push eax
call fcn.00411b90
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x828]
mov edx, 0x546aa0
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x411ddd
test si, si
je 0x411dd9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x411ddd
add ecx, 4
add edx, 4
test si, si
jne 0x411db7
xor ecx, ecx
jmp 0x411de2
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4120c7
mov edx, str.HFS
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x411e1b
test si, si
je 0x411e17
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x411e1b
add ecx, 4
add edx, 4
test si, si
jne 0x411df5
xor ecx, ecx
jmp 0x411e20
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4120c7
mov byte [ebp - 4], 3
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x412101
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.004047e0
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00408090
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.00412120
mov esi, dword [ebp - 0x814]
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x824], eax
call fcn.00408090
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.00412120
push 0x546974
lea ecx, [ebp - 0x818]
call fcn.004121d0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0050ce60
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.004048c0
mov ecx, eax
test ecx, ecx
je 0x41210b
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.00404540
test al, al
jne 0x411f69
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f47
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x820]
call fcn.00408420
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411f83
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 0x411fa0
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 0x41200b
mov esi, dword [ebp - 0x824]
cmp dword [esi + 0xc], 0
jl 0x411ff6
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x411ff6
push ebx
call fcn.00408090
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 0x411ff1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x824]
lea esi, [eax + 0x10]
jmp 0x41200b
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
push eax
call fcn.00408420
mov esi, dword [ebp - 0x814]
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41201f
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 0x41204e
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 0x412093
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412093
push esi
call ebx
test eax, eax
je 0x412093
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412088
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412093
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 0x4120aa
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 0x4120df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4120df
lea esi, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4120df
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.004eda39
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
int3