Function at 0x44d98f
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 [0x4ed0f0]
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.00474cd0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
mov ecx, edi
call fcn.0044d947
test al, al
je 0x44da10
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x44d9e9
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 0x44da23
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.00473c52
leave
ret 4
cmp dword [edi + 0x58], 1
jbe 0x44da6d
push 1
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044df28
test eax, eax
je 0x44da10
mov ax, word [edi + 0x58]
dec ax
movzx eax, ax
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.0044d8f9
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.0044d351
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.0044df28
test eax, eax
je 0x44da10
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 0x44dade
cmp dword [edi + 0x58], 1
jne 0x44dad2
push 0
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044df28
test eax, eax
je 0x44da10
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x44db93
mov esi, dword [ebp - 0x440]
mov ecx, esi
call fcn.0044d351
add eax, dword [esi + 0x38]
lea ecx, [edi + 8]
add dword [ebp - 0x444], eax
cmp dword [ecx + 0x14], 8
jb 0x44daff
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 0x44da07
push 1
push 0
push dword [ebp - 0x444]
mov ecx, edi
push esi
call fcn.0044df28
test eax, eax
je 0x44da10
jmp 0x44db65
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 0x44db85
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 0x44db3f
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.0044dc32
lea ebx, [edi + 0x54]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x438], eax
cmp eax, ecx
je 0x44dbe2
mov esi, dword [eax + 0x40]
test esi, esi
je 0x44dbcd
mov ecx, esi
call fcn.0044c58a
push esi
call fcn.00472d16
pop ecx
lea ecx, [ebp - 0x438]
call fcn.0044c70d
mov eax, dword [ebp - 0x438]
cmp eax, dword [ebx]
jne 0x44dbb8
mov ecx, ebx
call fcn.0044e3bb
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.0044df28
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.0044d469
xor eax, eax
inc eax
jmp 0x44da12