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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64438c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x721970]
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.00408620
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00419160
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4d2e93
mov eax, dword [ebp - 0x2c]
and eax, 1
je 0x4d2e93
mov ecx, dword [ebp - 0x2c]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00419160
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.00418ce0
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x54]
call fcn.00419200
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.004192a0
lea ecx, [ebp - 0x54]
call fcn.00419160
push eax
call fcn.00448400
movzx eax, al
test eax, eax
jne 0x4d2eea
lea ecx, [ebp - 0x54]
call fcn.00419160
push eax
call fcn.004484b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00448770
movzx edx, al
test edx, edx
je 0x4d2f15
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.00419160
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4d3085
mov dword [ebp - 0x30], 0x104
push 0x105
call fcn.004e69f9
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4d307b
push 0x105
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.0060f700
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00418c90
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x6a01d8]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00419510
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.00419160
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4d2fbf
mov dword [ebp - 0x3c], 0
jmp 0x4d3010
mov edx, dword [ebp - 0x34]
push edx
call fcn.00610037
add esp, 4
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3fffffff
jle 0x4d2fe3
mov dword [ebp - 0x38], 0
jmp 0x4d300a
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.00610b80
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.00407150
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 fcn.0061376b
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.004d3320
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 0x4d305d
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x58]
jne 0x4d305d
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.004e69f4
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00418cc0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.004487c0
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00418cc0
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.0060f7c8
mov esp, ebp
pop ebp
ret 8