Function at 0x45dbd0
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 0x45dbef
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 3
push dword [ebp - 8]
push 0x8244ff
push 0x757fbd
lea eax, [ebp - 0x174]
push eax
call fcn.00670e94
add esp, 0x10
push 0
lea edx, [ebp - 0x174]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x45dc30
dec dword [ebp - 8]
mov ecx, dword [ebp - 8]
dec ecx
jge 0x45dbf6
mov eax, dword [ebp - 8]
dec eax
jge 0x45dc48
push str.No_update_file_s_.
call fcn.004626d8
pop ecx
xor eax, eax
jmp 0x45e1eb
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 0x45dc99
lea eax, [ebp - 0x174]
push eax
push str._s_open_error.
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
call fcn.004626d8
pop ecx
xor eax, eax
jmp 0x45e1eb
push dword [ebp - 0xc]
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0045d9fc
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x5550445f
je 0x45dcea
lea eax, [ebp - 0x174]
push eax
push str._s_format_error.
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
call fcn.004626d8
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e1eb
push dword [ebp - 0xc]
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0045d9fc
add esp, 0x10
push 0x104
push 0
push dword [ebp - 4]
call fcn.0066c86c
add esp, 0xc
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.0045d9fc
add esp, 0x10
push dword [ebp - 0xc]
push 1
push 0x34
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.0045d9fc
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 0x45ddbb
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 0x9f2fb4
call fcn.00670e94
add esp, 0x10
push 0x9f2fb4
call fcn.004626d8
pop ecx
lea ecx, [ebp - 0x174]
push ecx
call fcn.004522ac
pop ecx
xor eax, eax
jmp 0x45e1eb
push 0x10000
call fcn.00450668
pop ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x45ddf2
push str.memory_allocation_error.
call fcn.004626d8
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e1eb
push dword [ebp - 0xc]
call fcn.0045d950
pop ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push 2
push 0xffffffffffffffff
push 0xffff7ff8
push dword [ebp - 0xc]
call fcn.0045d900
add esp, 0x10
push dword [ebp - 0xc]
call fcn.0045d950
pop ecx
mov dword [0x757d00], eax
mov edx, dword [0x757d00]
test edx, edx
jne 0x45de44
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45e1eb
push dword [ebp - 0xc]
push 1
push 8
lea edx, [ebp - 0x1c]
push edx
call fcn.0045d9fc
add esp, 0x10
push dword [ebp - 0x10]
call fcn.0045d988
pop ecx
cmp edx, dword [ebp - 0x18]
jne 0x45de68
cmp eax, dword [ebp - 0x1c]
je 0x45debe
push dword [ebp - 0x28]
call fcn.004506c8
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 0x9f2fb4
call fcn.00670e94
add esp, 0x10
push 0x9f2fb4
call fcn.004626d8
pop ecx
lea eax, [ebp - 0x174]
push eax
call fcn.004522ac
pop ecx
xor eax, eax
jmp 0x45e1eb
push dword [ebp - 0xc]
push 1
push 0x8000
push dword [ebp - 0x28]
call fcn.0045d9fc
add esp, 0x10
push 0
push 0
push 0x8000
push dword [ebp - 0x10]
call fcn.0045d900
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x45def8
cmp dword [ebp - 0x1c], 0x10000
jae 0x45df35
jmp 0x45defa
jge 0x45df35
push 0x8000
push 0
mov edx, dword [ebp - 0x28]
add edx, 0x8000
push edx
call fcn.0066c86c
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.0045d9fc
add esp, 0x10
jmp 0x45df51
push dword [ebp - 0x10]
push 1
push 0x8000
mov ecx, dword [ebp - 0x28]
add ecx, 0x8000
push ecx
call fcn.0045d9fc
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 0x45df7d
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, 0x8000
jl 0x45df56
mov ecx, dword [ebp - 8]
cmp ecx, 0x8000
jge 0x45dfdc
push dword [ebp - 0x28]
call fcn.004506c8
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 0x9f2fb4
call fcn.00670e94
add esp, 0x10
push 0x9f2fb4
call fcn.004626d8
pop ecx
lea edx, [ebp - 0x174]
push edx
call fcn.004522ac
pop ecx
xor eax, eax
jmp 0x45e1eb
push 4
call fcn.004277e0
pop ecx
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0xc]
call fcn.0045d900
add esp, 0x10
xor ecx, ecx
mov dword [0x757d04], ecx
jmp 0x45e103
push dword [ebp - 0xc]
push 1
push 4
lea eax, [ebp - 0x38]
push eax
call fcn.0045d9fc
add esp, 0x10
add dword [0x757d04], 8
mov edx, dword [ebp - 0x34]
test edx, edx
jne 0x45e030
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x45e11f
push 0
push 0
push 0x800
mov eax, dword [ebp - 0x34]
cdq
call fcn.006744e4
push edx
push eax
push dword [ebp - 0x10]
call fcn.0045d900
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 0x45e103
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x20
jle 0x45e0b3
push dword [ebp - 0xc]
push 0x20
push 0x800
push dword [ebp - 0x28]
call fcn.0045d9fc
add esp, 0x10
push dword [ebp - 0x10]
push 0x20
push 0x800
push dword [ebp - 0x28]
call fcn.0045da3c
add esp, 0x10
add dword [0x757d04], 0x10000
push 5
call fcn.004277e0
pop ecx
sub dword [ebp - 0x2c], 0x20
add dword [ebp - 0x30], 0x20
jmp 0x45e0f8
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push 0x800
push dword [ebp - 0x28]
call fcn.0045d9fc
add esp, 0x10
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push 0x800
push dword [ebp - 0x28]
call fcn.0045da3c
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
shl edx, 0xb
add dword [0x757d04], edx
push 5
call fcn.004277e0
pop ecx
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jg 0x45e065
push dword [ebp - 0xc]
push 1
push 4
lea eax, [ebp - 0x34]
push eax
call fcn.0045d9fc
add esp, 0x10
cmp eax, 1
je 0x45e004
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0045d900
add esp, 0x10
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_SetEndOfFile
call fcn.004277d0
push dword [ebp - 0x28]
call fcn.004506c8
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.0066c86c
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 0x45e1d9
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.004522ac
pop ecx
mov eax, 1
mov esp, ebp
pop ebp
ret