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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6675fc
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x750990]
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.00408f00
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4db623
mov eax, dword [ebp - 0x2c]
and eax, 1
je 0x4db623
mov ecx, dword [ebp - 0x2c]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0041ae70
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.0041a9f0
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x54]
call fcn.0041af10
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.0041afb0
lea ecx, [ebp - 0x54]
call fcn.0041ae70
push eax
call fcn.0044b4f0
movzx eax, al
test eax, eax
jne 0x4db67a
lea ecx, [ebp - 0x54]
call fcn.0041ae70
push eax
call fcn.0044b5a0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.0044b860
movzx edx, al
test edx, edx
je 0x4db6a5
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.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4db815
mov dword [ebp - 0x30], 0x104
push 0x105
call fcn.00504e99
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x4db80b
push 0x105
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.0062db60
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.0041a9a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x6c81bc]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.0041b220
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.0041ae70
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4db74f
mov dword [ebp - 0x3c], 0
jmp 0x4db7a0
mov edx, dword [ebp - 0x34]
push edx
call fcn.0062eae8
add esp, 4
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3fffffff
jle 0x4db773
mov dword [ebp - 0x38], 0
jmp 0x4db79a
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.0062f6a0
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.00407a50
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.00631bdb
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.004dbab0
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 0x4db7ed
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x58]
jne 0x4db7ed
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00504e94
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.0041a9d0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.0044b8b0
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0041a9d0
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.0062dc28
mov esp, ebp
pop ebp
ret 8