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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf425
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x4919cf
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov esi, dword [ebp + 0x24]
push esi
call fcn.00460f10
test al, al
jne 0x491729
test esi, esi
jne 0x491706
xor ecx, ecx
jmp 0x49171f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491710
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00461270
mov dword [ebp - 4], 1
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x491885
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esp
cmp edi, 5
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
seta byte [ebp + 0x28]
mov byte [ebp + 0x1b], 0
add eax, 0xfffffff0
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov dl, byte [ebp + 0x1b]
mov cl, byte [ebp + 0x28]
call fcn.00470d20
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp + 0x1b], 1
push eax
call fcn.00461190
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 5
mov byte [ebp - 4], 1
mov dl, byte [ebp + 0x1b]
mov cl, byte [ebp + 0x28]
call fcn.00470d20
add esp, 4
cmp dword [ebp + 0x44], 1
sete al
mov byte [ebp + 0x48], al
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x4919d9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 7
lea eax, [ebp + 0x2c]
push 8
push 0
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x4919e3
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x491810
xor ecx, ecx
jmp 0x491824
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491815
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.00461270
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 8
lea eax, [ebp + 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, edi
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x48]
call fcn.004726e0
add esp, 0xc
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp + 0x18]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49187e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
xor al, 1
jmp 0x491998
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00461190
lea esi, [eax + 0x10]
mov dword [ebp + 0x28], esi
mov byte [ebp - 4], 0xb
push 0x5e
push esi
call fcn.004abb9e
add esp, 0xc
or edi, 0xffffffff
test eax, eax
je 0x49194b
sub eax, esi
sar eax, 1
cmp eax, edi
je 0x49194b
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x28]
call fcn.0047af00
mov byte [ebp - 4], 0xc
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [edx - 0x10]
mov dword [ebp + 0x48], eax
cmp eax, ecx
je 0x49192d
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x49191e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x49191e
push dword [ebp + 0x48]
call fcn.00461190
add esp, 4
mov dword [ebp + 0x48], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x491916
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x48]
lea esi, [eax + 0x10]
mov dword [ebp + 0x28], esi
jmp 0x49192d
push dword [edx - 0xc]
lea ecx, [ebp + 0x28]
push edx
call fcn.00461270
mov esi, dword [ebp + 0x28]
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49194b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 0
jne 0x49197a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49197a
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491995
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
movzx esi, al
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4919ba
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x44
push 0x80004005
call fcn.00456c80
push 0x80004005
call fcn.00456c80
push eax
call fcn.00456c80
int3