Function at 0x40f4dc
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, 0x230
mov eax, dword [0x52efc0]
mov esi, dword [ebp + 8]
mov ecx, str.urlmon.dll
xor eax, ebp
mov edx, esi
mov dword [esp + 0x228], eax
push 0x5300d0
push 0x5300cc
call fcn.0040f81b
add esp, 8
mov bl, 1
test eax, eax
jne 0x40f5a8
mov ecx, str.ieframe.dll
mov edx, esi
push 0x5300d8
push 0x5300d4
call fcn.0040f81b
add esp, 8
test eax, eax
jne 0x40f5a8
mov ecx, str.wininet.dll
mov edx, esi
push 0x5300e0
push 0x5300dc
call fcn.0040f81b
add esp, 8
test eax, eax
setne bl
jne 0x40f57c
mov edi, eax
mov ecx, str.iertutil.dll
mov edx, esi
push 0x5300e8
push 0x5300e4
call fcn.0040f81b
add esp, 8
or edi, eax
setne bl
test bl, bl
jne 0x40f5a0
mov ecx, str.edgehtml.dll
mov edx, esi
push 0x530110
push 0x53010c
call fcn.0040f81b
add esp, 8
test eax, eax
setne al
or bl, al
test bl, bl
je 0x40f7f6
lea edi, [esp + 0x20]
xor esi, esi
push 0x208
push esi
push edi
call fcn.004b81d0
add esp, 0xc
push 0x103
push edi
push esi
call dword [0x530118]
push 0x5c
push edi
call fcn.004b88ca
add esp, 8
test eax, eax
je 0x40f607
mov word [eax], 0
call fcn.0040f4a1
mov ecx, str._smshtmpad.exe
mov edx, str._siexplore.exe
test al, al
cmovne edx, ecx
push edi
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f938
add esp, 0x10
jmp 0x40f6f0
mov esi, dword [ebp + 8]
test bl, bl
jne 0x40f632
mov ecx, str.mshtml.dll
mov edx, esi
push 0x5300f8
push 0x5300f4
call fcn.0040f81b
add esp, 8
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmovne ebx, ecx
test bl, bl
jne 0x40f6aa
mov ecx, 0x4e35e4
mov edx, esi
call fcn.0040f9eb
test eax, eax
je 0x40f70a
lea esi, [esp + 0x20]
push 0x208
push 0
push esi
call fcn.004b81d0
add esp, 0xc
mov edi, dword [0x530118]
push 0x4e35e4
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 0x40f7ee
push esi
push 0x4e35de
jmp 0x40f5f4
lea edi, [esp + 0x20]
xor esi, esi
push 0x208
push esi
push edi
call fcn.004b81d0
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.004cf6f0
add esp, 8
mov eax, dword [ebp + 0x10]
dec eax
push edi
push 0x4e35de
push 0xffffffffffffffff
push eax
push dword [ebp + 0xc]
call fcn.0040f990
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x20]
mov ebx, esi
xor esi, esi
push 0x208
push esi
push edi
call fcn.004b81d0
add esp, 0xc
mov eax, esp
xorps xmm0, xmm0
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x18], esi
movaps xmmword [eax], xmm0
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f7ee
mov eax, dword [esp + 4]
test eax, eax
je 0x40f7ee
push 0x102
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f7ee
push 0x5c
push edi
call fcn.004b88ca
add esp, 8
test eax, eax
je 0x40f7ee
mov esi, eax
lea ebx, [eax + 2]
push 5
push str.flash
push ebx
call fcn.004cbcb1
add esp, 0xc
test eax, eax
jne 0x40f7ee
push ebx
call fcn.004cf81e
add esp, 4
cmp word [esi + eax*2], 0x78
jne 0x40f7ee
cmp word [ebx + eax*2 - 4], 0x63
jne 0x40f7ee
cmp word [ebx + eax*2 - 6], 0x6f
jne 0x40f7ee
cmp word [ebx + eax*2 - 8], 0x2e
jne 0x40f7ee
xor esi, esi
push 0x208
push esi
push edi
call fcn.004b81d0
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.004cf6f0
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f6d8
xor esi, esi
dec esi
jmp 0x40f6f2
mov ecx, str.iedvtool.dll
mov edx, esi
push 0x5300f0
push 0x5300ec
call fcn.0040f81b
add esp, 8
test eax, eax
setne al
or bl, al
jmp 0x40f60a