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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567458
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x481bc4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x481bf4
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edi, 1
mov edx, edi
mov byte [ebp - 4], 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x481c2f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
push 0
push 0
push 0x2a
push 0
call ebx
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 0x481cf5
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x481cf5
mov dword [ecx - 0xc], edx
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edx*2], cx
cmp dword [ebp - 0x18], ecx
jge 0x481cd9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x104
or ecx, edi
jge 0x481c9f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0x26
push 0
call ebx
mov ecx, dword [ebp - 0x10]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x481cf5
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x481cf5
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test edi, edi
js 0x481d56
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 0x481d09
test ecx, ecx
jns 0x481cff
push 0x80070057
call fcn.0045a8f0
cmp word [eax], 0x5c
jne 0x481d09
xor bl, bl
jmp 0x481d0b
mov bl, 1
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481d27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x481d3a
push 1
push 0x57e140
lea ecx, [ebp - 0x10]
call fcn.00472540
push 0x1e
push str.Internet_Exploreriexplore.exe
lea ecx, [ebp - 0x10]
call fcn.00472540
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481d5d
xor ebx, ebx
jmp 0x481e63
cmp dword [ebp + 0xc], 0
mov edx, str._noframemerging
mov eax, 0x57a900
cmove edx, eax
test edx, edx
jne 0x481d76
xor ecx, ecx
jmp 0x481d8f
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x481d80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481d80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0045b6e0
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x481e15
push 0x57b7d8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00480bb0
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00480af0
add esp, 0x18
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0045a580
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481df5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481e15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.iexplore.exe
lea ecx, [ebp - 0x18]
call fcn.0045a3a0
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push dword [ebp + 8]
push 0x482300
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004826a0
mov edi, dword [ebp - 0x18]
add esp, 0x14
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ebx, eax
mov edx, esi
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481e63
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481e83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x481ea4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret