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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f752
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4d8
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x4bc], edi
jne 0x4523cb
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x10], 0
jne 0x4524d3
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4523f3
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x452777
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0xc], 0
mov dword [ebp - 0x4bc], eax
jne 0x452446
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x452426
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x452777
shr eax, 4
not al
and al, 1
je 0x452777
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x452455
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00451610
push dword [ebp - 0x4bc]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00450c80
mov ecx, eax
call fcn.00450ff0
mov ecx, edi
call fcn.00450c80
lea ecx, [ebp - 0x140]
push ecx
push 0x59fdc4
mov ecx, eax
call fcn.004510e0
cmp byte [ebp - 0x24], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4524cc
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
cmp eax, ecx
je 0x4524cc
push eax
call fcn.004e1b56
add esp, 4
xor al, al
jmp 0x452779
cmp byte [ebx + 0xc], 0
jne 0x452508
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4524e8
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x452777
shr eax, 4
not al
and al, 1
je 0x452777
mov eax, dword [esi + 4]
add eax, 2
mov dword [ebp - 0x4c4], eax
add eax, eax
push eax
mov dword [ebp - 0x4c0], eax
call fcn.004e1b5b
mov edi, eax
add esp, 4
lea eax, [esi + 0xc]
test edi, edi
jne 0x452576
cmp byte [esi + 0x11c], 0
jne 0x45253a
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00451610
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x140]
push eax
push 0x59fdac
mov dword [ebp - 4], 1
call fcn.00450c80
jmp 0x45249c
cmp byte [esi + 0x11c], 0
jne 0x452582
mov eax, dword [esi + 8]
add eax, 4
push eax
push dword [ebp - 0x4c4]
push edi
call fcn.004e1af2
mov eax, dword [ebp - 0x4c0]
xor ecx, ecx
xorps xmm0, xmm0
add esp, 0xc
mov word [eax + edi - 2], cx
mov eax, 0x454
movups xmmword [ebp - 0x4e0], xmm0
mov word [ebp - 0x4d4], ax
lea eax, [ebp - 0x4e4]
push eax
movq qword [ebp - 0x4d0], xmm0
mov word [ebp - 0x4c8], cx
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 0x4e0], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov dword [ebp - 0x4c0], eax
call fcn.004e1b56
mov edi, dword [ebp - 0x4c0]
add esp, 4
test edi, edi
je 0x452777
lea eax, [esi + 0xc]
cmp edi, 0x402
jne 0x4526cd
cmp byte [esi + 0x11c], 0
jne 0x452628
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x140]
push eax
call fcn.00451610
push 0x59fd90
lea ecx, [ebp - 0x390]
mov dword [ebp - 4], 2
call fcn.0044fe90
mov esi, eax
push 0x402
push 0x5986d4
push esi
mov byte [ebp - 4], 3
call fcn.00450580
add esp, 0xc
push 0x599cb8
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
lea eax, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x452693
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x140]
add eax, 4
push ecx
mov ecx, dword [ebp - 0x4bc]
push eax
call fcn.00450fc0
mov ecx, eax
call fcn.004510e0
lea ecx, [ebp - 0x390]
call fcn.00424a60
lea ecx, [ebp - 0x140]
call fcn.00424a60
xor al, al
jmp 0x452779
cmp byte [esi + 0x11c], 0
jne 0x4526d9
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x268]
push eax
call fcn.00451610
push 0x59fd90
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 4], 4
call fcn.0044fe90
mov esi, eax
push edi
push 0x5986d4
push esi
mov byte [ebp - 4], 5
call fcn.00450580
add esp, 0xc
push 0x599cb8
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
lea eax, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x452740
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x268]
add eax, 4
push ecx
mov ecx, dword [ebp - 0x4bc]
push eax
call fcn.00450c80
mov ecx, eax
call fcn.004510e0
lea ecx, [ebp - 0x4b8]
call fcn.00424a60
lea ecx, [ebp - 0x268]
call fcn.00424a60
xor al, al
jmp 0x452779
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc