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

Disassembly:
push ebp
lea ebp, [esp - 0x3d4]
sub esp, 0x454
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x3d0], eax
push ebx
mov ebx, dword [ebp + 0x3dc]
push esi
push edi
xor edi, edi
push 0x2e
lea eax, [ebp - 0x60]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x74], edi
call fcn.00468830
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
mov ecx, esi
call fcn.00440ecf
test al, al
je 0x44266d
cmp dword [esi + 0x20], 8
jb 0x442640
mov eax, dword [esi + 0xc]
jmp 0x442643
lea eax, [esi + 0xc]
push edi
push 0x80
push 3
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x64], ebx
cmp ebx, 0xffffffff
jne 0x442689
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
xor eax, eax
mov ecx, dword [ebp + 0x3d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467491
add ebp, 0x3d4
leave
ret 4
cmp dword [esi + 0x74], 1
jbe 0x4426c9
mov eax, dword [esi + 0x44]
push 1
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043ff4e
test eax, eax
je 0x44266d
mov ax, word [esi + 0x74]
dec ax
movzx eax, ax
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.0043ff02
push edi
lea eax, [ebp - 0x70]
push eax
push 0x2e
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x74]
call fcn.0044021c
mov ecx, dword [ebp - 0x68]
push edi
sub ecx, eax
push edi
push ecx
mov dword [ebp - 0x7c], ecx
push ebx
mov ecx, esi
call fcn.0043ff4e
test eax, eax
je 0x44266d
mov eax, dword [ebp - 0x74]
mov ebx, dword [eax + 0x3c]
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x68]
add ebx, ecx
cmp ebx, eax
jne 0x44272c
cmp dword [esi + 0x74], 1
jne 0x44271e
push edi
push edi
push dword [esi + 0x44]
mov ecx, esi
push dword [ebp - 0x64]
call fcn.0043ff4e
test eax, eax
je 0x44266d
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4427ce
mov ecx, dword [ebp - 0x74]
call fcn.0044021c
mov ebx, eax
mov eax, ecx
add ebx, dword [eax + 0x3c]
add ebx, dword [ebp - 0x7c]
cmp dword [esi + 0x20], 8
jb 0x442749
mov eax, dword [esi + 0xc]
jmp 0x44274c
lea eax, [esi + 0xc]
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x442664
push 1
push edi
push ebx
push eax
mov ecx, esi
call fcn.0043ff4e
test eax, eax
je 0x44266d
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4427a5
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x70], edi
je 0x4427bc
push edi
lea eax, [ebp - 0x70]
push eax
push 0x400
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x68]
call ebx
test eax, eax
jne 0x44278b
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
mov ecx, esi
call fcn.00441a35
lea ebx, [esi + 0x58]
mov eax, dword [ebx + 0x18]
push ebx
push dword [eax]
lea ecx, [ebp - 0x6c]
call fcn.004403ff
push ebx
push dword [ebx + 0x18]
jmp 0x442826
lea ecx, [ebp - 0x6c]
call fcn.004402f2
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x44281a
mov ecx, eax
call fcn.00440b86
push dword [ebp - 0x7c]
call fcn.00466cfb
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.004400ba
push ebx
push dword [ebx + 0x18]
lea ecx, [ebp - 0x78]
call fcn.004403ff
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00440093
test al, al
je 0x4427f8
mov ecx, ebx
call fcn.00441aba
push edi
push edi
push dword [esi + 0x44]
mov ecx, esi
push dword [esi + 0x38]
mov dword [ebp - 0x80], edi
call fcn.0043ff4e
push edi
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0x50]
lea eax, [ebp - 0x60]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [ebp - 0x52]
push eax
mov ecx, esi
call fcn.004424e5
xor eax, eax
inc eax
jmp 0x44266f