Function at 0x4cc9b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f88bc
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x11], 0
call fcn.00406200
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4cca23
mov eax, dword [ebp - 0x2c]
and eax, 1
je 0x4cca23
mov ecx, dword [ebp - 0x2c]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x1c]
add edx, 4
push edx
lea ecx, [ebp - 0x54]
call fcn.00415330
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x54]
call fcn.00415890
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00415930
lea ecx, [ebp - 0x54]
call fcn.004157f0
push eax
call fcn.00443f80
movzx eax, al
test eax, eax
jne 0x4cca7a
lea ecx, [ebp - 0x54]
call fcn.004157f0
push eax
call fcn.00444030
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00444300
movzx edx, al
test edx, edx
je 0x4ccaa5
lea eax, [ebp - 0x68]
mov dword [ebp - 0x20], eax
push 0
push 0x22
push 2
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0x40000000
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4ccc17
mov dword [ebp - 0x30], 0x104
push 0x105
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4ccc0d
push 0x105
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004152e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x5423d4]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00415bb0
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.004157f0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4ccb4f
mov dword [ebp - 0x3c], 0
jmp 0x4ccba1
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3fffffff
jle 0x4ccb74
mov dword [ebp - 0x38], 0
jmp 0x4ccb9b
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.004e13c0
mov dword [ebp - 0x5c], esp
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x28]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004060d0
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0x105
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.004cceb0
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ccbef
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x58]
jne 0x4ccbef
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00415310
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.00444350
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00415310
mov al, byte [ebp - 0x12]
lea esp, [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 8