Function at 0x44e5b0
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a218
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5caea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
cmp byte [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jne 0x44e886
cmp byte [esi + 0xc0], 2
jne 0x44e886
push 0
push 0
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esi]
call edi
test eax, eax
jne 0x44e6d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0044ccb0
push eax
mov edx, str.Cannot_set_file_pointer_3_._Code
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x44e683
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9ce
push edx
push ecx
call fcn.00518d68
add esp, 8
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x44e6d1
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e6c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9d3
push edx
push ecx
call fcn.00518d68
add esp, 8
xor al, al
jmp 0x44e9b1
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [esi + 0x80]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e818
cmp dword [ebp - 0x14], 0
je 0x44e818
push 0
push 0
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi]
call edi
test eax, eax
jne 0x44e783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0044ccb0
push eax
mov edx, str.Cannot_set_file_pointer_4_._Code
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x44e683
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9d8
jmp 0x44e679
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [esi + 0x80]
push dword [eax]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e7aa
cmp dword [ebp - 0x14], 0
jne 0x44e886
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0044ccb0
push eax
mov edx, str.Cannot_write_file__2_._Code
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x44e683
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9dd
jmp 0x44e679
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0044ccb0
push eax
mov edx, str.Cannot_read_file._Code
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x44e683
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9e2
jmp 0x44e679
mov eax, dword [ebp - 0x30]
mov ecx, 0x50
mov edi, dword [esi + 0x98]
mov esi, dword [esi + 0x9c]
push 0
movzx eax, byte [eax + 0x48]
cdq
sub ecx, eax
mov eax, 0
push 0
sbb eax, edx
add edi, ecx
adc esi, eax
push esi
mov esi, dword [ebp - 0x30]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x44e9a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.0044ccb0
push eax
mov edx, str.Cannot_set_file_pointer_5_._Code
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00452b10
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x44e920
mov ecx, esi
call fcn.00448eb0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x44e95a
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e950
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9e7
push edx
push ecx
call fcn.00518d68
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
cmp edx, 8
jb 0x44e6d1
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44e6c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e9ec
jmp 0x44e6c7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518b27
mov esp, ebp
pop ebp
ret 8
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
int3