Function at 0x403410
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, 0x4b4
mov eax, dword [0x4871a0]
xor eax, esp
mov dword [esp + 0x4b0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 0
call fcn.00403330
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, edi
lea esi, [esp + 0x18]
call fcn.0040d470
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 8], 0
jl 0x40352b
push str._runonce
push ebx
call fcn.004503b8
add esp, 8
test eax, eax
je 0x40352b
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40352b
push str._runonce
mov ecx, esi
push ecx
call fcn.00406080
mov eax, esi
call fcn.00406020
mov eax, esi
call fcn.00405fb0
push 0x104
lea edx, [esp + 0x2b4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
lea ecx, [esp + 0x2bc]
call fcn.00405ee0
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4034f0
push 5
push 0
push esi
lea eax, [esp + 0x2bc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0xc]
cmp ecx, 0x48b9c0
je 0x403512
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403512
push esi
call fcn.004501ef
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0044fcda
mov esp, ebp
pop ebp
ret 0x10
push 0x4749fc
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403545
mov dword [0x48ef78], 1
lea edx, [esp + 0x3c]
push edx
call fcn.00409300
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00403010
cmp al, 1
jne 0x4035c1
cmp dword [esp + 0x58], 0
je 0x4035c1
mov ecx, dword [0x48b9d0]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x14], ecx
call fcn.00403280
mov esi, dword [esp + 0x10]
cmp al, 1
jne 0x4035a0
cmp dword [esi - 8], 0
je 0x4035a0
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.0040e240
call fcn.0042c9e0
lea eax, [esi - 0xc]
cmp eax, 0x48b9c0
je 0x4035c1
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4035c1
push esi
call fcn.004501ef
add esp, 4
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00405aa0
call fcn.00402f90
test eax, eax
je 0x4036bc
cmp dword [0x48ef78], 0
jne 0x403674
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x18]
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_XP_NOT_SUPPORTED
lea edi, [esp + 0x10]
call fcn.00404d20
mov ecx, dword [eax]
push 0x41
push esi
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
cmp edx, 0x48b9c0
je 0x403647
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403647
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004501ef
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x48b9c0
je 0x403674
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403674
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004501ef
add esp, 4
lea eax, [esp + 0x3c]
push eax
call fcn.0040a500
lea ecx, [ebx - 0xc]
cmp ecx, 0x48b9c0
je 0x4036a0
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4036a0
push esi
call fcn.004501ef
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0044fcda
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
cmp dword [0x48ef78], 0
mov esi, dword [esp + 0x14]
jne 0x4036eb
push 0x474a4c
jmp 0x4036f0
push str.Q360InstallerMainWndSilent
call fcn.00402cd0
add esp, 4
push 0x474ab0
push 0
call fcn.00451da5
add esp, 8
call fcn.00404c60
call fcn.00402bb0
call fcn.00404bb0
mov esi, eax
call fcn.0042e4c0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.00429ab0
test eax, eax
je 0x4037ad
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40378c
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403751
push 9
jmp 0x403753
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 ecx, [esp + 0x3c]
push ecx
call fcn.0040a500
lea edx, [ebx - 0xc]
cmp edx, 0x48b9c0
je 0x403512
lea esi, [ebx - 0xc]
jmp 0x4034fe
call fcn.00401000
mov edi, eax
call fcn.0042e9d0
call fcn.004261f0
mov esi, eax
call fcn.00426230
lea esi, [esp + 0x2c]
call fcn.00429010
call fcn.00427980
test eax, eax
jne 0x40383c
cmp dword [0x48ef78], eax
jne 0x40381b
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x10]
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_MESSAGEBOX_NONET
lea edi, [esp + 0x20]
call fcn.00404d20
mov edx, dword [eax]
push 0x40
mov ecx, esi
call fcn.004183e0
add esp, 4
mov esi, edi
call fcn.0040e0c0
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea ecx, [esp + 0x2c]
call fcn.00429070
lea eax, [esp + 0x3c]
push eax
call fcn.0040a500
lea esi, [esp + 0x18]
call fcn.0040e0c0
jmp 0x403512
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xb2]
push edx
mov word [esp + 0xb4], cx
call fcn.00453e20
add esp, 0xc
lea eax, [esp + 0xa8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403938
cmp dword [0x48ef78], eax
jne 0x403bc6
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x14]
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_STR_TEMP_PATHEXCEPTION
lea edi, [esp + 0x10]
call fcn.00404d20
mov eax, dword [eax]
push 0x40
mov ecx, esi
mov edx, eax
call fcn.004183e0
add esp, 4
lea esi, [esp + 0x10]
mov edi, eax
call fcn.0040e0c0
lea esi, [esp + 0x14]
call fcn.0040e0c0
cmp edi, 1
jne 0x403b69
mov edx, dword [0x48b9d0]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.004049a0
test eax, eax
jne 0x40392f
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x14]
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_STR_TEMP_REPAIR_FAIL
lea edi, [esp + 0x20]
call fcn.00404d20
mov edx, dword [eax]
push 0x40
mov ecx, esi
call fcn.004183e0
add esp, 4
mov esi, edi
call fcn.0040e0c0
lea esi, [esp + 0x14]
jmp 0x40380d
lea esi, [esp + 0x10]
call fcn.0040e0c0
mov eax, dword [0x48b9d0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040aaa0
lea ecx, [esp + 0x6c]
push ecx
call fcn.004095a0
mov ecx, 0x8f
lea edx, [esp + 0x14]
call fcn.0040d380
lea ecx, [esp + 0x14]
call fcn.00402440
mov ecx, 0x13c
lea edx, [esp + 0x14]
mov ebx, eax
call fcn.0040d380
test ebx, ebx
je 0x40398f
lea ecx, [esp + 0x14]
call fcn.00402440
mov ebx, eax
mov ecx, 0x13d
lea edx, [esp + 0x14]
call fcn.0040d380
test ebx, ebx
je 0x4039ac
lea ecx, [esp + 0x14]
call fcn.00402440
mov ebx, eax
mov ecx, 0x94
lea edx, [esp + 0x14]
call fcn.0040d380
test ebx, ebx
je 0x4039c9
lea ecx, [esp + 0x14]
call fcn.00402440
mov ebx, eax
mov ecx, 0x9b
lea edx, [esp + 0x10]
call fcn.0040d380
mov ecx, dword [esp + 0x10]
push str.ini_url_default
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004067a0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0040dec0
lea esi, [esp + 0x24]
call fcn.0040e0c0
test ebx, ebx
je 0x403a12
lea ecx, [esp + 0x14]
call fcn.00402440
mov ebx, eax
mov ecx, 0x8e
lea edx, [esp + 0x10]
call fcn.0040d380
push str.ini_url_win10_ts
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x74]
push edx
call fcn.004067a0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0040dec0
lea esi, [esp + 0x24]
call fcn.0040e0c0
test ebx, ebx
je 0x403a5b
lea ecx, [esp + 0x14]
call fcn.00402440
mov ebx, eax
mov ecx, 0x91
lea edx, [esp + 0x10]
call fcn.0040d380
push str.ini_url_win10_tse
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004067a0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0040dec0
lea esi, [esp + 0x24]
call fcn.0040e0c0
test ebx, ebx
je 0x403aaa
lea ecx, [esp + 0x14]
call fcn.00402440
test eax, eax
jne 0x403be7
cmp dword [0x48ef78], 0
jne 0x403b00
mov ecx, str.IDS_QUIT
lea edi, [esp + 0x28]
mov dword [esp + 0x20], 7
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_OFFICIAL_SITE
lea edi, [esp + 0x34]
call fcn.00404d20
mov ebx, dword [eax]
mov ecx, str.IDS_URL_ERROR
lea edi, [esp + 0x24]
call fcn.00404d20
mov eax, dword [eax]
push esi
push ebx
push eax
call fcn.004185b0
add esp, 0xc
mov byte [esp + 0x1f], 1
cmp eax, 1
je 0x403b05
mov byte [esp + 0x1f], 0
mov ebx, dword [esp + 0x20]
test bl, 4
je 0x403b1a
lea esi, [esp + 0x24]
and ebx, 0xfffffffb
call fcn.0040e0c0
test bl, 2
je 0x403b2b
lea esi, [esp + 0x34]
and ebx, 0xfffffffd
call fcn.0040e0c0
test bl, 1
je 0x403b39
lea esi, [esp + 0x28]
call fcn.0040e0c0
cmp byte [esp + 0x1f], 0
je 0x403b4d
push str.http:__www.360totalsecurity.com
call fcn.00449680
add esp, 4
lea edx, [esp + 0x6c]
push edx
call fcn.00409a50
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea esi, [esp + 0x14]
jmp 0x403816
mov ecx, str.IDS_TITLE
lea edi, [esp + 0x10]
call fcn.00404d20
mov esi, dword [eax]
mov ecx, str.IDS_STR_TEMP_ERROR_CANNOTSETUP
lea edi, [esp + 0x20]
call fcn.00404d20
mov edx, dword [eax]
push 0x40
mov ecx, esi
call fcn.004183e0
add esp, 4
mov esi, edi
call fcn.0040e0c0
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea ecx, [esp + 0x2c]
call fcn.00429070
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a500
lea esi, [esp + 0x18]
call fcn.0040e0c0
jmp 0x403512
lea ecx, [esp + 0x2c]
call fcn.00429070
lea edx, [esp + 0x3c]
push edx
call fcn.0040a500
lea esi, [esp + 0x18]
call fcn.0040e0c0
jmp 0x403512
call fcn.0042b380
mov esi, eax
push esi
call fcn.0042b540
test eax, eax
je 0x403d73
call fcn.0042b7a0
test eax, eax
je 0x403d73
lea ecx, [esp + 0x5c]
push ecx
call fcn.00426cd0
mov edx, dword [esp + 0x64]
cmp dword [edx - 8], 0
je 0x403c2c
call fcn.00404bb0
push eax
lea eax, [esp + 0x68]
call fcn.0042e310
call fcn.0042c5e0
call fcn.0042c2e0
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str._tswin10
push edi
call esi
test eax, eax
je 0x403c58
mov dword [0x48b814], 2
jmp 0x403c7f
push str._tsewin10
push edi
call esi
test eax, eax
je 0x403c70
mov dword [0x48b814], 3
jmp 0x403c7f
mov eax, dword [0x48b814]
cmp eax, 2
je 0x403c7f
cmp eax, 3
jne 0x403cc1
call fcn.0041bbb0
cmp eax, 1
je 0x403cc1
lea ecx, [esp + 0x5c]
call fcn.00426d80
lea eax, [esp + 0x6c]
push eax
call fcn.00409a50
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea esi, [esp + 0x14]
call fcn.0040e0c0
lea ecx, [esp + 0x2c]
call fcn.00429070
lea ecx, [esp + 0x3c]
push ecx
jmp 0x403dc2
push 0x99
call fcn.004150b0
add esp, 4
cmp dword [0x48ef78], 0
jne 0x403cdc
call fcn.00402110
mov edx, dword [ebp + 0x14]
push edx
call fcn.00402d30
mov edi, eax
add esp, 4
mov eax, 0x48f1fc
call fcn.00429b30
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402c00
call fcn.00404510
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00404bb0
call fcn.0042e4a0
lea ecx, [esp + 0x5c]
call fcn.00426d80
lea eax, [esp + 0x6c]
push eax
call fcn.00409a50
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea esi, [esp + 0x14]
call fcn.0040e0c0
lea ecx, [esp + 0x2c]
call fcn.00429070
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a500
lea esi, [esp + 0x18]
call fcn.0040e0c0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0044fcda
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x48ef78], 0
jne 0x403d98
mov ecx, str.IDS_LOAD_P2SP_ERROR
lea edi, [esp + 0x28]
call fcn.00404d20
mov ecx, dword [eax]
call fcn.00418220
mov esi, edi
call fcn.0040e0c0
lea edx, [esp + 0x6c]
push edx
call fcn.00409a50
lea esi, [esp + 0x10]
call fcn.0040e0c0
lea esi, [esp + 0x14]
call fcn.0040e0c0
lea ecx, [esp + 0x2c]
call fcn.00429070
lea eax, [esp + 0x3c]
push eax
call fcn.0040a500
lea esi, [esp + 0x18]
call fcn.0040e0c0
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0044fcda
mov esp, ebp
pop ebp
ret 0x10