Function at 0x4216e0
Capabilities:
Check if file exists
Create process on windows
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x43f3b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x868
push ebx
push esi
push edi
push 0x44ffe8
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_1
push 0x44ffe8
lea ecx, [esp + 0x14]
mov dword [esp + 0x880], 0
call sub.MFC42u.DLL_CString::CString_1
push 0x44ffe8
lea ecx, [esp + 0x18]
mov byte [esp + 0x880], 1
call sub.MFC42u.DLL_CString::CString_1
mov bl, 2
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.utils360preview.exe
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407760
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x880], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x884]
test eax, eax
je 0x4217a6
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.__s___s
push edx
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
jmp 0x4217bd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.__s_
push ecx
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.utils
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00407760
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x880], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
xor edx, edx
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov eax, dword [0x44ffd8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0x44
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], 5
jne 0x421939
mov eax, dword [0x44ffdc]
test eax, eax
jne 0x4218ce
lea eax, [esp + 0x74]
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x74]
push ecx
call edi
mov eax, dword [0x44ffe0]
xor esi, esi
test eax, eax
jle 0x421894
lea edx, [esp + 0x74]
push edx
call edi
mov eax, dword [0x44ffe0]
inc esi
cmp esi, eax
jl 0x421883
lea eax, [esp + 0x74]
push str.360Common.dll
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x74]
push edx
call fcn.00405a80
add esp, 4
test eax, eax
je 0x4218c5
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44ffdc], eax
je 0x42192c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov ecx, dword [0x44ffdc]
push str.Get360ProductHistoryManager
push ecx
mov dword [0x44ffd8], eax
call esi
mov edx, dword [0x44ffdc]
push str.Create360FireWareStateFunction
push edx
mov dword [0x44ffd4], eax
call esi
mov dword [0x44ffd0], eax
mov eax, dword [0x44ffdc]
push str.GetFireWallState
push eax
call esi
mov ecx, dword [0x44ffdc]
push str.Create360FireWareStateFunction2
push ecx
mov dword [0x44ffcc], eax
call esi
mov dword [0x44ffc8], eax
mov eax, dword [0x44ffd8]
test eax, eax
je 0x4219f0
call eax
test eax, eax
je 0x4219f0
mov edx, dword [eax]
push eax
call dword [edx + 4]
test eax, eax
je 0x4219f0
test ebx, ebx
je 0x4219f0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421982
push ebx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x421982
call fcn.0043a1e0
push eax
push ebx
call fcn.0043a1f0
add esp, 8
jmp 0x4219f0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4219ea
mov ecx, dword [esp + 0x20]
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0
push str.Q360FunPre
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4219d4
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x4219f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x87c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x87c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x874]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x874
ret 4