Function at 0x45deb8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
lea eax, [ebp - 0x278]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x45ded7
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 3
push dword [ebp - 8]
push 0x831ed3
push 0x7610c9
lea eax, [ebp - 0x174]
push eax
call fcn.006712b0
add esp, 0x10
push 0
lea edx, [ebp - 0x174]
push edx
call fcn.0066ebe8
add esp, 8
test eax, eax
je 0x45df18
dec dword [ebp - 8]
mov ecx, dword [ebp - 8]
dec ecx
jge 0x45dede
mov eax, dword [ebp - 8]
dec eax
jge 0x45df30
push str.No_update_file_s_.
call fcn.004629c0
pop ecx
xor eax, eax
jmp 0x45e4d3
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x174]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xffffffff
jne 0x45df81
lea eax, [ebp - 0x174]
push eax
push str._s_open_error.
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
call fcn.004629c0
pop ecx
xor eax, eax
jmp 0x45e4d3
push dword [ebp - 0xc]
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0045dce4
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x5550445f
je 0x45dfd2
lea eax, [ebp - 0x174]
push eax
push str._s_format_error.
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
call fcn.004629c0
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e4d3
push dword [ebp - 0xc]
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0045dce4
add esp, 0x10
push 0x104
push 0
push dword [ebp - 4]
call fcn.0066cc88
add esp, 0xc
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.0045dce4
add esp, 0x10
push dword [ebp - 0xc]
push 1
push 0x34
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0045dce4
add esp, 0x10
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x20], ecx
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x45e0a3
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 4]
lea edx, [ebp - 0x174]
push edx
push str._s_deleted_____s_not_found.
push 0xa00988
call fcn.006712b0
add esp, 0x10
push 0xa00988
call fcn.004629c0
pop ecx
lea ecx, [ebp - 0x174]
push ecx
call fcn.0045255c
pop ecx
xor eax, eax
jmp 0x45e4d3
push 0x10000
call fcn.00450918
pop ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x45e0da
push str.memory_allocation_error.
call fcn.004629c0
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e4d3
push dword [ebp - 0xc]
call fcn.0045dc38
pop ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 2
push 0xffffffffffffffff
push 0xffff7ff8
push dword [ebp - 0xc]
call fcn.0045dbe8
add esp, 0x10
push dword [ebp - 0xc]
call fcn.0045dc38
pop ecx
mov dword [0x760e0c], eax
mov edx, dword [0x760e0c]
test edx, edx
jne 0x45e12c
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e4d3
push dword [ebp - 0xc]
push 1
push 8
lea edx, [ebp - 0x1c]
push edx
call fcn.0045dce4
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0045dc70
pop ecx
cmp edx, dword [ebp - 0x18]
jne 0x45e150
cmp eax, dword [ebp - 0x1c]
je 0x45e1a6
push dword [ebp - 0x28]
call fcn.00450978
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 4]
lea ecx, [ebp - 0x174]
push ecx
push str._s_deleted_____s_size_changed.
push 0xa00988
call fcn.006712b0
add esp, 0x10
push 0xa00988
call fcn.004629c0
pop ecx
lea eax, [ebp - 0x174]
push eax
call fcn.0045255c
pop ecx
xor eax, eax
jmp 0x45e4d3
push dword [ebp - 0xc]
push 1
push 0x8000
push dword [ebp - 0x28]
call fcn.0045dce4
add esp, 0x10
push 0
push 0
push 0x8000
push dword [ebp - 0x10]
call fcn.0045dbe8
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x45e1e0
cmp dword [ebp - 0x1c], 0x10000
jae 0x45e21d
jmp 0x45e1e2
jge 0x45e21d
push 0x8000
push 0
mov edx, dword [ebp - 0x28]
add edx, 0x8000
push edx
call fcn.0066cc88
add esp, 0xc
push dword [ebp - 0x10]
push 1
mov eax, dword [ebp - 0x1c]
add eax, 0xffff8000
push eax
mov edx, dword [ebp - 0x28]
add edx, 0x8000
push edx
call fcn.0045dce4
add esp, 0x10
jmp 0x45e239
push dword [ebp - 0x10]
push 1
push 0x8000
mov ecx, dword [ebp - 0x28]
add ecx, 0x8000
push ecx
call fcn.0045dce4
add esp, 0x10
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov al, byte [ecx + edx]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx + edx + 0x8000]
cmp al, dl
jne 0x45e265
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, 0x8000
jl 0x45e23e
mov ecx, dword [ebp - 8]
cmp ecx, 0x8000
jge 0x45e2c4
push dword [ebp - 0x28]
call fcn.00450978
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 4]
lea eax, [ebp - 0x174]
push eax
push str._s_deleted_____s_content_changed.
push 0xa00988
call fcn.006712b0
add esp, 0x10
push 0xa00988
call fcn.004629c0
pop ecx
lea edx, [ebp - 0x174]
push edx
call fcn.0045255c
pop ecx
xor eax, eax
jmp 0x45e4d3
push 4
call fcn.0042792c
pop ecx
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0xc]
call fcn.0045dbe8
add esp, 0x10
xor ecx, ecx
mov dword [0x760e10], ecx
jmp 0x45e3eb
push dword [ebp - 0xc]
push 1
push 4
lea eax, [ebp - 0x38]
push eax
call fcn.0045dce4
add esp, 0x10
add dword [0x760e10], 8
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x45e318
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x45e407
push 0
push 0
push 0x800
mov eax, dword [ebp - 0x34]
cdq
call fcn.00674900
push edx
push eax
push dword [ebp - 0x10]
call fcn.0045dbe8
add esp, 0x10
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x2c]
test edx, edx
jle 0x45e3eb
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x20
jle 0x45e39b
push dword [ebp - 0xc]
push 0x20
push 0x800
push dword [ebp - 0x28]
call fcn.0045dce4
add esp, 0x10
push dword [ebp - 0x10]
push 0x20
push 0x800
push dword [ebp - 0x28]
call fcn.0045dd24
add esp, 0x10
add dword [0x760e10], 0x10000
push 5
call fcn.0042792c
pop ecx
sub dword [ebp - 0x2c], 0x20
add dword [ebp - 0x30], 0x20
jmp 0x45e3e0
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push 0x800
push dword [ebp - 0x28]
call fcn.0045dce4
add esp, 0x10
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push 0x800
push dword [ebp - 0x28]
call fcn.0045dd24
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
shl edx, 0xb
add dword [0x760e10], edx
push 5
call fcn.0042792c
pop ecx
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jg 0x45e34d
push dword [ebp - 0xc]
push 1
push 4
lea eax, [ebp - 0x34]
push eax
call fcn.0045dce4
add esp, 0x10
cmp eax, 1
je 0x45e2ec
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0045dbe8
add esp, 0x10
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_SetEndOfFile
call fcn.0042791c
push dword [ebp - 0x28]
call fcn.00450978
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0x68], 0x20
push 0xc
push 0
lea ecx, [ebp - 0x284]
push ecx
call fcn.0066cc88
add esp, 0xc
mov dword [ebp - 0x284], 0xc
xor eax, eax
mov dword [ebp - 0x280], eax
xor edx, edx
mov dword [ebp - 0x27c], edx
push 0
push dword [ebp - 0x68]
push 3
lea ecx, [ebp - 0x284]
push ecx
push 0
push 0x40000000
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, 0xffffffff
je 0x45e4c1
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x2ac]
push ecx
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_SetFileTime
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0x174]
push edx
call fcn.0045255c
pop ecx
mov eax, 1
mov esp, ebp
pop ebp
ret