Function at 0x44de28
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x2e
lea eax, [ebp - 0x434]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x440], ebx
call fcn.004526c0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
mov ecx, edi
call fcn.0044dde0
test al, al
je 0x44dea9
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x44de82
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44debc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004526a3
leave
ret 4
cmp dword [edi + 0x58], 1
jbe 0x44df06
push 1
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044e3c1
test eax, eax
je 0x44dea9
mov ax, word [edi + 0x58]
dec ax
movzx eax, ax
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.0044dd92
lea eax, [ebp - 0x43c]
push 0
push eax
push 0x2e
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x440]
mov ecx, esi
call fcn.0044d7ea
mov ecx, dword [ebp - 0x438]
push 0
sub ecx, eax
push 0
push ecx
mov dword [ebp - 0x444], ecx
push ebx
mov ecx, edi
call fcn.0044e3c1
test eax, eax
je 0x44dea9
mov esi, dword [esi + 0x38]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x438]
add ecx, esi
cmp ecx, eax
jne 0x44df77
cmp dword [edi + 0x58], 1
jne 0x44df6b
push 0
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044e3c1
test eax, eax
je 0x44dea9
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x44e02c
mov esi, dword [ebp - 0x440]
mov ecx, esi
call fcn.0044d7ea
add eax, dword [esi + 0x38]
lea ecx, [edi + 8]
add dword [ebp - 0x444], eax
cmp dword [ecx + 0x14], 8
jb 0x44df98
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44dea0
push 1
push 0
push dword [ebp - 0x444]
mov ecx, edi
push esi
call fcn.0044e3c1
test eax, eax
je 0x44dea9
jmp 0x44dffe
push 0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x43c]
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x43c], 0
je 0x44e01e
push 0
lea eax, [ebp - 0x43c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44dfd8
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x440]
mov ecx, edi
call fcn.0044e0cb
lea ebx, [edi + 0x54]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x438], eax
cmp eax, ecx
je 0x44e07b
mov esi, dword [eax + 0x40]
test esi, esi
je 0x44e066
mov ecx, esi
call fcn.0044ca23
push esi
call fcn.0045269e
pop ecx
lea ecx, [ebp - 0x438]
call fcn.0044cba6
mov eax, dword [ebp - 0x438]
cmp eax, dword [ebx]
jne 0x44e051
mov ecx, ebx
call fcn.0044e854
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x40]
mov ecx, edi
push dword [edi + 0x34]
mov dword [ebp - 0x448], ebx
call fcn.0044e3c1
push ebx
lea eax, [ebp - 0x448]
push eax
push dword [edi + 0x4c]
lea ecx, [ebp - 0x434]
push ecx
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, word [ebp - 0x426]
push edx
mov ecx, edi
call fcn.0044d902
xor eax, eax
inc eax
jmp 0x44deab