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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x5d687c]
lea ecx, [ebp - 0x14]
call fcn.0045a3a0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0051eb70
add esp, 8
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c6b80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4c6ce5
mov ecx, dword [eax - 8]
mov esi, 1
mov edx, esi
sub ecx, 0x104
sub edx, dword [eax - 4]
or ecx, edx
jge 0x4c6bb4
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
push 0
push 0
push 0x2a
push 0
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4c6c66
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4c6c66
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebp - 0x18], ecx
jge 0x4c6c4a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub esi, dword [eax - 4]
sub ecx, 0x104
or ecx, esi
jge 0x4c6c2a
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x20], eax
call edi
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0045c070
test esi, esi
js 0x4c6cdc
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0046bd70
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4c6c7a
test ecx, ecx
jns 0x4c6c70
push 0x80070057
call fcn.0045a8f0
cmp word [eax], 0x5c
jne 0x4c6c7a
xor bl, bl
jmp 0x4c6c7c
mov bl, 1
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c6c99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4c6cac
push 1
push 0x57e140
lea ecx, [ebp - 0x10]
call fcn.00472540
mov edx, dword [str.Internet_Exploreriexplore.exe]
test edx, edx
jne 0x4c6cba
xor ecx, ecx
jmp 0x4c6ccf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6cc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00472540
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4c6cfa
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x4c6cfa
mov esi, 1
jmp 0x4c6cfc
xor esi, esi
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4c6d1a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret