Function at 0x4066db
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44446f
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
mov esi, ecx
mov ecx, dword [0x45c630]
call fcn.004029f0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push 0
push 3
push eax
push ecx
call fcn.00420b30
mov ecx, dword [0x45c630]
push edx
push eax
call fcn.00402b50
test al, al
jne 0x406787
push str.Insufficient_capacity_on_hard_disk_to_extract_the_zip_file.
push 0x45e664
call fcn.004023f0
add esp, 8
push 3
push 0x4477e0
mov ecx, 0x45e664
call fcn.004022a0
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, esi
or edx, ecx
jge 0x406755
push 0
mov ecx, 0x45e664
call fcn.00402220
mov eax, dword [0x45e664]
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402860
mov ecx, dword [0x45c630]
add esp, 8
call fcn.00402a40
xor al, al
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
push ebx
push str.Extracting
push 0x45e664
call fcn.004023f0
mov edx, dword [0x45e664]
mov ebx, dword [edx - 4]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, ebx
add esp, 8
or ecx, eax
jge 0x4067c3
push 0
mov ecx, 0x45e664
call fcn.00402220
mov edx, dword [0x45e664]
mov ecx, dword [0x45c630]
push edx
call fcn.00402840
mov ecx, dword [esi + 0x58]
push ecx
lea edx, [esp + 0x18]
push str.ps_.4u.patch
push edx
call fcn.004203a8
push 0x45c230
lea eax, [esp + 0x424]
push 0x4470bc
push eax
call fcn.004203a8
mov ecx, dword [0x45c630]
add esp, 0x18
push 0x447078
push 0x3ee
call fcn.00433543
mov ecx, dword [0x45c630]
push 0x447078
push 0x3ef
call fcn.00433543
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00404d10
add esp, 8
test eax, eax
jne 0x4068b2
push str.Extraction_Failed
push 0x45e664
call fcn.004023f0
add esp, 8
push 3
push 0x4477bc
mov ecx, 0x45e664
call fcn.004022a0
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x406889
push 0
mov ecx, 0x45e664
call fcn.00402220
mov eax, dword [0x45e664]
mov edx, dword [0x45c630]
push eax
push edx
call fcn.00402860
add esp, 8
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
cmp eax, 2
mov ecx, dword [0x45c630]
jne 0x4068db
call fcn.00402a40
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
call fcn.00402a60
cmp dword [esi + 0x58], 1
jbe 0x406b01
push 0
push str.update.sah
call fcn.004201e9
add esp, 8
test eax, eax
jne 0x406b01
push eax
push str.update.saf
call fcn.004201e9
add esp, 8
test eax, eax
jne 0x406b01
push str.update.saf
lea ecx, [esp + 0x10]
call fcn.00404280
mov ecx, dword [0x45c630]
push eax
mov dword [esp + 0x820], 0
call fcn.00403060
mov ecx, dword [0x45c630]
shl eax, 1
push 0
push eax
call fcn.00402b50
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0xc]
inc bl
mov dword [esp + 0x81c], 0xffffffff
call fcn.004037e0
test bl, bl
je 0x4069c1
push str.Insufficient_capacity_on_hard_disk_for_update.
push 0x45e664
call fcn.004023f0
add esp, 8
push 0x447770
mov ecx, 0x45e664
call fcn.00402410
push 0
mov ecx, 0x45e664
call fcn.00402270
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402860
add esp, 8
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
push edi
push str.Updating_the_file.
push 0x45e664
call fcn.004023f0
add esp, 8
push 0
mov ecx, 0x45e664
call fcn.00402270
mov ecx, dword [0x45c630]
push eax
call fcn.00402840
mov ecx, dword [0x45c630]
push 0x447078
push 0x3ee
call fcn.00433543
mov edi, dword [esi + 0xc]
test edi, edi
je 0x406a1f
mov ecx, edi
call fcn.00408580
push edi
call fcn.004334b9
add esp, 4
mov dword [esi + 0xc], 0
push 0xa4
call fcn.00433489
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x820], 1
pop edi
je 0x406a49
mov ecx, eax
call fcn.004081f0
jmp 0x406a4b
xor eax, eax
test eax, eax
mov dword [esp + 0x81c], 0xffffffff
mov dword [esi + 0xc], eax
jne 0x406aeb
push str.Update_error
push 0x45e668
call fcn.004023f0
push str.Insufficient_memory.
push 0x45e66c
call fcn.004023f0
push 0x447644
lea ecx, [esp + 0x1c]
push 0x45e668
push ecx
call fcn.004059f0
push 0x45e66c
push eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x844], 2
call fcn.00405940
add esp, 0x28
push eax
mov ecx, 0x45e664
mov byte [esp + 0x820], 3
call fcn.00405920
lea ecx, [esp + 0x10]
call fcn.004037e0
lea ecx, [esp + 8]
mov dword [esp + 0x81c], 0xffffffff
call fcn.004037e0
push 0x447730
jmp 0x406983
mov ecx, eax
mov byte [esi + 0x874], 1
call fcn.00409950
test al, al
je 0x406899
mov ecx, esi
call fcn.004053f0
test al, al
jne 0x406b1d
mov ecx, dword [0x45c630]
push str.SaveLocalVersion_Error
push ecx
jmp 0x4069a0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x814]
test eax, eax
pop ebx
setne al
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret