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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5141
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x1011449c]
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.100a6fe0
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.10004570
mov ecx, eax
test ecx, ecx
je 0x1003eaad
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 0x1003e840
push 0x104
lea ecx, [ebp - 0x428]
call fcn.10004620
mov esi, dword [ebp - 0x428]
cmp dword [esi - 8], 0x104
jl 0x1003eab7
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.100ab2e6
add esp, 8
test eax, eax
js 0x1003eab7
cmp eax, dword [esi - 8]
jg 0x1003eab7
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 0x1003ea33
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003ea33
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.100a6fe0
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push 0x104
push eax
push 0x100de924
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x420], 0
jne 0x1003e929
push 0x100de924
mov ecx, ebx
call fcn.10003e80
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ea8d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1003ea8d
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1003eac1
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 0x1003e974
push 0x104
lea ecx, [ebp - 0x424]
call fcn.10004620
mov edi, dword [ebp - 0x424]
cmp dword [edi - 8], 0x104
jl 0x1003eacb
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.100ab2e6
add esp, 8
test eax, eax
js 0x1003eab7
cmp eax, dword [edi - 8]
jg 0x1003eab7
xor ecx, ecx
mov dword [edi - 0xc], eax
push 0x100e1f00
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x424]
push 0x100e67b4
call fcn.1002f790
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x42c], eax
call fcn.100043b0
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 0x1003ea1f
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 0x1003ea83
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1003ead5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x100de924
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10004280
test al, al
jne 0x1003ea6e
push 0
push 0x100de924
mov ecx, ebx
call fcn.100046c0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ea8d
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.10080681
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004100
push 0x80070057
call fcn.10004100
push 0x80004005
call fcn.10004100
push 0x80070057
call fcn.10004100
push 0x80004005
call fcn.10004100
int3