Function at 0x4b3490
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529631
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x56f28c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4b34f4
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4b34f4
push 0x80
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004e3c70
mov dword [ebp - 4], 0
mov byte [ebp - 0x19], 0x4c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
push 0x53f5bc
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.004b3880
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b359f
mov eax, dword [ebp - 0x14]
push eax
call fcn.004feb13
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005011e0
add esp, 0xc
push 1
lea edx, [ebp - 0x19]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004e41c0
test eax, eax
jne 0x4b3596
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004e3c90
mov eax, dword [ebp - 0x54]
jmp 0x4b3865
mov dword [ebp - 0x24], 0
jmp 0x4b35bd
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004e3c90
mov eax, dword [ebp - 0x58]
jmp 0x4b3865
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b3787
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4b36c3
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x10]
call fcn.004e45f0
cmp eax, dword [ebp - 0x34]
jne 0x4b36b9
push 0
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
call fcn.004feb13
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x4b36b9
mov dword [ebp - 0x3c], 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b36a7
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x34]
jne 0x4b36a7
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x10]
call fcn.004e45d0
push eax
call fcn.00501b2b
add esp, 0xc
test eax, eax
jne 0x4b36a7
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.005002ea
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
jne 0x4b377b
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b36f4
push 0x80
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.004e45d0
test eax, eax
je 0x4b3779
lea ecx, [ebp - 0x10]
call fcn.004e45f0
test eax, eax
jbe 0x4b3779
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x4b3779
mov dword [ebp - 0x44], 0
push 0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004e45f0
push eax
lea ecx, [ebp - 0x10]
call fcn.004e45d0
push eax
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b376f
lea ecx, [ebp - 0x10]
call fcn.004e45f0
cmp dword [ebp - 0x44], eax
jne 0x4b376f
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b3782
mov dword [ebp - 0x18], 1
jmp 0x4b384d
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4b37c8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b37bc
push 0x80
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004e45d0
test eax, eax
je 0x4b384d
lea ecx, [ebp - 0x10]
call fcn.004e45f0
test eax, eax
jbe 0x4b384d
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x4b384d
mov dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004e45f0
push eax
lea ecx, [ebp - 0x10]
call fcn.004e45d0
push eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b3843
lea ecx, [ebp - 0x10]
call fcn.004e45f0
cmp dword [ebp - 0x4c], eax
jne 0x4b3843
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004e3c90
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc