Function at 0x10065f40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x42c]
push esi
push 6
xor eax, eax
mov dword [ebp - 0x41c], 0
push str.CLSID_
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
call fcn.10008240
push 0x26
push str.871C5380_42A0_1069_A2EA_08002B30309D
lea ecx, [ebp - 0x42c]
call fcn.10007e60
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
jb 0x10065fae
mov eax, dword [ebp - 0x42c]
push ecx
mov dword [ebp - 0x57c], SysReAllocString
mov esi, esp
mov dword [ebp - 0x578], eax
mov dword [ebp - 0x574], 0x10219d7c
mov dword [ebp - 0x570], 0x10219d7c
mov dword [ebp - 0x56c], 2
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x10066270
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1006603e
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push 0
lea eax, [ebp - 0x57c]
mov ecx, 0x10259b48
push eax
push str.871C5380_42A0_1069_A2EA_08002B30309D
push str.CLSID
call fcn.101c6c30
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10066220
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push str.Internet_Explorer
push eax
call esi
push str.iexplore.exe
lea eax, [ebp - 0x414]
push eax
call esi
push 0
push 0x10
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10066220
push str.Internet_Explorer.lnk
lea eax, [ebp - 0x20c]
push eax
call esi
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1006611c
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1006610b
mov eax, dword [eax + 0x3c]
jmp 0x1006610d
xor eax, eax
test eax, eax
je 0x1006611c
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x10066129
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10066201
test al, 0x10
jne 0x10066201
push ebx
lea ecx, [ebp - 0x554]
call fcn.10132670
push 0x9c51
lea ecx, [ebp - 0x558]
call fcn.10004700
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x45c]
push dword [eax]
call fcn.10006b40
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.1001e240
add esp, 0xc
lea ecx, [ebp - 0x45c]
call fcn.1001d6d0
mov edx, dword [ebp - 0x558]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100661a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
jb 0x100661b8
mov eax, dword [ebp - 0x444]
push 0x10219d7c
push 2
push 2
push 0
push 0
push eax
lea ecx, [ebp - 0x554]
call fcn.10137700
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x554]
call fcn.10134610
lea ecx, [ebp - 0x444]
call fcn.1001d6d0
lea ecx, [ebp - 0x554]
call fcn.10132d00
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100e4320
add esp, 0xc
test eax, eax
setne bl
jmp 0x10066222
xor bl, bl
mov edx, dword [ebp - 0x418]
cmp edx, 8
jb 0x1006625e
mov ecx, dword [ebp - 0x42c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10066254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006627a
push edx
push ecx
call fcn.102134ff
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
call fcn.10200ab0
int3