Function at 0x448e60
Capabilities:
Check if file exists
Clear file content
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x56e17c]
push edi
push 0
push 0x80
push 4
push 0
push 3
mov eax, edx
push 0x40000000
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
mov dword [0x56e220], eax
cmp edi, 0xffffffff
jne 0x448eef
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44924d
push 0
and eax, 6
or eax, 0x80
push eax
push 4
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call ebx
mov dword [0x56e220], eax
cmp edi, 0xffffffff
je 0x44924d
cmp dword [0x56e908], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x448f1c
push 0
push 0
push 0
push 0x7ee
push esi
call ebx
push eax
push 0x7ed
push esi
call ebx
mov ecx, esi
call fcn.0044f1b0
cmp dword [0x56e6d0], 0
je 0x448f31
mov edx, 1
mov ecx, esi
call fcn.0044d9e0
push 0
push 0
push 0x7d6
push esi
call ebx
lea ecx, [eax + 1]
push ecx
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0x886
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x448f84
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0x56e220], eax
jmp 0x44921e
mov eax, dword [ebp + 8]
lea esi, [eax + eax*4]
shl esi, 4
mov eax, dword [esi + 0x53b698]
test al, 8
je 0x44905e
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx*2 + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
mov dword [ebp + 0xc], eax
call ecx
shr eax, 1
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esi + 0x53b698]
mov edx, eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], edx
test cl, 0x20
je 0x44900d
push 0
test cl, 0x10
lea ecx, [ebp - 8]
push ecx
push 2
je 0x449002
push 0x408a60
jmp 0x449007
push 0x408a64
push edi
call eax
mov edx, dword [ebp - 0x10]
test byte [esi + 0x53b698], 0x10
mov esi, dword [ebp + 0xc]
je 0x449027
lea eax, [edx + edx]
push eax
push esi
push esi
call fcn.0050f0cc
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x56e220], eax
call esi
push ebx
call esi
mov esi, dword [ebp + 0xc]
jmp 0x44921e
test al, 2
je 0x44909a
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test byte [esi + 0x53b698], 4
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x449088
push 0
lea eax, [ebp - 8]
push eax
push 3
push 0x408a68
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call esi
jmp 0x449209
test al, 0x40
je 0x4491f1
mov esi, dword [esi + 0x53b69c]
lea eax, [ecx*2 + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
mov dword [ebp - 0x10], 0
call eax
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
mov dword [ebp - 4], eax
call ecx
shr eax, 1
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp esi, 0xfde8
je 0x44910b
cmp esi, 0xd698
je 0x44910b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push ebx
call fcn.00518020
add esp, 0xc
jmp 0x449128
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp esi, 0xfde8
je 0x449189
cmp esi, 0xd698
je 0x449189
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
jne 0x4491a9
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [ebp - 0x10], 0
jmp 0x4491ac
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
jmp 0x4491ac
mov esi, dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10], 0
je 0x4491e1
push 0xc360
push 0x408a6c
push 8
call fcn.00445ff0
add esp, 0xc
cmp eax, 1
je 0x4491e1
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], 1
jmp 0x449217
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 8]
push eax
push esi
jmp 0x449201
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0x56e220], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x44924d
cmp dword [ebp + 0x10], 0
jne 0x449241
push 0
push 0
push 0x7de
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret