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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor ebx, ebx
mov esi, ecx
push str.mhtmlfile_shellopencommand
push SysReAllocString
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
call fcn.0045b6e0
test eax, eax
jne 0x41512a
push 7
pop edi
mov word [ebp - 0x270], ax
lea ecx, [ebp - 0x2dc]
lea eax, [ebp - 0x270]
mov dword [ebp - 0x25c], edi
push eax
push 0x53fc30
mov dword [ebp - 0x260], ebx
call fcn.0045ba20
test eax, eax
jne 0x414de5
xor esi, esi
jmp 0x41511c
push ecx
lea ecx, [ebp - 0x308]
call fcn.0045e910
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x308]
call fcn.0045f630
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x308]
call fcn.0045efa0
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00409846
lea ecx, [ebp - 0x228]
call fcn.00459030
push 0x541bc0
mov edx, esi
lea ecx, [ebp - 0x228]
call fcn.0041540b
pop ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x414e4a
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00409266
test eax, eax
lea ecx, [ebp - 0x228]
setne bl
xor esi, esi
push esi
push 1
call fcn.0040536f
test bl, bl
je 0x414e7e
mov bl, 1
jmp 0x415103
push 1
xor ebx, ebx
mov dword [ebp - 0x22c], edi
push 0x541e68
xor eax, eax
mov dword [ebp - 0x2e8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x230], ebx
mov word [ebp - 0x240], ax
call fcn.0045b6e0
test eax, eax
je 0x414ede
lea eax, [ebp - 0x240]
push eax
push 0x53fc30
lea ecx, [ebp - 0x2e8]
call fcn.0045ba20
jmp 0x414f61
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x414f61
lea edi, [ebp - 0x210]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x414f1a
push 0x10
pop ecx
lea eax, [ebp - 0x210]
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414f61
lea eax, [ebp - 0x210]
push eax
call fcn.004049e1
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00405941
cmp dword [ebp - 0x230], ebx
je 0x4150e8
call fcn.004445a2
mov esi, eax
lea ecx, [ebp - 0x2d0]
lea eax, [ebp - 0x240]
mov edx, 0x540808
push str.___nohome
push eax
call fcn.00415489
pop ecx
mov edx, eax
lea ecx, [ebp - 0x2b8]
call fcn.0041545e
pop ecx
cmp dword [eax + 0x14], 8
jb 0x414fa7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x228]
call fcn.004058f0
push 0x53fc30
lea ecx, [ebp - 0x288]
call fcn.004058f0
push str.mhtmlfile_shellopencommand
lea ecx, [ebp - 0x258]
call fcn.004058f0
mov eax, dword [esi]
lea ecx, [ebp - 0x228]
push 1
push ecx
lea ecx, [ebp - 0x288]
mov edi, SysReAllocString
push ecx
push 0x200
lea ecx, [ebp - 0x258]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x40]
push ebx
push 1
lea ecx, [ebp - 0x258]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x288]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x2b8]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x2d0]
call fcn.0040536f
push 0x541bec
lea ecx, [ebp - 0x258]
call fcn.004058f0
push 0x53fc30
lea ecx, [ebp - 0x288]
call fcn.004058f0
push str.mhtmlfileDefaultIcon
lea ecx, [ebp - 0x228]
call fcn.004058f0
mov eax, dword [esi]
lea ecx, [ebp - 0x258]
push 1
push ecx
lea ecx, [ebp - 0x288]
push ecx
push ebx
lea ecx, [ebp - 0x228]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x40]
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x288]
call fcn.0040536f
push ebx
push 1
lea ecx, [ebp - 0x258]
call fcn.0040536f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x4150d9
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov bl, 1
jmp 0x4150e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
lea ecx, [ebp - 0x240]
push esi
push 1
call fcn.0040536f
lea ecx, [ebp - 0x2e8]
call fcn.0045b550
push esi
push 1
lea ecx, [ebp - 0x2a0]
call fcn.0040536f
lea ecx, [ebp - 0x308]
call fcn.0045eb50
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.0040536f
lea ecx, [ebp - 0x2dc]
call fcn.0045b550
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret