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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f14a8
mov eax, dword fs:[0]
push eax
mov eax, 0x63270
call fcn.0059b4a0
mov eax, dword [0x6d35ac]
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 0x4af126
mov esi, dword [esi]
lea eax, [ebp - 0x6327c]
mov ecx, esi
push eax
call fcn.0043b9c3
pop ecx
lea ecx, [ebp - 0x6327c]
call fcn.004056d7
test al, al
jne 0x4af163
push 0xa08
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___value_is_not_object:_s
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffb
pop ebx
jmp 0x4af845
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.0043c0f2
push str.strCabVer
lea ecx, [ebp - 0x6327c]
call fcn.00405401
lea edx, [ebp - 0x4e0]
mov ecx, eax
call fcn.0043c0f2
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.00435b82
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4af1fa
mov eax, dword [eax]
push eax
push 0xa10
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 0x4af232
or ebx, 0xffffffff
jmp 0x4af82f
lea ecx, [ebp - 0x468]
call fcn.00425588
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 0x4af2b8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push ebx
cmovae eax, dword [ebp - 0x468]
push eax
call esi
test eax, eax
jne 0x4af2b8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
cmovae eax, dword [ebp - 0x468]
push eax
push 0xa1a
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4af824
push str.360hb_tmp2_
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x438]
call fcn.00411559
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 0x4af350
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.0042602c
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 0x4af350
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xa26
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___Install_version_dir_is_exits:_s
jmp 0x4af390
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4af3a0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0xa2d
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_exits:_s
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffe
pop ebx
jmp 0x4af819
push 0x633b6c
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.00435b82
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x480]
call fcn.0041152a
pop ecx
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4af3ea
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 0x4af48b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4af48b
push 0xa37
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___CreateDirectory_err
call fcn.0040a649
add esp, 0xc
push 0xfffffffffffffffe
pop ebx
jmp 0x4af80e
push str.360hb_inst.cab
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.00411559
pop ecx
lea ecx, [ebp - 0x63260]
call fcn.00416c9c
lea ecx, [ebp - 0x568]
call fcn.0040ba47
push 0x170
mov byte [ebp - 4], 0xb
call fcn.0059a7c1
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.00435a2c
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 0x4af562
push eax
push 0xa46
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___download_err_code_d
call fcn.0040a649
add esp, 0x10
push 0xfffffffffffffffd
pop ebx
jmp 0x4af7ed
push str.360hb_inst.zip
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x4f8]
call fcn.00411559
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 0x4af7c8
cmp dword [ebp - 0x43c], esi
lea ecx, [ebp - 0x450]
cmovae ecx, dword [ebp - 0x450]
call fcn.00425dc5
test al, al
je 0x4af62b
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.00425e7a
mov byte [ebp - 0x63261], 1
test eax, eax
jne 0x4af631
mov byte [ebp - 0x63261], bl
mov eax, dword [ebp - 0x6326c]
test al, 2
je 0x4af655
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 0x4af66b
lea ecx, [ebp - 0x480]
call fcn.0040b67e
cmp byte [ebp - 0x63261], 0
je 0x4af7b7
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.005b24a0
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.005b24a0
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.004badab
push str.360hb_inst.exe
lea edx, [ebp - 0x510]
lea ecx, [ebp - 0x4b0]
call fcn.00411559
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 0x63afc8
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 0xa64
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 0x4af7e2
push 0xa56
push str.HuabaoMainFrame::ClickUpgrade
push str.__s__d___VerifyCabFile_error_
jmp 0x4af7d7
push 0xa5b
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.00416f6d
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.0059a7a2
leave
ret 4