Function at 0x40fba4
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x240
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x238], eax
mov ecx, str.urlmon.dll
mov edx, esi
push 0x532198
push 0x532194
call fcn.0040feb6
add esp, 8
test eax, eax
jne 0x40fc58
mov ecx, str.ieframe.dll
mov edx, esi
push 0x5321a0
push 0x53219c
call fcn.0040feb6
add esp, 8
test eax, eax
jne 0x40fc58
mov ecx, str.wininet.dll
mov edx, esi
push 0x5321a8
push 0x5321a4
call fcn.0040feb6
add esp, 8
test eax, eax
jne 0x40fc58
mov ecx, str.iertutil.dll
mov edx, esi
push 0x5321b0
push 0x5321ac
call fcn.0040feb6
add esp, 8
test eax, eax
jne 0x40fc58
mov ecx, str.edgehtml.dll
mov edx, esi
push 0x5321d8
push 0x5321d4
call fcn.0040feb6
add esp, 8
test eax, eax
je 0x40fcb2
xor edi, edi
lea esi, [esp + 0x30]
push 0x208
push edi
push esi
call fcn.004b8bc0
add esp, 0xc
push 0x103
push esi
push edi
call dword [0x5321e0]
push 0x5c
push esi
call fcn.004b92ba
add esp, 8
test eax, eax
je 0x40fcec
mov word [eax], 0
call fcn.0040fb69
mov ecx, str._smshtmpad.exe
mov edx, str._siexplore.exe
test al, al
cmovne edx, ecx
push esi
push edx
push ebx
push dword [ebp + 0xc]
call fcn.0040ffd3
add esp, 0x10
jmp 0x40fd2f
mov ecx, str.iedvtool.dll
mov edx, esi
push 0x5321b8
push 0x5321b4
call fcn.0040feb6
add esp, 8
test eax, eax
jne 0x40fcec
mov ecx, str.mshtml.dll
mov edx, esi
push 0x5321c0
push 0x5321bc
call fcn.0040feb6
add esp, 8
test eax, eax
je 0x40fd49
xor esi, esi
lea edi, [esp + 0x30]
push 0x208
push esi
push edi
call fcn.004b8bc0
add esp, 0xc
push esi
push 0x26
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push edi
call fcn.004d0280
add esp, 8
dec ebx
push edi
push 0x4e41d0
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
call fcn.0041002a
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x238]
xor ecx, ebp
call fcn.004af401
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.Xbdyy.dll
mov edx, esi
call fcn.00410088
test eax, eax
je 0x40fdb9
lea esi, [esp + 0x30]
push 0x208
push 0
push esi
call fcn.004b8bc0
add esp, 0xc
mov edi, dword [0x5321e0]
push str.Xbdyy.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x103
push esi
push eax
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call edi
push esi
call edi
push str.baiduplayerbrowser.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40feae
push esi
push 0x4e41d0
jmp 0x40fca4
lea edi, [esp + 0x30]
push 0x208
push 0
push edi
call fcn.004b8bc0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [eax + 0xc], xmm0
movaps xmmword [eax], xmm0
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40feae
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40feae
push 0x102
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40feae
push 0x5c
push edi
call fcn.004b92ba
add esp, 8
test eax, eax
je 0x40feae
mov esi, eax
add eax, 2
push 5
push str.flash
mov dword [esp + 0x14], eax
push eax
call fcn.004cc9b8
add esp, 0xc
test eax, eax
jne 0x40feae
push dword [esp + 0xc]
call fcn.004d03ae
add esp, 4
cmp word [esi + eax*2], 0x78
jne 0x40feae
mov ecx, dword [esp + 0xc]
cmp word [ecx + eax*2 - 4], 0x63
jne 0x40feae
mov ecx, dword [esp + 0xc]
cmp word [ecx + eax*2 - 6], 0x6f
jne 0x40feae
mov ecx, dword [esp + 0xc]
cmp word [ecx + eax*2 - 8], 0x2e
jne 0x40feae
xor esi, esi
push 0x208
push esi
push edi
call fcn.004b8bc0
add esp, 0xc
push esi
push 0x26
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push edi
call fcn.004d0280
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fd1a
xor esi, esi
dec esi
jmp 0x40fd31