Function at 0x4130e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42a7aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x1c], 0
mov ebx, 1
push 0x440b68
lea ecx, [esp + 0x14]
mov dword [esp + 0x130], ebx
call fcn.004284f2
push 0x440b68
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 2
call fcn.004284f2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.Microsoft_Edge
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x13c]
mov byte [esp + 0x130], 3
push eax
call esi
add esp, 8
test eax, eax
jne 0x413179
push str.MSEdgeHTM_
jmp 0x4131ef
mov ecx, dword [esp + 0x138]
push str.Chrome
push ecx
call esi
add esp, 8
test eax, eax
jne 0x413196
push str.ChromeHTML_
jmp 0x4131ef
mov edx, dword [esp + 0x138]
push str.Firefox
push edx
call esi
add esp, 8
test eax, eax
jne 0x4131b3
push str.FirefoxHTML_
jmp 0x4131ef
mov eax, dword [esp + 0x138]
push str.Opera
push eax
call esi
add esp, 8
test eax, eax
jne 0x4131d0
push str.Applicationsopera.exe_
jmp 0x4131ef
mov ecx, dword [esp + 0x138]
push str.Safari
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4136c8
push str.SafariDownload_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push str.shellopencommand
lea ecx, [esp + 0x18]
call fcn.0042851c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push 0x80000000
mov ecx, ebp
call fcn.00413070
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x413310
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jle 0x413310
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x435074
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
jle 0x413310
mov ecx, dword [esp + 0x10]
add eax, 4
mov ecx, dword [ecx - 8]
cmp eax, ecx
jge 0x413310
push eax
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x413310
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x436df8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413310
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4135d2
mov ecx, dword [esp + 0x138]
push str.Microsoft_Edge
push ecx
call esi
add esp, 8
test eax, eax
jne 0x41333c
push str.MSEdgeHTM_
jmp 0x4133ae
mov edx, dword [esp + 0x138]
push str.Chrome
push edx
call esi
add esp, 8
test eax, eax
jne 0x413359
push str.ChromeHTML_
jmp 0x4133ae
mov eax, dword [esp + 0x138]
push str.Firefox
push eax
call esi
add esp, 8
test eax, eax
jne 0x413376
push str.FirefoxHTML_
jmp 0x4133ae
mov ecx, dword [esp + 0x138]
push str.Opera
push ecx
call esi
add esp, 8
test eax, eax
jne 0x413393
push str.OperaStable_
jmp 0x4133ae
mov edx, dword [esp + 0x138]
push str.Safari
push edx
call esi
add esp, 8
test eax, eax
jne 0x4133b7
push str.SafariDownload_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push str.shellopencommand
lea ecx, [esp + 0x18]
call fcn.0042851c
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push str.SOFTWAREClasses_
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
push 0x80000002
mov ecx, ebp
call fcn.00413070
test eax, eax
lea ecx, [esp + 0x18]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4134ea
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jle 0x4134ea
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x435074
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
jle 0x4134ea
mov edx, dword [esp + 0x10]
add eax, 4
mov ecx, dword [edx - 8]
cmp eax, ecx
jge 0x4134ea
push eax
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4134ea
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x436df8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4134ea
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4135d2
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x138]
push str.Microsoft_Edge
push edx
call esi
add esp, 8
test eax, eax
jne 0x413524
push str.msedge.exe
jmp 0x413596
mov eax, dword [esp + 0x138]
push str.Chrome
push eax
call esi
add esp, 8
test eax, eax
jne 0x413541
push str.chrome.exe
jmp 0x413596
mov ecx, dword [esp + 0x138]
push str.Firefox
push ecx
call esi
add esp, 8
test eax, eax
jne 0x41355e
push str.firefox.exe
jmp 0x413596
mov edx, dword [esp + 0x138]
push str.Opera
push edx
call esi
add esp, 8
test eax, eax
jne 0x41357b
push str.opera.exe
jmp 0x413596
mov eax, dword [esp + 0x138]
push str.Safari
push eax
call esi
add esp, 8
test eax, eax
jne 0x41359f
push str.Safari.exe
lea ecx, [esp + 0x18]
call fcn.0042851c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0x80000002
mov ecx, ebp
call fcn.00413070
test eax, eax
jne 0x4135d2
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jle 0x4135d2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x4136ab
push 0x22
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x413635
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
push 0x22
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x41367f
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4136ab
mov esi, dword [esp + 0x134]
push 0x440b68
mov ecx, esi
call fcn.004284f2
mov dword [esp + 0x1c], 1
jmp 0x4136df
mov esi, dword [esp + 0x134]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
jmp 0x4136df
mov esi, dword [esp + 0x134]
push 0x440b68
mov ecx, esi
call fcn.004284f2
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 8