Function at 0x45c870
Capabilities:
Check if file exists
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x70], esi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45c898
mov eax, dword [esi]
push eax
push 0x180
push str.UpgradeMgr::UpgradeBy360se
push str.__s__d___UpgradeBy360se_ver:_s
call fcn.0041f720
lea ecx, [ebp - 0x68]
call fcn.00417f20
push str.360hb_inst.exe
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.004048c0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20]
add esp, 0x14
cmp dword [ebp - 0xc], 8
cmovae eax, dword [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x45cad9
lea ecx, [ebp - 0x50]
call fcn.00411830
cmp dword [ebp - 0x40], 0
jne 0x45c9bd
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x45c930
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c926
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd12
push edx
push ecx
call fcn.004bdd39
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x45c96c
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c962
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd12
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
cmp edx, 8
jb 0x45ccfd
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ccf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd12
jmp 0x45ccf3
push 0x5010bc
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x88]
call fcn.004048c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x20]
cmp eax, esi
je 0x45ca07
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 - 0x74]
cmp edx, 8
jb 0x45ca44
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ca3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd17
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [ebp - 0x10]
sub eax, ecx
cmp eax, 0xe
jb 0x45ca84
cmp edx, 8
lea esi, [ebp - 0x20]
push 0x1c
cmovae esi, dword [ebp - 0x20]
lea edi, [ecx + 0xe]
push str.360hb_inst.exe
mov dword [ebp - 0x10], edi
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 [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x45ca9c
push 0xe
push str.360hb_inst.exe
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 0x6c]
push 0xe
call fcn.00404fc0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x45cad6
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45cacc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd12
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov esi, dword [ebp - 0x70]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x45c930
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
cmp dword [0x558a30], 0
jne 0x45cb10
call fcn.00440840
test eax, eax
je 0x45c930
add ebx, 0x60
lea ecx, [ebp - 0x38]
push ebx
call fcn.00402f60
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x45cb4a
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45cc59
push 0x5010bc
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.004048c0
add esp, 4
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x45cb69
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub eax, esi
mov dword [ebp - 0x6c], esi
cmp ecx, eax
ja 0x45cbae
cmp dword [ebp - 0x24], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], edi
push eax
mov eax, dword [ebp - 0x6c]
lea esi, [ebp - 0x38]
cmovae esi, dword [ebp - 0x38]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x45cbc0
push ecx
push edx
mov byte [ebp - 0x6c], 0
push dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404fc0
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x45cbfd
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45cbf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd1c
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 edi
test eax, eax
je 0x45cc5d
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00402f60
mov cl, 1
call fcn.004110c0
add esp, 0x18
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
je 0x45cc5d
cmp dword [ebx + 0x14], 8
jb 0x45cc41
mov ebx, dword [ebx]
push ebx
push 0x1a2
push str.UpgradeMgr::UpgradeBy360se
push str.__s__d___Install_version_dir_is_exits:_s
call fcn.0041f720
add esp, 0x10
xor bl, bl
jmp 0x45cca4
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 1
cmovae eax, dword [ebp - 0x20]
push 0
push str._updateinstall:
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
push 0x1ae
push str.UpgradeMgr::UpgradeBy360se
push str.__s__d___ShellExecute:_s
call fcn.0041f720
add esp, 0x10
mov bl, 1
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x45ccda
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ccd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd12
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
jmp 0x45c932
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 8]
mov al, bl
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
int3