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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e875f
mov eax, dword fs:[0]
push eax
mov eax, 0x63270
call fcn.005933d0
mov eax, dword [0x6c75ac]
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 0x4a7b36
mov esi, dword [esi]
lea eax, [ebp - 0x6327c]
mov ecx, esi
push eax
call fcn.004368f3
pop ecx
lea ecx, [ebp - 0x6327c]
call fcn.004056d7
test al, al
jne 0x4a7b73
push 0x9fc
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___value_is_not_object:_s
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffb
pop ebx
jmp 0x4a8255
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.00437022
push str.strCabVer
lea ecx, [ebp - 0x6327c]
call fcn.00405401
lea edx, [ebp - 0x4e0]
mov ecx, eax
call fcn.00437022
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.00430ab2
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4a7c0a
mov eax, dword [eax]
push eax
push 0xa04
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.0040b67e
cmp dword [ebp - 0x4b8], 0
jne 0x4a7c42
or ebx, 0xffffffff
jmp 0x4a823f
lea ecx, [ebp - 0x468]
call fcn.004250d6
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 0x4a7cc8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push ebx
cmovae eax, dword [ebp - 0x468]
push eax
call esi
test eax, eax
jne 0x4a7cc8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
cmovae eax, dword [ebp - 0x468]
push eax
push 0xa0e
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4a8234
push str.360hb_tmp2_
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x438]
call fcn.0041154e
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 0x4a7d60
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.00425b4a
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 0x4a7d60
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xa1a
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___Install_version_dir_is_exits:_s
jmp 0x4a7da0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4a7db0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xa21
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4a8229
push 0x62aa1c
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.00430ab2
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x480]
call fcn.0041151f
pop ecx
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a7dfa
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040b220
lea ecx, [ebp - 0x480]
call fcn.0040b67e
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 5
call fcn.0040b67e
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 0x4a7e9b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4a7e9b
push 0xa2b
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_err
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffe
pop ebx
jmp 0x4a821e
push str.360hb_inst.cab
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.0041154e
pop ecx
lea ecx, [ebp - 0x63260]
call fcn.00416a73
lea ecx, [ebp - 0x568]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 0xb
call fcn.005926f7
pop ecx
mov dword [ebp - 0x63268], eax
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040b6b1
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4c8]
mov ecx, esi
push eax
call fcn.0040b8cb
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.00430a1f
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040b9f4
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0xb
call fcn.00404812
push 0xb4
mov ecx, esi
call fcn.0040b8d4
push esi
call fcn.0040bde3
test eax, eax
je 0x4a7f72
push eax
push 0xa3a
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___download_err_code_d
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffd
pop ebx
jmp 0x4a81fd
push str.360hb_inst.zip
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x4f8]
call fcn.0041154e
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 0x4a81d8
cmp dword [ebp - 0x43c], esi
lea ecx, [ebp - 0x450]
cmovae ecx, dword [ebp - 0x450]
call fcn.004258e3
test al, al
je 0x4a803b
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.00425998
mov byte [ebp - 0x63261], 1
test eax, eax
jne 0x4a8041
mov byte [ebp - 0x63261], bl
mov eax, dword [ebp - 0x6326c]
test al, 2
je 0x4a8065
and eax, 0xfffffffd
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x6326c], eax
call fcn.0040b67e
mov eax, dword [ebp - 0x6326c]
mov dword [ebp - 4], 0xe
test al, 1
je 0x4a807b
lea ecx, [ebp - 0x480]
call fcn.0040b67e
cmp byte [ebp - 0x63261], 0
je 0x4a81c7
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.005aa3d0
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.005aa3d0
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.004b34d8
push str.360hb_inst.exe
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x4b0]
call fcn.0041154e
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 0x6311f8
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 0xa58
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___strInstallExeName:_s__cmd:_s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x498]
call fcn.0040b67e
lea ecx, [ebp - 0x4b0]
call fcn.0040b67e
jmp 0x4a81f2
push 0xa4a
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___VerifyCabFile_error_
jmp 0x4a81e7
push 0xa4f
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.0040b67e
lea ecx, [ebp - 0x568]
call fcn.0040ba62
lea ecx, [ebp - 0x63260]
call fcn.00416d44
lea ecx, [ebp - 0x450]
call fcn.0040b67e
lea ecx, [ebp - 0x510]
call fcn.0040b67e
lea ecx, [ebp - 0x438]
call fcn.0040b67e
lea ecx, [ebp - 0x468]
call fcn.0040b67e
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.005926d8
leave
ret 4