Function at 0x45b6a0
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
mov dword [ebp - 0x530], esi
mov dword [ebp - 0x534], edi
cmp dword [esi + 0x14], 8
jb 0x45b6d1
mov eax, dword [esi]
push eax
push 0xff
push str.UpgradeMgr::UnzipInstaller
push str.__s__d___UnzipInstaller_strInstallPath_:__s
call fcn.0041f720
add esp, 0x10
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x6c], 7
lea ecx, [ebp - 0x80]
mov word [ebp - 0x80], ax
push eax
push 0x5010a0
call fcn.00403e30
xor eax, eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov edx, str.Software360360huabao
mov dword [ebp - 0x40], eax
mov ecx, SysReAllocString
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x80]
push eax
push str.Version
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x3c], 7
call fcn.0040ffe0
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x45b752
mov ecx, dword [esi]
push 0
push 2
xor edx, edx
call fcn.004651e0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x52c], ebx
test ebx, ebx
jne 0x45b797
push 0x109
push str.UpgradeMgr::UnzipInstaller
push str.__s__d___OpenZip_error_
call fcn.0041f720
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x45b78b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45bdfa
xor eax, eax
mov dword [ebp - 0x4e4], 0
cmp dword [ebx], 1
mov word [ebp - 0x4e0], ax
mov dword [ebp - 0x2b8], eax
je 0x45b7bc
mov eax, 0x80000
jmp 0x45b7cd
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x4e4]
push eax
push 0xffffffffffffffff
call fcn.00464580
sub esp, 0x18
mov dword [0x558a3c], eax
lea eax, [edi + 0x18]
mov ecx, esp
push eax
call fcn.004032f0
lea ecx, [ebp - 0x54c]
call fcn.00402070
add esp, 0x18
lea edx, [edi + 0x60]
cmp dword [edi + 0x74], 8
jb 0x45b7fa
mov edx, dword [edi + 0x60]
push dword [edi + 0x70]
mov ecx, eax
push edx
push 0
call fcn.004057c0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x51c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x508]
mov eax, edx
mov ecx, dword [ebp - 0x50c]
sub eax, ecx
cmp eax, 1
jb 0x45b880
cmp edx, 8
lea esi, [ebp - 0x51c]
push 2
cmovae esi, dword [ebp - 0x51c]
lea edi, [ecx + 1]
push 0x5010bc
mov dword [ebp - 0x50c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 0x51c]
jmp 0x45b8a1
push 1
push 0x5010bc
mov byte [ebp - 0x4e8], 0
lea ecx, [ebp - 0x51c]
push dword [ebp - 0x4e8]
push 1
call fcn.00404fc0
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x508]
cmp edx, 8
jb 0x45b905
mov ecx, dword [ebp - 0x51c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b8fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bedb
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x538]
xor eax, eax
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 7
mov word [ebp - 0x51c], ax
cmp edx, 8
jb 0x45b962
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bedb
push edx
push ecx
call fcn.004bdd39
add esp, 8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45b994
push 0x115
push str.UpgradeMgr::UnzipInstaller
push str.__s__d___version_path_not_exits_
call fcn.0041f720
add esp, 0xc
jmp 0x45bd78
xor edi, edi
mov dword [ebp - 0x4e8], edi
cmp dword [ebp - 0x4e4], edi
jle 0x45bbea
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x2b4], 0
cmp dword [ebx], 1
mov word [ebp - 0x2b0], ax
mov dword [ebp - 0x88], eax
je 0x45b9d5
mov eax, 0x80000
jmp 0x45b9e5
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x2b4]
push eax
push edi
call fcn.00464580
mov dword [0x558a3c], eax
lea ebx, [ebp - 0x2b0]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
lea ecx, [ebx + 2]
mov word [ebp - 0x68], ax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], 7
mov word [ebp - 0x500], ax
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45ba20
mov eax, dword [ebp - 0x28]
sub ebx, ecx
sar ebx, 1
lea ecx, [ebp - 0x500]
add eax, ebx
push eax
call fcn.00402d70
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
mov esi, dword [ebp - 0x4f0]
cmovae edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [ebp - 0x28]
sub eax, esi
mov dword [ebp - 0x520], ecx
mov dword [ebp - 0x504], esi
cmp ecx, eax
ja 0x45bab4
cmp dword [ebp - 0x4ec], 8
lea eax, [esi + ecx]
mov dword [ebp - 0x4f0], eax
lea esi, [ebp - 0x500]
cmovae esi, dword [ebp - 0x500]
lea eax, [ecx + ecx]
push eax
mov eax, dword [ebp - 0x504]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.004c0040
mov eax, dword [ebp - 0x520]
add esp, 0xc
add eax, dword [ebp - 0x504]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x45bacf
push ecx
push edx
mov byte [ebp - 0x524], 0
push dword [ebp - 0x524]
push ecx
lea ecx, [ebp - 0x500]
call fcn.00404fc0
mov edx, dword [ebp - 0x4ec]
mov eax, edx
mov ecx, dword [ebp - 0x4f0]
sub eax, ecx
cmp ebx, eax
ja 0x45bb21
cmp edx, 8
lea esi, [ebp - 0x500]
lea eax, [ebx + ebx]
cmovae esi, dword [ebp - 0x500]
lea edi, [ebx + ecx]
push eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x4f0], edi
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x4e8]
jmp 0x45bb42
push ebx
lea eax, [ebp - 0x2b0]
mov byte [ebp - 0x528], 0
push eax
push dword [ebp - 0x528]
lea ecx, [ebp - 0x500]
push ebx
call fcn.00404fc0
lea ecx, [ebp - 0x68]
call fcn.00402e70
movups xmm1, xmmword [ebp - 0x500]
cmp dword [ebp - 0x4ec], 8
lea ecx, [ebp - 0x68]
mov ebx, dword [ebp - 0x52c]
movq xmm0, qword [ebp - 0x4f0]
movd eax, xmm1
movups xmmword [ebp - 0x68], xmm1
cmovae ecx, eax
movq qword [ebp - 0x58], xmm0
cmp dword [ebx], 1
jne 0x45bc77
push 2
push 0
push ecx
mov ecx, dword [ebx + 4]
push edi
call fcn.00464d20
mov dword [0x558a3c], eax
test eax, eax
jne 0x45bc81
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x45bbd7
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bbcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bee5
push edx
push ecx
call fcn.004bdd39
add esp, 8
inc edi
mov dword [ebp - 0x4e8], edi
cmp edi, dword [ebp - 0x4e4]
jl 0x45b9b0
push str.360hb_inst.exe
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x54c]
call fcn.004048c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x20]
cmp eax, esi
je 0x45bc34
mov ecx, eax
call fcn.00402e70
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x538]
cmp edx, 8
jb 0x45bd11
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bd07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bee0
jmp 0x45bd07
mov dword [0x558a3c], 0x80000
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00402f60
mov cl, 1
call fcn.004110c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call esi
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call esi
push eax
push 0x124
push str.UpgradeMgr::UnzipInstaller
push str.__s__d___UnzipItem_failed_GetLastError:_d__strFileName___s
call fcn.0041f720
mov edx, dword [ebp - 0x54]
add esp, 0x14
cmp edx, 8
jb 0x45bd78
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bcfb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bee5
push edx
push ecx
call fcn.004bdd39
add esp, 8
jmp 0x45bd78
push edx
push ecx
call fcn.004bdd39
add esp, 8
push 0xf
push str._updateinstall:
lea ecx, [ebp - 0x50]
call fcn.00403e30
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
push 1
cmovae ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
push 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x50]
cmp dword [ebp - 0xc], 8
push ecx
cmovae eax, dword [ebp - 0x20]
push eax
push 0x12c
push str.UpgradeMgr::UnzipInstaller
push str.__s__d___strInstallExeName:_s__cmd:_s
call fcn.0041f720
add esp, 0x14
push ebx
call fcn.00465590
mov eax, dword [ebp - 0x530]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45bd8f
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [ebp - 0x534]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x45bda9
mov eax, dword [eax]
push eax
call esi
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x45bde6
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bddc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45beea
push edx
push ecx
call fcn.004bdd39
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x45be34
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45be2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45beea
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp edx, 8
jb 0x45be7e
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45be74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45beea
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
cmp edx, 8
jb 0x45bec8
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bebe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45beea
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret 4
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
call fcn.004c8da3
int3