Function at 0x401bf0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x463070]
xor eax, esp
mov dword [esp + 0x490], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, edi
lea esi, [esp + 0x18]
call fcn.00409580
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 8], 0
jl 0x401d06
push str._runonce
push ebx
call fcn.00433f8e
add esp, 8
test eax, eax
je 0x401d06
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x401d06
push str._runonce
mov ecx, esi
push ecx
call fcn.00409370
mov eax, esi
call fcn.00409310
mov eax, esi
call fcn.004092a0
push 0x104
lea edx, [esp + 0x294]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
lea ecx, [esp + 0x29c]
call fcn.004091d0
mov esi, dword [esp + 0x18]
test eax, eax
je 0x401ccb
push 5
push 0
push esi
lea eax, [esp + 0x29c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0xc]
cmp ecx, 0x4674bc
je 0x401ced
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401ced
push esi
call fcn.0043406a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret 0x10
push 0x45642c
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x401d20
mov dword [0x46a298], 1
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00408d90
call fcn.00401b70
test eax, eax
je 0x401e10
cmp dword [0x46a298], 0
jne 0x401dd3
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x18]
call fcn.00403080
mov esi, dword [eax]
mov ecx, str.IDS_XP_NOT_SUPPORTED
lea edi, [esp + 0x10]
call fcn.00403080
mov edx, dword [eax]
push 0x41
push esi
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x401da6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401da6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043406a
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x401dd3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401dd3
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043406a
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x4674bc
je 0x401df4
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401df4
push esi
call fcn.0043406a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
cmp dword [0x46a298], 0
mov esi, dword [esp + 0x10]
jne 0x401e3f
push 0x456474
jmp 0x401e44
push str.Q360InstallerMainWndSilent
call fcn.004018c0
add esp, 4
push 0x4564d8
push 0
call fcn.00435907
add esp, 8
call fcn.00402fc0
call fcn.004017a0
call fcn.00402f10
mov esi, eax
call fcn.00425d40
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
call fcn.00422280
test eax, eax
je 0x401ef6
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401ee0
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401ea5
push 9
jmp 0x401ea7
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call edi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call edi
lea eax, [ebx - 0xc]
cmp eax, 0x4674bc
je 0x401ced
lea esi, [ebx - 0xc]
jmp 0x401cd9
call fcn.00401000
mov edi, eax
call fcn.00426250
call fcn.0041f860
mov esi, eax
call fcn.0041f8a0
lea esi, [esp + 0x2c]
call fcn.004217e0
call fcn.00412580
test eax, eax
jne 0x401f7b
cmp dword [0x46a298], eax
jne 0x401f64
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x10]
call fcn.00403080
mov ecx, str.IDS_MESSAGEBOX_NONET
mov esi, dword [eax]
lea edi, [esp + 0x20]
call fcn.00403080
mov edx, dword [eax]
push 0x40
mov ecx, esi
call fcn.004151b0
add esp, 4
mov esi, edi
call fcn.004062b0
lea esi, [esp + 0x10]
call fcn.004062b0
lea ecx, [esp + 0x2c]
call fcn.00421840
lea esi, [esp + 0x18]
call fcn.004062b0
jmp 0x401ced
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x92]
push edx
mov word [esp + 0x94], cx
call fcn.00437380
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402073
cmp dword [0x46a298], eax
jne 0x401f64
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x14]
call fcn.00403080
mov esi, dword [eax]
mov ecx, str.IDS_STR_TEMP_PATHEXCEPTION
lea edi, [esp + 0x10]
call fcn.00403080
mov eax, dword [eax]
push 0x40
mov ecx, esi
mov edx, eax
call fcn.004151b0
add esp, 4
lea esi, [esp + 0x10]
mov edi, eax
call fcn.004062b0
lea esi, [esp + 0x14]
call fcn.004062b0
cmp edi, 1
jne 0x4022a4
mov edx, dword [0x4674cc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00402d00
test eax, eax
jne 0x40206a
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x14]
call fcn.00403080
mov esi, dword [eax]
mov ecx, str.IDS_STR_TEMP_REPAIR_FAIL
lea edi, [esp + 0x20]
call fcn.00403080
mov edx, dword [eax]
push 0x40
mov ecx, esi
call fcn.004151b0
add esp, 4
mov esi, edi
call fcn.004062b0
lea esi, [esp + 0x14]
jmp 0x401f56
lea esi, [esp + 0x10]
call fcn.004062b0
mov eax, dword [0x4674cc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
push eax
call fcn.004033a0
lea ecx, [esp + 0x4c]
push ecx
call fcn.00403b90
mov ecx, 0x8f
lea edx, [esp + 0x14]
call fcn.004099d0
lea ecx, [esp + 0x14]
call fcn.00401030
mov ecx, 0x13c
lea edx, [esp + 0x14]
mov ebx, eax
call fcn.004099d0
test ebx, ebx
je 0x4020ca
lea ecx, [esp + 0x14]
call fcn.00401030
mov ebx, eax
mov ecx, 0x13d
lea edx, [esp + 0x14]
call fcn.004099d0
test ebx, ebx
je 0x4020e7
lea ecx, [esp + 0x14]
call fcn.00401030
mov ebx, eax
mov ecx, 0x94
lea edx, [esp + 0x14]
call fcn.004099d0
test ebx, ebx
je 0x402104
lea ecx, [esp + 0x14]
call fcn.00401030
mov ebx, eax
mov ecx, 0x9b
lea edx, [esp + 0x10]
call fcn.004099d0
mov ecx, dword [esp + 0x10]
push str.ini_url_default
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00404d30
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00408d10
lea esi, [esp + 0x24]
call fcn.004062b0
test ebx, ebx
je 0x40214d
lea ecx, [esp + 0x14]
call fcn.00401030
mov ebx, eax
mov ecx, 0x8e
lea edx, [esp + 0x10]
call fcn.004099d0
push str.ini_url_win10_ts
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
call fcn.00404d30
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00408d10
lea esi, [esp + 0x24]
call fcn.004062b0
test ebx, ebx
je 0x402196
lea ecx, [esp + 0x14]
call fcn.00401030
mov ebx, eax
mov ecx, 0x91
lea edx, [esp + 0x10]
call fcn.004099d0
push str.ini_url_win10_tse
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00404d30
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00408d10
lea esi, [esp + 0x24]
call fcn.004062b0
test ebx, ebx
je 0x4021e5
lea ecx, [esp + 0x14]
call fcn.00401030
test eax, eax
jne 0x4022bc
cmp dword [0x46a298], 0
jne 0x40223b
mov ecx, str.IDS_QUIT
lea edi, [esp + 0x28]
mov dword [esp + 0x20], 7
call fcn.00403080
mov esi, dword [eax]
mov ecx, str.IDS_OFFICIAL_SITE
lea edi, [esp + 0x34]
call fcn.00403080
mov ebx, dword [eax]
mov ecx, str.IDS_URL_ERROR
lea edi, [esp + 0x24]
call fcn.00403080
mov eax, dword [eax]
push esi
push ebx
push eax
call fcn.00415380
add esp, 0xc
mov byte [esp + 0x1f], 1
cmp eax, 1
je 0x402240
mov byte [esp + 0x1f], 0
mov ebx, dword [esp + 0x20]
test bl, 4
je 0x402255
lea esi, [esp + 0x24]
and ebx, 0xfffffffb
call fcn.004062b0
test bl, 2
je 0x402266
lea esi, [esp + 0x34]
and ebx, 0xfffffffd
call fcn.004062b0
test bl, 1
je 0x402274
lea esi, [esp + 0x28]
call fcn.004062b0
cmp byte [esp + 0x1f], 0
je 0x402288
push str.http:__www.360totalsecurity.com
call fcn.004304c0
add esp, 4
lea edx, [esp + 0x4c]
push edx
call fcn.004038b0
lea esi, [esp + 0x10]
call fcn.004062b0
lea esi, [esp + 0x14]
jmp 0x401f5f
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x10]
call fcn.00403080
mov ecx, str.IDS_STR_TEMP_ERROR_CANNOTSETUP
jmp 0x401f3b
call fcn.00423670
mov esi, eax
push esi
call fcn.00423830
test eax, eax
je 0x402406
call fcn.00423a90
test eax, eax
je 0x402406
lea eax, [esp + 0x3c]
push eax
call fcn.00420340
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 8], 0
je 0x402301
call fcn.00402f10
push eax
lea eax, [esp + 0x48]
call fcn.00425b90
call fcn.004248d0
call fcn.004245d0
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str._tswin10
push edi
call esi
test eax, eax
je 0x40232d
mov dword [0x4673bc], 2
jmp 0x402354
push str._tsewin10
push edi
call esi
test eax, eax
je 0x402345
mov dword [0x4673bc], 3
jmp 0x402354
mov eax, dword [0x4673bc]
cmp eax, 2
je 0x402354
cmp eax, 3
jne 0x40236c
call fcn.004189e0
cmp eax, 1
je 0x40236c
lea ecx, [esp + 0x3c]
call fcn.004203f0
jmp 0x40242b
push 0x99
call fcn.00412ee0
mov eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.00401920
mov edi, eax
add esp, 4
mov eax, 0x46a51c
call fcn.00422300
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004017f0
call fcn.00402870
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00402f10
call fcn.00425d20
lea ecx, [esp + 0x3c]
call fcn.004203f0
lea ecx, [esp + 0x4c]
push ecx
call fcn.004038b0
lea esi, [esp + 0x10]
call fcn.004062b0
lea esi, [esp + 0x14]
call fcn.004062b0
lea ecx, [esp + 0x2c]
call fcn.00421840
lea esi, [esp + 0x18]
call fcn.004062b0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.00433af9
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x46a298], 0
jne 0x40242b
mov ecx, str.IDS_LOAD_P2SP_ERROR
lea edi, [esp + 0x28]
call fcn.00403080
mov ecx, dword [eax]
call fcn.00414ff0
mov esi, edi
call fcn.004062b0
lea edx, [esp + 0x4c]
push edx
call fcn.004038b0
lea esi, [esp + 0x10]
call fcn.004062b0
lea esi, [esp + 0x14]
call fcn.004062b0
lea ecx, [esp + 0x2c]
call fcn.00421840
lea esi, [esp + 0x18]
call fcn.004062b0
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00433af9
mov esp, ebp
pop ebp
ret 0x10