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

Disassembly:
push 0xa8
mov eax, 0x583b65
call fcn.004fb9d0
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20c], ebx
jle 0x4c1773
xor eax, eax
jmp 0x4c1a57
lea ecx, [ebp - 0xb4]
call fcn.00432a3a
mov dword [ebp - 4], 1
lea eax, [edi + 4]
push ebx
push eax
mov dword [ebp - 0x8c], eax
call fcn.004a08a3
add esp, 4
mov esi, eax
mov ecx, esp
mov dword [ebp - 0x7c], esp
push esi
call fcn.0043479c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.0049bc99
mov byte [ebp - 4], 3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c17db
test al, 1
je 0x4c17db
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp esi, ebx
je 0x4c17e6
push esi
call fcn.004fc324
pop ecx
push dword [ebp - 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c1815
push ecx
lea eax, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.004bb25b
push ecx
lea eax, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
mov dword [ebp - 0x94], ebx
call fcn.004324a9
mov byte [ebp - 4], 5
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.004bb351
mov byte [ebp - 4], 6
push ebx
push dword [ebp - 0x98]
call fcn.004a0856
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x7c], eax
call fcn.004b6f72
mov byte [ebp - 4], 7
mov ecx, dword [edi + 0x210]
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
call dword [eax + 0x40]
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x4c1880
lea eax, [ebp - 0x64]
push 0xfde9
push eax
call fcn.004a08a3
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x88]
call fcn.004fb22e
lea esi, [eax + eax + 4]
push esi
call fcn.004f8908
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xb
push esi
push ebx
push dword [ebp - 0x74]
call fcn.004fc1f0
push 2
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x9c], 0xfeff
call fcn.004fa3ab
lea eax, [esi - 2]
push eax
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x74]
add eax, 2
push eax
call fcn.004fa3ab
add esp, 0x3c
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x22c], ebx
je 0x4c1931
lea eax, [ebp - 0x90]
push eax
push esi
push dword [ebp - 0x74]
add edi, 0x230
push edi
call fcn.004a87b4
add esp, 0x10
push eax
lea ecx, [ebp - 0x78]
call fcn.004a526a
mov edi, dword [ebp - 0x90]
jmp 0x4c1955
lea edi, [esi - 1]
push edi
call fcn.004f8908
pop ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.004a526a
dec esi
push esi
push dword [ebp - 0x74]
push edi
push dword [ebp - 0x78]
call fcn.004fa3ab
add esp, 0x10
mov esi, dword [ebp - 0x7c]
push 0x5a45f4
lea eax, [ebp - 0x84]
push esi
push eax
mov dword [ebp - 0x84], ebx
call fcn.004fe8dd
add esp, 0xc
cmp eax, ebx
jne 0x4c19dc
cmp dword [ebp - 0x84], ebx
je 0x4c19dc
push dword [ebp - 0x84]
push 1
push edi
push dword [ebp - 0x78]
call fcn.0050229d
push dword [ebp - 0x84]
call fcn.004fe512
add esp, 0x14
xor edi, edi
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
push dword [ebp - 0x8c]
call fcn.00433e48
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
call fcn.004b2141
pop ecx
cmp eax, ebx
jne 0x4c19c9
inc edi
cmp edi, 0xa
jl 0x4c19a0
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x94], eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, ebx
je 0x4c19ee
push esi
call fcn.004fc324
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004a5233
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.004a5233
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004a52b6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.004a8760
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00432a92
mov eax, dword [ebp - 0x94]
call fcn.004fba53
ret