Function at 0x48e680
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5664e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, ecx
mov byte [ebp - 0xd], 0
push esi
mov al, byte [ebx + 0xe]
and al, 7
cmp al, 3
jne 0x48e977
cmp byte [ebx + 0x5c], 0
je 0x48e977
cmp dword [ebx + 0x4c], 7
lea eax, [ebx + 0x38]
jbe 0x48e6c5
mov eax, dword [eax]
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48e977
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48e740
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x48e723
lea eax, [ebx + 0x50]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x48e723
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48e740
test esi, esi
je 0x48e72e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x58]
push edi
push 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
call fcn.00491411
mov edx, dword [ebp - 0x24]
add esp, 4
mov ecx, dword [ebp - 0x28]
sub edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edx
lea edi, [edx + 1]
cmp dword [ebp - 0x1c], edi
cmovae edi, dword [ebp - 0x1c]
test edi, edi
jne 0x48e78b
push ecx
call fcn.004957c3
add esp, 4
xor ecx, ecx
jmp 0x48e797
push edi
push ecx
call fcn.004a0848
add esp, 8
mov ecx, eax
mov edx, dword [ebp - 0x14]
lea eax, [edi + ecx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
lea eax, [edx + 1]
add eax, ecx
mov dword [ebp - 0x24], eax
mov byte [ecx + edx], 0xef
mov ecx, dword [ebp - 0x20]
mov eax, ecx
mov edi, dword [ebp - 0x24]
sub eax, edi
cmp eax, 1
jge 0x48e823
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x48e7e5
cmp dword [ebp - 0x30], edx
jne 0x48e7e0
push 1
call fcn.00491411
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
jmp 0x48e7ee
sub ecx, edx
lea eax, [ecx + 1]
shr eax, 1
add ecx, eax
sub edi, edx
lea eax, [edi + 1]
cmp ecx, eax
cmovae eax, ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x48e80c
push edx
call fcn.004957c3
add esp, 4
xor eax, eax
jmp 0x48e816
push eax
push edx
call fcn.004a0848
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
add edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x24], eax
mov byte [edi], 0xbb
mov ecx, dword [ebp - 0x20]
mov eax, ecx
mov edi, dword [ebp - 0x24]
sub eax, edi
cmp eax, 1
jge 0x48e8a0
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x48e862
cmp dword [ebp - 0x30], edx
jne 0x48e85d
push 1
call fcn.00491411
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
jmp 0x48e86b
sub ecx, edx
lea eax, [ecx + 1]
shr eax, 1
add ecx, eax
sub edi, edx
lea eax, [edi + 1]
cmp ecx, eax
cmovae eax, ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x48e889
push edx
call fcn.004957c3
add esp, 4
xor eax, eax
jmp 0x48e893
push eax
push edx
call fcn.004a0848
add esp, 8
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
add edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x24], eax
mov ecx, ebx
lea eax, [ebp - 0x30]
mov byte [edi], 0xbf
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x44], 0x144
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0
call fcn.0048caf0
test al, al
je 0x48e929
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x30]
sub edi, dword [ebp - 0x28]
call fcn.0048df10
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x48e92c
mov al, byte [ebp - 0xd]
push dword [ebp - 0x54]
mov byte [ebp - 0xd], al
call fcn.004957c3
push 1
push dword [ebp - 0x58]
call fcn.00491173
push dword [ebp - 0x28]
call fcn.004957c3
push 1
push dword [ebp - 0x2c]
call fcn.00491173
mov bl, byte [ebp - 0xd]
add esp, 0x18
pop edi
test esi, esi
je 0x48e97a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret