Function at 0x40bcc0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a35cb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4bf6bc]
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
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x118]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bd10
mov ecx, dword [str.MozillaFirefox_]
mov edx, dword [0x4a7fb8]
mov dword [eax], ecx
mov ecx, dword [0x4a7fbc]
mov dword [eax + 4], edx
mov edx, dword [0x4a7fc0]
mov dword [eax + 8], ecx
mov cx, word [0x4a7fc4]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bd50
sub eax, edx
lea edi, [ebp + eax - 0x118]
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bd67
mov edx, dword [str.profiles.ini]
mov ecx, dword [0x4a7fcc]
mov dword [eax], edx
mov edx, dword [0x4a7fd0]
mov dword [eax + 4], ecx
mov cl, byte [0x4a7fd4]
mov dword [eax + 8], edx
lea edx, [ebp - 0x118]
push edx
push 0x104
mov byte [eax + 0xc], cl
lea eax, [ebp - 0x220]
push eax
push 0x4a7b2e
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x220], 0
je 0x40be62
lea eax, [ebp - 0x220]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bdd3
lea eax, [edi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bde0
mov edx, dword [str.extensions.sqlite]
mov ecx, dword [0x4a7ff0]
mov dword [eax], edx
mov edx, dword [0x4a7ff4]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a7ff8]
mov dword [eax + 8], edx
mov dx, word [0x4a7ffc]
mov dword [eax + 0xc], ecx
mov cl, byte [0x4a7ffe]
mov word [eax + 0x10], dx
lea edx, [ebp - 0x244]
mov byte [eax + 0x12], cl
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00416510
add esp, 8
test eax, eax
jne 0x40be62
mov edi, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
push ecx
push str.select_id_userDisabled_from_addon
xor edx, edx
mov ecx, edi
call fcn.004171b0
add esp, 8
test eax, eax
je 0x40be69
mov eax, edi
call fcn.00415c70
xor al, al
jmp 0x40bf8a
mov esi, dword [ebp - 0x240]
push esi
call fcn.004177b0
add esp, 4
cmp eax, 0x64
jne 0x40bf7c
xor eax, eax
mov edi, esi
call fcn.00417a50
mov ebx, eax
call fcn.004179b0
mov dword [ebp - 0x240], eax
xor edi, edi
mov eax, ebx
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], edi
mov byte [ebp - 0x23c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40beb5
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x23c]
call fcn.00407f60
mov dword [ebp - 4], edi
mov edi, dword [0x4c4578]
cmp edi, dword [0x4c457c]
je 0x40bf01
lea esp, [esp]
mov ebx, dword [edi]
lea edx, [ebp - 0x23c]
add ebx, 0x14
push edx
call fcn.0040a1d0
cmp eax, 0xffffffff
jne 0x40bf59
add edi, 4
cmp edi, dword [0x4c457c]
jne 0x40bee0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x228], 0x10
jb 0x40bf22
mov eax, dword [ebp - 0x23c]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
test edi, edi
je 0x40bf64
cmp dword [ebp - 0x240], 0
je 0x40bf5d
mov eax, 1
cmp dword [edi + 0x60], eax
jle 0x40bf64
mov dword [edi + 0x60], eax
jmp 0x40bf64
mov edi, dword [edi]
jmp 0x40bf03
mov dword [edi + 0x60], 2
push esi
call fcn.004177b0
add esp, 4
cmp eax, 0x64
je 0x40be81
mov edi, dword [ebp - 0x244]
call fcn.00416860
mov eax, edi
call fcn.00415c70
mov al, 1
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.0047bd9c
mov esp, ebp
pop ebp
ret