Function at 0x4423c1
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.00468220
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
mov ecx, esi
call fcn.00440be2
test al, al
je 0x442447
cmp dword [esi + 0x20], 8
jb 0x44241a
mov eax, dword [esi + 0xc]
jmp 0x44241d
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 0x442463
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.00466e81
add ebp, 0x3d4
leave
ret 4
cmp dword [esi + 0x74], 1
jbe 0x4424a3
mov eax, dword [esi + 0x44]
push 1
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043fd37
test eax, eax
je 0x442447
mov ax, word [esi + 0x74]
dec ax
movzx eax, ax
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.0043fceb
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.0043fff8
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.0043fd37
test eax, eax
je 0x442447
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 0x442506
cmp dword [esi + 0x74], 1
jne 0x4424f8
push edi
push edi
push dword [esi + 0x44]
mov ecx, esi
push dword [ebp - 0x64]
call fcn.0043fd37
test eax, eax
je 0x442447
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4425a8
mov ecx, dword [ebp - 0x74]
call fcn.0043fff8
mov ebx, eax
mov eax, ecx
add ebx, dword [eax + 0x3c]
add ebx, dword [ebp - 0x7c]
cmp dword [esi + 0x20], 8
jb 0x442523
mov eax, dword [esi + 0xc]
jmp 0x442526
lea eax, [esi + 0xc]
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x44243e
push 1
push edi
push ebx
push eax
mov ecx, esi
call fcn.0043fd37
test eax, eax
je 0x442447
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x44257f
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 0x442596
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 0x442565
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.00441810
lea ebx, [esi + 0x58]
mov eax, dword [ebx + 0x18]
push ebx
push dword [eax]
lea ecx, [ebp - 0x6c]
call fcn.004401db
push ebx
push dword [ebx + 0x18]
jmp 0x442600
lea ecx, [ebp - 0x6c]
call fcn.004400ce
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x4425f4
mov ecx, eax
call fcn.00440dce
push dword [ebp - 0x7c]
call fcn.004666eb
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.0043fe96
push ebx
push dword [ebx + 0x18]
lea ecx, [ebp - 0x78]
call fcn.004401db
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0043fe6f
test al, al
je 0x4425d2
mov ecx, ebx
call fcn.00441895
push edi
push edi
push dword [esi + 0x44]
mov ecx, esi
push dword [esi + 0x38]
mov dword [ebp - 0x80], edi
call fcn.0043fd37
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.004422bf
xor eax, eax
inc eax
jmp 0x442449