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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7fb1
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100f4384]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x42c], ebx
call fcn.1008f5e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.MozillaFirefox
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10006280
mov ecx, eax
test ecx, ecx
je 0x1000c9cd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x428], 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 0x1000c760
push 0x104
lea ecx, [ebp - 0x428]
call fcn.10006cb0
mov esi, dword [ebp - 0x428]
cmp dword [esi - 8], 0x104
jl 0x1000c9d7
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.10093037
add esp, 8
test eax, eax
js 0x1000c9d7
cmp eax, dword [esi - 8]
jg 0x1000c9d7
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c953
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000c953
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1008f5e0
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push 0x104
push eax
push 0x100c38e4
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x420], 0
jne 0x1000c849
push 0x100c38e4
mov ecx, ebx
call fcn.10003bb0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c9ad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1000c9ad
call fcn.10006280
mov ecx, eax
test ecx, ecx
je 0x1000c9e1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x424], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 2
jge 0x1000c894
push 0x104
lea ecx, [ebp - 0x424]
call fcn.10006cb0
mov edi, dword [ebp - 0x424]
cmp dword [edi - 8], 0x104
jl 0x1000c9eb
xor eax, eax
mov dword [edi - 0xc], 0x104
mov word [edi + 0x208], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [edi - 8]
push edi
call fcn.10093037
add esp, 8
test eax, eax
js 0x1000c9d7
cmp eax, dword [edi - 8]
jg 0x1000c9d7
xor ecx, ecx
mov dword [edi - 0xc], eax
push 0x100c546c
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x424]
push 0x100c56b0
call fcn.1000d360
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x42c], eax
call fcn.10005a50
mov edx, dword [ebp - 0x42c]
add eax, 0x10
or edi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c93f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x1000c9a3
call fcn.10006280
mov ecx, eax
test ecx, ecx
je 0x1000c9f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x100c38e4
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10005920
test al, al
jne 0x1000c98e
push 0
push 0x100c38e4
mov ecx, ebx
call fcn.10006dc0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c9ad
mov ecx, dword [esi]
push esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100683c1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100058e0
push 0x80070057
call fcn.100058e0
push 0x80004005
call fcn.100058e0
push 0x80070057
call fcn.100058e0
push 0x80004005
call fcn.100058e0
int3