Function at 0x10012a00
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101527e1
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x101933a0]
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 dword [ebp - 0x428], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10129ae0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.MozillaFirefox
push eax
call edi
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10012cbb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x10012abf
push 0x104
lea ecx, [ebp - 0x42c]
call fcn.1000b9b0
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 8], 0x104
jl 0x10012cc5
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push str.profiles.ini
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.1012ff55
add esp, 8
test eax, eax
js 0x10012cc5
cmp eax, dword [esi - 8]
jg 0x10012cc5
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call ebx
test eax, eax
je 0x10012c80
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10012c80
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10129ae0
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push 0x104
push eax
push 0x1015c9f0
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x420], 0
je 0x10012c80
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push str.places.sqlite
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x10012c80
call fcn.1000b6b0
mov ecx, eax
test ecx, ecx
je 0x10012ccf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10012be8
movzx eax, ax
lea ecx, [ebp - 0x424]
push eax
call fcn.1000b800
jmp 0x10012c13
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012bf1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.1000e410
mov ebx, dword [ebp - 0x428]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 8]
mov dword [ebp - 0x428], eax
cmp dword [ebx + 0xc], eax
je 0x10012c4e
mov edi, dword [ebp - 0x424]
lea eax, [edi - 0x10]
push eax
call fcn.1000cb70
mov ecx, dword [ebp - 0x428]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 8], 4
jmp 0x10012c64
lea ecx, [ebp - 0x424]
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.1000e680
mov edi, dword [ebp - 0x424]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10012c80
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10012c9f
mov ecx, dword [esi]
push esi
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.10061045
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000b280
push 0x80070057
call fcn.1000b280
push 0x80004005
call fcn.1000b280
int3