Function at 0x44e830
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 [0x4ed8d0]
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.004535d0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
mov ecx, edi
call fcn.0044e7e8
test al, al
je 0x44e8b1
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x44e88a
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 0x44e8c4
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.004535b3
leave
ret 4
cmp dword [edi + 0x58], 1
jbe 0x44e90e
push 1
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044edc9
test eax, eax
je 0x44e8b1
mov ax, word [edi + 0x58]
dec ax
movzx eax, ax
push eax
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.0044e79a
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.0044e1f2
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.0044edc9
test eax, eax
je 0x44e8b1
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 0x44e97f
cmp dword [edi + 0x58], 1
jne 0x44e973
push 0
push 0
push dword [edi + 0x40]
mov ecx, edi
push ebx
call fcn.0044edc9
test eax, eax
je 0x44e8b1
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x44ea34
mov esi, dword [ebp - 0x440]
mov ecx, esi
call fcn.0044e1f2
add eax, dword [esi + 0x38]
lea ecx, [edi + 8]
add dword [ebp - 0x444], eax
cmp dword [ecx + 0x14], 8
jb 0x44e9a0
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 0x44e8a8
push 1
push 0
push dword [ebp - 0x444]
mov ecx, edi
push esi
call fcn.0044edc9
test eax, eax
je 0x44e8b1
jmp 0x44ea06
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 0x44ea26
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 0x44e9e0
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.0044ead3
lea ebx, [edi + 0x54]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x438], eax
cmp eax, ecx
je 0x44ea83
mov esi, dword [eax + 0x40]
test esi, esi
je 0x44ea6e
mov ecx, esi
call fcn.0044d42b
push esi
call fcn.00453342
pop ecx
lea ecx, [ebp - 0x438]
call fcn.0044d5ae
mov eax, dword [ebp - 0x438]
cmp eax, dword [ebx]
jne 0x44ea59
mov ecx, ebx
call fcn.0044f25c
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.0044edc9
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.0044e30a
xor eax, eax
inc eax
jmp 0x44e8b3