Function at 0x66f392
Capabilities:
Delete file

Disassembly:
mov eax, 0x670fa3
call fcn.004c5428
sub esp, 0xc7c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x31a9]
cmp byte [eax], 0
push edi
mov dword [ebp - 0x10], esp
jne 0x66f3c0
mov eax, 0x490
jmp 0x66f5bc
lea edx, [ebp - 0xc88]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x66f3c8
and dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0xfa0
mov edi, bind
cmp dword [ebp - 0x24], 0
jbe 0x66f415
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov esi, ebx
push eax
push str.Installer:_package_download:_Sleeping_for__d_seconds_r_n
push edi
call fcn.00666d3d
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x950], eax
lea eax, [ebp - 0xc88]
push eax
lea esi, [ebx + 0x24]
call fcn.0066f8cf
xor ecx, ecx
mov edx, eax
or edx, ecx
mov dword [ebp - 0x20], eax
mov esi, ebx
je 0x66f46f
push ecx
push eax
push str.Installer:_package_download_failed._Error:__I64d_r_n
push edi
call fcn.00666d3d
add esp, 0x10
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 4
jb 0x66f3e2
xor eax, eax
push eax
push dword [ebp - 0x20]
push str.Installer:_package_download_failed._Error:__I64d_r_n
push edi
call fcn.00666d3d
mov eax, dword [ebp - 0x20]
add esp, 0x10
jmp 0x66f5bc
push str.Installer:_Starting_Install_Mode_r_n
push edi
call fcn.00666d3d
pop ecx
pop ecx
lea eax, [ebp - 0x288]
push eax
lea eax, [ebx + 0x24]
call fcn.0066f601
and dword [ebp - 0x1c], 0
mov ecx, eax
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
je 0x66f4b6
push dword [ebp - 0x1c]
push eax
push str.Installer:_SaveToTempFile_failed._Error:__I64d_r_n
push edi
call fcn.00666d3d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x66f5be
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0066d20b
mov ecx, eax
or ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x66f4de
push edx
push eax
push str.Installer:_ExtractUpgrade_failed._Error:__I64d_r_n
jmp 0x66f4a2
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x488]
push eax
push ebx
call fcn.0066d49b
xor ecx, ecx
mov edx, eax
xor esi, esi
or edx, ecx
mov dword [ebp - 0x20], eax
je 0x66f513
push ecx
push eax
push str.Installer:_ExecuteUpgrade_failed.__Error:__I64d_r_n
mov esi, ebx
jmp 0x66f45e
cmp byte [ebx + 0x226f], cl
je 0x66f5ba
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x18], 5
jge 0x66f5ba
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], esi
call fcn.0040c142
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004b270c
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004b2742
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
call fcn.004010ac
cmp byte [ebp - 0x11], 0
je 0x66f5cf
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x44]
call fcn.00402a8f
push esi
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b30ef
push edi
add ebx, 0x226f
push ebx
push str.UninstURL
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004b1d40
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.004b2789
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.004010ac
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.004010ac
or dword [ebp - 4], 0xffffffff
jmp 0x66f5f9
inc dword [ebp - 0x18]
jmp 0x66f522