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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6c4c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x56f734]
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.00405870
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.004147c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4cb243
mov eax, dword [ebp - 0x2c]
and eax, 1
je 0x4cb243
mov ecx, dword [ebp - 0x2c]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.004147c0
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.00414300
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x54]
call fcn.00414860
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00414900
lea ecx, [ebp - 0x54]
call fcn.004147c0
push eax
call fcn.0043f250
movzx eax, al
test eax, eax
jne 0x4cb29a
lea ecx, [ebp - 0x54]
call fcn.004147c0
push eax
call fcn.0043f300
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.0043f470
movzx edx, al
test edx, edx
je 0x4cb2c5
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.004147c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4cb437
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 0x4cb42d
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.004142b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x53f69c]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00414ba0
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.004147c0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4cb36f
mov dword [ebp - 0x3c], 0
jmp 0x4cb3c1
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 0x4cb394
mov dword [ebp - 0x38], 0
jmp 0x4cb3bb
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.004dfa20
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.00405740
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.004cb6d0
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 0x4cb40f
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x58]
jne 0x4cb40f
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.004142e0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.0043f4c0
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004142e0
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.004df9ac
mov esp, ebp
pop ebp
ret 8