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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6a09
mov eax, dword fs:[0]
push eax
mov eax, 0x63270
call fcn.005918e0
mov eax, dword [0x6c45ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x6327c]
xor ebx, ebx
mov eax, ebx
push ebx
mov dword [ebp - 0x6326c], eax
mov dword [ebp - 0x63268], eax
call fcn.00404ba6
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x4a671b
mov esi, dword [esi]
lea eax, [ebp - 0x6327c]
mov ecx, esi
push eax
call fcn.004368f0
pop ecx
lea ecx, [ebp - 0x6327c]
call fcn.004056d7
test al, al
jne 0x4a6758
push 0x9af
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___value_is_not_object:_s
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffb
pop ebx
jmp 0x4a6e3a
push 0xf
pop eax
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 0x4c8], bl
mov dword [ebp - 0x4d0], ebx
mov dword [ebp - 0x4cc], eax
mov byte [ebp - 0x4e0], bl
push ecx
push str.strUrl
lea ecx, [ebp - 0x6327c]
mov byte [ebp - 4], 2
call fcn.00405401
lea edx, [ebp - 0x4c8]
mov ecx, eax
call fcn.0043701f
push str.strCabVer
lea ecx, [ebp - 0x6327c]
call fcn.00405401
lea edx, [ebp - 0x4e0]
mov ecx, eax
call fcn.0043701f
sub esp, 0x14
lea eax, [ebp - 0x4c8]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x480]
call fcn.00430aaf
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4a67ef
mov eax, dword [eax]
push eax
push 0x9b7
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___ClickUpgrade_downloadUrl_url_s
call fcn.0040a649
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x480]
call fcn.0040b67b
cmp dword [ebp - 0x4b8], 0
jne 0x4a6827
or ebx, 0xffffffff
jmp 0x4a6e24
lea ecx, [ebp - 0x468]
call fcn.004250d3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x468]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a68ad
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push ebx
cmovae eax, dword [ebp - 0x468]
push eax
call esi
test eax, eax
jne 0x4a68ad
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
cmovae eax, dword [ebp - 0x468]
push eax
push 0x9c1
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4a6e19
push str.360hb_tmp2_
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x438]
call fcn.0041154b
pop ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call edi
test eax, eax
je 0x4a6945
sub esp, 0x18
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
mov cl, 1
call fcn.00425b47
add esp, 0x18
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call edi
test eax, eax
je 0x4a6945
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0x9cd
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___Install_version_dir_is_exits:_s
jmp 0x4a6985
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4a6995
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0x9d4
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4a6e0e
push 0x628a24
sub esp, 0x18
lea eax, [ebp - 0x4e0]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x528]
call fcn.00430aaf
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x480]
call fcn.0041151c
pop ecx
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a69df
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040b220
lea ecx, [ebp - 0x480]
call fcn.0040b67b
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 5
call fcn.0040b67b
lea eax, [ebp - 0x438]
mov dword [ebp - 0x500], ebx
push eax
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4fc], ebx
call fcn.0040b155
mov byte [ebp - 4], 8
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call edi
test eax, eax
jne 0x4a6a80
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4a6a80
push 0x9de
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_err
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffe
pop ebx
jmp 0x4a6e03
push str.360hb_inst.cab
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.0041154b
pop ecx
lea ecx, [ebp - 0x63260]
call fcn.00416a70
lea ecx, [ebp - 0x568]
call fcn.0040ba44
push 0x170
mov byte [ebp - 4], 0xb
call fcn.00590c07
pop ecx
mov dword [ebp - 0x63268], eax
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040b6ae
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4c8]
mov ecx, esi
push eax
call fcn.0040b8c8
sub esp, 0x18
lea eax, [ebp - 0x450]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x480]
call fcn.00430a1c
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040b9f1
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0xb
call fcn.00404812
push 0xb4
mov ecx, esi
call fcn.0040b8d1
push esi
call fcn.0040bde0
test eax, eax
je 0x4a6b57
push eax
push 0x9ed
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___download_err_code_d
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffd
pop ebx
jmp 0x4a6de2
push str.360hb_inst.zip
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x4f8]
call fcn.0041154b
pop ecx
push 8
pop esi
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], esi
cmovae eax, dword [ebp - 0x450]
push eax
call edi
test eax, eax
je 0x4a6dbd
cmp dword [ebp - 0x43c], esi
lea ecx, [ebp - 0x450]
cmovae ecx, dword [ebp - 0x450]
call fcn.004258e0
test al, al
je 0x4a6c20
cmp dword [ebp - 0x424], esi
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x480]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0040b0d5
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], esi
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x63268], 1
cmovae eax, dword [ebp - 0x450]
push eax
call fcn.0040b0d5
push 3
pop eax
lea edx, [ebp - 0x480]
mov dword [ebp - 0x6326c], eax
lea ecx, [ebp - 0x528]
call fcn.00425995
mov byte [ebp - 0x63261], 1
test eax, eax
jne 0x4a6c26
mov byte [ebp - 0x63261], bl
mov eax, dword [ebp - 0x6326c]
test al, 2
je 0x4a6c4a
and eax, 0xfffffffd
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x6326c], eax
call fcn.0040b67b
mov eax, dword [ebp - 0x6326c]
mov dword [ebp - 4], 0xe
test al, 1
je 0x4a6c60
lea ecx, [ebp - 0x480]
call fcn.0040b67b
cmp byte [ebp - 0x63261], 0
je 0x4a6dac
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.005a88e0
add esp, 0xc
lea eax, [ebp - 0x4f8]
cmp dword [ebp - 0x4e4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmovae eax, dword [ebp - 0x4f8]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005a88e0
add esp, 0xc
lea eax, [ebp - 0x438]
push 8
pop edi
cmp dword [ebp - 0x424], edi
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x420]
call fcn.004b1da1
push str.360hb_inst.exe
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x4b0]
call fcn.0041154b
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x498]
mov dword [esp], str.__fromusercheck
call fcn.0040b0d5
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x498]
cmp dword [ebp - 0x484], edi
lea eax, [ebp - 0x4b0]
push 1
cmovae ecx, dword [ebp - 0x498]
cmp dword [ebp - 0x49c], edi
push ebx
cmovae eax, dword [ebp - 0x4b0]
push ecx
push eax
push 0x62f200
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x484], edi
lea ecx, [ebp - 0x498]
lea eax, [ebp - 0x4b0]
cmovae ecx, dword [ebp - 0x498]
cmp dword [ebp - 0x49c], edi
push ecx
cmovae eax, dword [ebp - 0x4b0]
push eax
push 0xa0b
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___strInstallExeName:_s__cmd:_s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x498]
call fcn.0040b67b
lea ecx, [ebp - 0x4b0]
call fcn.0040b67b
jmp 0x4a6dd7
push 0x9fd
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___VerifyCabFile_error_
jmp 0x4a6dcc
push 0xa02
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___Path_not_exits_
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffc
pop ebx
lea ecx, [ebp - 0x4f8]
call fcn.0040b67b
lea ecx, [ebp - 0x568]
call fcn.0040ba5f
lea ecx, [ebp - 0x63260]
call fcn.00416d41
lea ecx, [ebp - 0x450]
call fcn.0040b67b
lea ecx, [ebp - 0x510]
call fcn.0040b67b
lea ecx, [ebp - 0x438]
call fcn.0040b67b
lea ecx, [ebp - 0x468]
call fcn.0040b67b
lea ecx, [ebp - 0x4e0]
call fcn.00404812
lea ecx, [ebp - 0x4c8]
call fcn.00404812
lea ecx, [ebp - 0x6327c]
call fcn.00404dbc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00590be8
leave
ret 4