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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f552
mov eax, dword fs:[0]
push eax
sub esp, 0xcc4
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
or ebx, 0xffffffff
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 1
je 0x44874a
call fcn.00448eb0
jmp 0x448a34
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.005d1b40
mov eax, dword [0x686984]
add esp, 0xc
mov ecx, 0x686984
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xccc], eax
mov byte [ebp - 4], 2
push dword [edi + 0x978]
lea eax, [ebp - 0xccc]
push dword [edi + 0x980]
push str._s_s.xpi
push eax
call fcn.00402f20
add esp, 0x10
lea eax, [ebp - 0x118]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [ebp - 0xccc]
push esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x448a17
push 0x103
lea eax, [ebp - 0x327]
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x328]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [edi + 0x978]
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x220]
push str._s_s_s.xpi
push eax
call fcn.0044a590
add esp, 0x14
lea eax, [ebp - 0x220]
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [0x6906f4]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x448a17
push str.SoftwareMozillaFireFoxextensions
lea ecx, [ebp - 0xcc8]
mov dword [ebp - 0xcc8], 0
call fcn.0042ea30
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x97c]
lea edx, [edi + 0x97c]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4488ad
push 0x104
mov ecx, edx
call fcn.00403150
lea edx, [edi + 0x97c]
mov eax, dword [edx]
mov dword [ebp - 0xcc4], eax
mov eax, dword [ebp - 0xcc8]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4488e6
push 0x104
lea ecx, [ebp - 0xcc8]
call fcn.00403150
mov eax, dword [ebp - 0xcc8]
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0xcc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00449310
mov eax, dword [edi + 0x978]
test eax, eax
jne 0x44890c
xor ecx, ecx
jmp 0x448922
push dword [eax - 8]
push eax
call fcn.005cfcd3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x448a87
mov eax, dword [edi + 0x978]
cmp ecx, dword [eax - 8]
jg 0x448a87
mov dword [eax - 0xc], ecx
mov eax, dword [edi + 0x978]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xcc8]
push dword [eax - 8]
push eax
call fcn.005cfcd3
add esp, 8
test eax, eax
js 0x448a87
mov ecx, dword [ebp - 0xcc8]
cmp eax, dword [ecx - 8]
jg 0x448a87
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0xcc8]
mov byte [eax + ecx], 0
call fcn.00449db0
test eax, eax
je 0x4489f4
lea eax, [ebp - 0xcc4]
push eax
push 0xf013f
push 0
push str.SoftwareMozillaFireFox
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4489f4
mov eax, dword [edi + 0x97c]
lea ecx, [edi + 0x97c]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, edx
jge 0x4489cf
push 0x104
call fcn.00403150
lea ecx, [edi + 0x97c]
lea eax, [ebp - 0x220]
push eax
push dword [ecx]
push str.extensions
push dword [ebp - 0xcc4]
call fcn.00449310
push dword [ebp - 0xcc4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xcc8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x448a17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x448a34
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x10], 0
je 0x448a91
push ecx
lea ecx, [ebp - 0xcc0]
call fcn.00429760
lea ecx, [ebp - 0xcc0]
call fcn.0043ac90
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0040a5a0
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0xcc0]
mov dword [esi], eax
call fcn.004464d0
lea ecx, [ebp - 0xcc0]
call fcn.0043ece0
jmp 0x448b30
push 0x80070057
call fcn.00403360
cmp byte [ebp + 0xc], 0
jne 0x448b30
lea ecx, [ebp - 0xcc8]
mov dword [ebp - 0xcc8], 0
call fcn.004483d0
push ecx
mov byte [ebp - 4], 5
lea eax, [edi + 0x4c]
mov ecx, esp
mov dword [ebp - 0xcc4], esp
push eax
call fcn.0042ea30
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0xccc], esp
push 0x6508f0
call fcn.0042ea30
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xcc8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0040a5a0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 5
call fcn.00457050
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xcc8]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x448b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x448b50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x448b71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0x10