Function at 0x4170ad
Capabilities:
Accept command line arguments
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x2a8
lea ebp, [esp - 4]
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x2a8], eax
push 0x14
mov eax, 0x4a7ecd
call fcn.00471d54
mov esi, ecx
push 0x4ab7b8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x354]
push str.icon
mov ecx, edi
call fcn.0042cdc6
push str.text
mov ecx, edi
mov dword [esi + 0x2fc], eax
call fcn.0042cdc6
push str.btnInstall
mov ecx, edi
mov dword [esi + 0x300], eax
call fcn.0042cdc6
push str.confirm_tip
mov ecx, edi
mov dword [esi + 0x30c], eax
call fcn.0042cdc6
push str.InstallPath
mov ecx, edi
mov dword [esi + 0x304], eax
call fcn.0042cdc6
push str.richProtocal
mov ecx, edi
mov dword [esi + 0x34c], eax
call fcn.0042cdc6
push str.confirm_checkbox
mov ecx, edi
mov dword [esi + 0x350], eax
call fcn.0042cdc6
push str.HideCustomInstall
mov ecx, edi
mov dword [esi + 0x308], eax
call fcn.0042cdc6
push str.ShowCustomInstall
mov ecx, edi
mov dword [esi + 0x314], eax
call fcn.0042cdc6
push str.BottomUI
mov ecx, edi
mov dword [esi + 0x318], eax
call fcn.0042cdc6
push str.CommonInstallUI
mov ecx, edi
mov dword [esi + 0x31c], eax
call fcn.0042cdc6
push str.CustomIntallUI
mov ecx, edi
mov dword [esi + 0x320], eax
call fcn.0042cdc6
push str.InstallProgressUI
mov ecx, edi
mov dword [esi + 0x324], eax
call fcn.0042cdc6
push str.InstallFailedUI
mov ecx, edi
mov dword [esi + 0x328], eax
call fcn.0042cdc6
push str.InstallSuccedUI
mov ecx, edi
mov dword [esi + 0x32c], eax
call fcn.0042cdc6
push str.UpgradeInstallUI
mov ecx, edi
mov dword [esi + 0x330], eax
call fcn.0042cdc6
push str.InstallView
mov ecx, edi
mov dword [esi + 0x334], eax
call fcn.0042cdc6
push str.ProtocalView
mov ecx, edi
mov dword [esi + 0x338], eax
call fcn.0042cdc6
push str.ReplaceExplorerCheckBox
mov ecx, edi
mov dword [esi + 0x33c], eax
call fcn.0042cdc6
mov dword [esi + 0x340], eax
push str.installProgress
mov ecx, edi
call fcn.0042cdc6
push str.installProgressText
mov ecx, edi
mov dword [esi + 0x348], eax
call fcn.0042cdc6
push str.closebtn
mov ecx, edi
mov dword [esi + 0x344], eax
call fcn.0042cdc6
push 0x4ab7c8
mov dword [esi + 0x310], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x417293
mov dword [esi + 0x590], 1
xor eax, eax
push 0x4e
mov word [ebp + 0x258], ax
xor edi, edi
lea eax, [ebp + 0x25a]
push edi
push eax
call fcn.00472470
add esp, 0xc
push 0x4d7a48
lea ecx, [ebp - 0x10]
call fcn.0040b5f9
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360FileBrowser.exe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040b983
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push 0x20019
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push 0x80000001
mov byte [ebp - 4], 2
call fcn.0040c8c2
test eax, eax
jne 0x41736d
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00472470
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x103
call fcn.0040c903
test eax, eax
jne 0x41736d
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41736d
push 0x28
lea eax, [ebp + 0x258]
push eax
lea eax, [ebp]
push eax
call fcn.0040ccae
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [esi + 0x584], 1
call ebx
lea eax, [ebp]
push eax
call ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b8d1
cmp dword [esi + 0x584], edi
jne 0x4173b1
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00472470
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b8d1
mov ecx, dword [esi + 0x34c]
mov ebx, dword [ebp - 0x10]
cmp ecx, edi
je 0x4173c4
mov eax, dword [ecx]
push ebx
call dword [eax + 0x30]
cmp dword [esi + 0x584], edi
jne 0x4173d8
mov ecx, esi
call fcn.004161e5
jmp 0x4174a0
mov ecx, dword [esi + 0x31c]
cmp ecx, edi
je 0x4173eb
mov eax, dword [ecx]
push edi
call dword [eax + 0xc8]
mov ecx, dword [esi + 0x320]
cmp ecx, edi
je 0x4173fe
mov eax, dword [ecx]
push edi
call dword [eax + 0xc8]
xor eax, eax
push 0x4e
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.00472470
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00472470
add esp, 0x18
push 0x104
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x28
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp]
push eax
call fcn.0040ccae
lea eax, [ebp + 0x258]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.00416393
add esp, 0x14
test eax, eax
jge 0x41748c
mov ecx, dword [esi + 0x32c]
cmp ecx, edi
je 0x41747e
mov eax, dword [ecx]
push 1
call dword [eax + 0xc8]
cmp dword [esi + 0x590], edi
je 0x4174fe
push edi
push edi
push 0x10
jmp 0x4174f7
mov ecx, dword [esi + 0x334]
cmp ecx, edi
je 0x4174a0
mov eax, dword [ecx]
push 1
call dword [eax + 0xc8]
cmp dword [esi + 0x590], edi
jne 0x4174b0
cmp dword [esi + 0x584], edi
je 0x4174c1
mov ecx, dword [esi + 0x308]
cmp ecx, edi
je 0x4174c1
push 1
call fcn.0043e8d4
cmp dword [esi + 0x590], edi
je 0x4174d2
push edi
push edi
push 0x2400
jmp 0x4174f7
cmp dword [esi + 0x584], edi
je 0x4174fe
push str._Force
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4174fe
push edi
push edi
push 0x2401
mov ecx, esi
call fcn.0042b00b
lea ecx, [ebp - 0x1c]
call fcn.0040c84d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040b453
lea ecx, [ebx - 0x10]
call fcn.0040b453
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2a8]
xor ecx, ebp
call fcn.00471830
add ebp, 0x2ac
leave
ret