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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x4d61d4]
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]
test edi, edi
jne 0x42591c
xor eax, eax
jmp 0x425c08
cmp word [edi], 0
je 0x425915
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425927
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x425915
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4ac5d4
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425982
test al, 1
je 0x425982
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x440], 0
mov word [ebp - 0x444], ax
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x89c]
call fcn.00425270
mov ecx, dword [ebp - 0x440]
test eax, eax
je 0x425ba7
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x43c]
test edx, edx
je 0x425a35
mov eax, dword [ebp - 0x89c]
shr eax, 4
and eax, 1
je 0x425a35
cmp word [ebp - 0x870], 0x2e
jne 0x425a35
mov ax, word [ebp - 0x86e]
test ax, ax
je 0x425a0d
cmp ax, 0x2e
jne 0x425a35
cmp word [ebp - 0x86c], 0
jne 0x425a35
test ecx, ecx
jne 0x425a18
xor esi, esi
jmp 0x425b9f
lea eax, [ebp - 0x89c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, eax
mov dword [ebp - 0x43c], edx
mov esi, edx
jmp 0x425b99
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x89c]
call fcn.004253b0
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea esi, [ecx + 2]
mov word [ebp - 0x438], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425a83
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.004077e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8a0]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4d6088]
je 0x425ad5
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x425ad5
mov eax, dword [ebp - 0x8a0]
add eax, 0xfffffff4
push eax
call fcn.00439e40
add esp, 4
cmp dword [ebp - 0x43c], 0
je 0x425b0b
mov eax, dword [ebp - 0x89c]
shr eax, 4
and eax, 1
je 0x425b0b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.004258e0
add esp, 4
jmp 0x425b53
cmp dword [ebp - 0x424], 8
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
push esi
call ebx
test eax, eax
jne 0x425b53
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425b53
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x425b48
push esi
call ebx
test eax, eax
jne 0x425b53
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x440]
test eax, eax
jne 0x425b61
xor esi, esi
jmp 0x425b84
cmp dword [ebp - 0x43c], 0
jne 0x425b6e
xor esi, esi
jmp 0x425b84
lea ecx, [ebp - 0x89c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov dword [ebp - 0x43c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00404220
mov edx, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x440]
test esi, esi
jne 0x4259d5
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x43c], 0
test ecx, ecx
je 0x425bcd
cmp ecx, 0xffffffff
je 0x425bcd
push ecx
call esi
mov dword [ebp - 0x440], 0
push edi
call fcn.00425150
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x43c], 0
test eax, eax
je 0x425c03
cmp eax, 0xffffffff
je 0x425c03
push eax
call esi
mov dword [ebp - 0x440], 0
mov eax, 1
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.0043a373
mov esp, ebp
pop ebp
ret