Function at 0x4066eb
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443e7f
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
mov esi, ecx
mov ecx, dword [0x45c630]
call fcn.004029e0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push 0
push 3
push eax
push ecx
call fcn.00420ac0
mov ecx, dword [0x45c630]
push edx
push eax
call fcn.00402b40
test al, al
jne 0x406797
push str.Insufficient_capacity_on_hard_disk_to_extract_the_zip_file.
push 0x45e664
call fcn.004023e0
add esp, 8
push 3
push 0x4477f0
mov ecx, 0x45e664
call fcn.00402290
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, esi
or edx, ecx
jge 0x406765
push 0
mov ecx, 0x45e664
call fcn.00402210
mov eax, dword [0x45e664]
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402850
mov ecx, dword [0x45c630]
add esp, 8
call fcn.00402a30
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.004023e0
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 0x4067d3
push 0
mov ecx, 0x45e664
call fcn.00402210
mov edx, dword [0x45e664]
mov ecx, dword [0x45c630]
push edx
call fcn.00402830
mov ecx, dword [esi + 0x58]
push ecx
lea edx, [esp + 0x18]
push str.ps_.4u.patch
push edx
call fcn.004202b8
push 0x45c230
lea eax, [esp + 0x424]
push 0x4470ac
push eax
call fcn.004202b8
mov ecx, dword [0x45c630]
add esp, 0x18
push 0x447068
push 0x3ee
call fcn.0043336a
mov ecx, dword [0x45c630]
push 0x447068
push 0x3ef
call fcn.0043336a
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00404d40
add esp, 8
test eax, eax
jne 0x4068c2
push str.Extraction_Failed
push 0x45e664
call fcn.004023e0
add esp, 8
push 3
push 0x4477cc
mov ecx, 0x45e664
call fcn.00402290
mov eax, dword [0x45e664]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x406899
push 0
mov ecx, 0x45e664
call fcn.00402210
mov eax, dword [0x45e664]
mov edx, dword [0x45c630]
push eax
push edx
call fcn.00402850
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 0x4068eb
call fcn.00402a30
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
call fcn.00402a50
cmp dword [esi + 0x58], 1
jbe 0x406b11
push 0
push str.update.sah
call fcn.004200f9
add esp, 8
test eax, eax
jne 0x406b11
push eax
push str.update.saf
call fcn.004200f9
add esp, 8
test eax, eax
jne 0x406b11
push str.update.saf
lea ecx, [esp + 0x10]
call fcn.004042b0
mov ecx, dword [0x45c630]
push eax
mov dword [esp + 0x820], 0
call fcn.00403050
mov ecx, dword [0x45c630]
shl eax, 1
push 0
push eax
call fcn.00402b40
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0xc]
inc bl
mov dword [esp + 0x81c], 0xffffffff
call fcn.00403740
test bl, bl
je 0x4069d1
push str.Insufficient_capacity_on_hard_disk_for_update.
push 0x45e664
call fcn.004023e0
add esp, 8
push 0x447780
mov ecx, 0x45e664
call fcn.00402400
push 0
mov ecx, 0x45e664
call fcn.00402260
push eax
mov eax, dword [0x45c630]
push eax
call fcn.00402850
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.004023e0
add esp, 8
push 0
mov ecx, 0x45e664
call fcn.00402260
mov ecx, dword [0x45c630]
push eax
call fcn.00402830
mov ecx, dword [0x45c630]
push 0x447068
push 0x3ee
call fcn.0043336a
mov edi, dword [esi + 0xc]
test edi, edi
je 0x406a2f
mov ecx, edi
call fcn.00408590
push edi
call fcn.004332e0
add esp, 4
mov dword [esi + 0xc], 0
push 0xa4
call fcn.004332b0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x820], 1
pop edi
je 0x406a59
mov ecx, eax
call fcn.00408200
jmp 0x406a5b
xor eax, eax
test eax, eax
mov dword [esp + 0x81c], 0xffffffff
mov dword [esi + 0xc], eax
jne 0x406afb
push str.Update_error
push 0x45e668
call fcn.004023e0
push str.Insufficient_memory.
push 0x45e66c
call fcn.004023e0
push 0x447654
lea ecx, [esp + 0x1c]
push 0x45e668
push ecx
call fcn.00405a00
push 0x45e66c
push eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x844], 2
call fcn.00405950
add esp, 0x28
push eax
mov ecx, 0x45e664
mov byte [esp + 0x820], 3
call fcn.00405930
lea ecx, [esp + 0x10]
call fcn.00403740
lea ecx, [esp + 8]
mov dword [esp + 0x81c], 0xffffffff
call fcn.00403740
push 0x447740
jmp 0x406993
mov ecx, eax
mov byte [esi + 0x874], 1
call fcn.00409960
test al, al
je 0x4068a9
mov ecx, esi
call fcn.00405400
test al, al
jne 0x406b2d
mov ecx, dword [0x45c630]
push str.SaveLocalVersion_Error
push ecx
jmp 0x4069b0
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