Function at 0x451440
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x608be4
call fcn.00465b38
sub esp, 0x4c
push ebx
push esi
push 0x69dc58
lea ecx, [ebp - 0x10]
call fcn.005ece05
push dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
je 0x45148e
lea eax, [ebp - 0x24]
push eax
call fcn.004513b6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.005eced8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.005ecd91
jmp 0x451496
lea ecx, [ebp - 0x10]
call fcn.005ecf28
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4514cb
test al, 0x10
je 0x4514bb
push 0x1f1
push 6
call fcn.00450b92
pop ecx
pop ecx
jmp 0x45177e
test al, 1
je 0x4514cb
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x24], esi
jne 0x4514f7
push 0x205
push 4
jmp 0x4514af
push edi
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0045179a
add esp, 0xc
test eax, eax
je 0x4515f3
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x10000
push esi
mov edi, esi
call fcn.005ed45a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x4515fc
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
jl 0x4515e2
jg 0x45154f
cmp dword [ebp + 0x10], ebx
jbe 0x4515e2
cmp dword [ebp + 0x14], ebx
jg 0x45155e
jl 0x45155b
cmp dword [ebp + 0x10], esi
jae 0x45155e
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0x10], edi
push edi
push ebx
push dword [ebp - 0x18]
sbb dword [ebp + 0x14], ebx
call fcn.00466010
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ebx
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4515bb
cmp dword [ebp - 0x14], edi
jb 0x4515c4
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4515cb
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jb 0x4515db
cmp dword [ebp + 0x14], ebx
jg 0x45155e
jl 0x4515e2
jmp 0x451546
push 0x231
push 7
jmp 0x4515d2
push 0x237
jmp 0x4515c0
push 0x23f
push 8
call fcn.00450b92
pop ecx
pop ecx
jmp 0x4515e9
push 0x245
jmp 0x4515d0
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
call fcn.005ed483
jmp 0x451609
push 0x211
push 0xe
jmp 0x451603
push 0x21b
push 9
call fcn.00450b92
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x45177b
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x451776
lea ecx, [ebp - 0x58]
call fcn.0053cdd0
lea eax, [ebp - 0x10]
lea ecx, [ebp + 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.005ecafe
push 0x5c
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.005e1d1b
cmp eax, 0xffffffff
je 0x45167d
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x18]
call fcn.005e1c4f
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.005eced8
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.005ecd91
push ebx
lea ecx, [ebp - 0x58]
push dword [ebp - 0x10]
call fcn.0053d000
test eax, eax
je 0x45169c
push dword [ebp + 0x18]
lea ecx, [ebp - 0x58]
call fcn.0053de60
test eax, eax
jne 0x4516ad
push 0x268
push 4
call fcn.00450b92
pop ecx
mov dword [ebp - 0x1c], ebx
pop ecx
push 0x69dc58
lea ecx, [ebp + 8]
call fcn.005ece05
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x58]
push eax
lea eax, [ebp + 8]
push eax
push ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], 1
call fcn.0053f470
lea eax, [ebp + 0x18]
push 0x66af18
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.005ed036
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.005ecfd0
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 7
call fcn.005eced8
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 6
call fcn.005ecd91
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.005ecd91
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call fcn.00466804
pop ecx
cmp eax, ebx
pop ecx
je 0x451753
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x451753
push dword [ebp + 0x18]
call esi
push 0x277
push 4
call fcn.00450b92
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005ecd91
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.005ecd91
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0053cef0
push dword [ebp - 0x10]
call esi
mov ebx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005ecd91
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret