Function at 0x10015f30
Capabilities:
Check if file exists
Get common file path
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024add
mov eax, dword fs:[0]
push eax
sub esp, 0xcdc
mov eax, dword [0x10034034]
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 - 0xcac], ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc3c], 7
mov dword [ebp - 0xc40], 0
mov word [ebp - 0xc50], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc6c], 7
mov dword [ebp - 0xc70], eax
mov word [ebp - 0xc80], ax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
js 0x100167c5
xor eax, eax
mov dword [ebp - 0xcb0], 7
mov dword [ebp - 0xcb4], 0
mov word [ebp - 0xcc4], ax
cmp word [ebp - 0x218], ax
jne 0x1001600a
xor ecx, ecx
jmp 0x10016022
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016013
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xcc4]
call fcn.10002160
push str.MozillaFirefox
lea edx, [ebp - 0xcc4]
lea ecx, [ebp - 0xce0]
mov byte [ebp - 4], 2
call fcn.100144f0
mov esi, eax
lea eax, [ebp - 0xc80]
add esp, 4
cmp eax, esi
je 0x1001609b
cmp dword [ebp - 0xc6c], 8
jb 0x10016072
push dword [ebp - 0xc80]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0xc80]
mov dword [ebp - 0xc6c], 7
mov dword [ebp - 0xc70], 0
mov word [ebp - 0xc80], ax
call fcn.10002000
cmp dword [ebp - 0xccc], 8
jb 0x100160af
push dword [ebp - 0xce0]
call ebx
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0xcb0], 8
mov dword [ebp - 0xccc], 7
mov dword [ebp - 0xcd0], 0
mov word [ebp - 0xce0], ax
jb 0x100160e4
push dword [ebp - 0xcc4]
call ebx
add esp, 4
push str.profiles.ini
lea edx, [ebp - 0xc80]
lea ecx, [ebp - 0xce0]
call fcn.100144f0
mov esi, eax
lea eax, [ebp - 0xc50]
add esp, 4
cmp eax, esi
je 0x10016146
cmp dword [ebp - 0xc3c], 8
jb 0x1001611d
push dword [ebp - 0xc50]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0xc50]
mov dword [ebp - 0xc3c], 7
mov dword [ebp - 0xc40], 0
mov word [ebp - 0xc50], ax
call fcn.10002000
cmp dword [ebp - 0xccc], 8
jb 0x1001615a
push dword [ebp - 0xce0]
call ebx
add esp, 4
cmp dword [ebp - 0xc3c], 8
lea edx, [ebp - 0xc50]
cmovae edx, dword [ebp - 0xc50]
xor eax, eax
mov dword [ebp - 0xcb0], 7
mov dword [ebp - 0xcb4], 0
mov word [ebp - 0xcc4], ax
cmp word [edx], ax
jne 0x10016194
xor ecx, ecx
jmp 0x100161af
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100161a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xcc4]
call fcn.10002160
cmp dword [ebp - 0xcb0], 8
lea eax, [ebp - 0xcc4]
cmovae eax, dword [ebp - 0xcc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
setne al
cmp dword [ebp - 0xcb0], 8
mov byte [ebp - 0xca1], al
jb 0x100161fd
push dword [ebp - 0xcc4]
call ebx
mov al, byte [ebp - 0xca1]
add esp, 4
test al, al
jne 0x100167c5
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc1e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0xc3c], 8
lea eax, [ebp - 0xc50]
cmovae eax, dword [ebp - 0xc50]
push eax
push 0x400
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov edi, eax
sub esp, 8
lea ecx, [ebp - 0xca0]
mov dword [ebp - 0xcc8], edi
mov dword [ebp - 0xca0], 0
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xc94], 0
mov dword [ebp - 0xc90], 0
call fcn.10016e70
xor ecx, ecx
xor esi, esi
mov byte [ebp - 4], 3
test edi, edi
je 0x1001634a
mov edx, dword [ebp - 0xcc8]
lea edi, [ecx + 2]
lea eax, [ebp - 0xc20]
sub eax, edi
mov dword [ebp - 0xca8], eax
nop
cmp word [eax + edi], 0
jne 0x1001633e
xor eax, eax
mov word [ebp - 0xcc4], ax
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xcb0], 7
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0xcc4]
mov dword [ebp - 0xcb4], 0
call fcn.10002160
mov byte [ebp - 4], 4
movzx eax, byte [0x1003624d]
push eax
lea eax, [ebp - 0xcc4]
push eax
lea eax, [ebp - 0xce8]
push eax
lea ecx, [ebp - 0xca0]
call fcn.100171e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xcb0], 8
jb 0x1001632f
push dword [ebp - 0xcc4]
call ebx
add esp, 4
mov eax, dword [ebp - 0xca8]
mov edx, dword [ebp - 0xcc8]
lea ecx, [esi + 1]
inc esi
add edi, 2
cmp esi, edx
jb 0x100162b0
mov eax, dword [ebp - 0xca0]
mov esi, dword [eax]
cmp esi, eax
je 0x100166ec
lea ebx, [ebx]
mov edx, dword [esi + 0x18]
lea ebx, [esi + 8]
test edx, edx
je 0x100166d8
cmp dword [ebx + 0x14], 8
jb 0x10016378
mov ecx, dword [ebx]
jmp 0x1001637a
mov ecx, ebx
mov edi, 7
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x100163a4
mov edx, str.General
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x100163b4
add ecx, 2
add edx, 2
dec edi
jne 0x10016390
mov edx, dword [ebx + 0x10]
xor eax, eax
test eax, eax
jne 0x100163cf
cmp edx, 7
jae 0x100163c5
or eax, 0xffffffff
jmp 0x100163cd
movzx eax, word [ecx]
cmp ax, word [edx]
mov edx, dword [ebx + 0x10]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x100163a6
xor eax, eax
cmp edx, 7
setne al
test eax, eax
sete al
test al, al
jne 0x100166d8
xor eax, eax
mov dword [ebp - 0xc54], 7
mov dword [ebp - 0xc58], 0
mov word [ebp - 0xc68], ax
push 0x206
mov byte [ebp - 4], 5
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0xc3c], 8
lea ecx, [ebp - 0xc50]
cmovae ecx, dword [ebp - 0xc50]
cmp dword [ebx + 0x14], 8
jb 0x10016435
mov eax, dword [ebx]
jmp 0x10016437
mov eax, ebx
push ecx
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x1002cd24
push 0x1002cd18
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x1001647c
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0xc54], 8
jb 0x100166de
push dword [ebp - 0xc68]
call ebx
add esp, 4
jmp 0x100166de
cmp word [ebp - 0x420], 0
jne 0x1001648a
xor ecx, ecx
jmp 0x100164a2
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016493
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc68]
call fcn.10002160
cmp dword [ebp - 0xc3c], 8
lea eax, [ebp - 0xc50]
cmovae eax, dword [ebp - 0xc50]
cmp dword [ebx + 0x14], 8
jb 0x100164d3
mov ecx, dword [ebx]
jmp 0x100164d5
mov ecx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0xff
push str.IsRelative
push ecx
call edi
cmp eax, 0xff
je 0x10016459
cmp eax, 1
sete byte [ebp - 0xca2]
cmp dword [ebp - 0xc3c], 8
lea eax, [ebp - 0xc50]
cmovae eax, dword [ebp - 0xc50]
cmp dword [ebx + 0x14], 8
mov byte [ebp - 0xca1], 0
jb 0x10016521
mov ebx, dword [ebx]
push eax
push 0xff
push str.Default
push ebx
call edi
movzx ecx, byte [ebp - 0xca1]
cmp eax, 1
mov eax, 1
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0xca8], ecx
mov dword [ebp - 0xc24], 7
mov dword [ebp - 0xc28], 0
mov word [ebp - 0xc38], ax
push eax
push 0x104
lea ecx, [ebp - 0xc38]
mov byte [ebp - 4], 6
call fcn.100023c0
cmp dword [ebp - 0xc24], 8
lea eax, [ebp - 0xc38]
cmovae eax, dword [ebp - 0xc38]
xor ecx, ecx
mov dword [ebp - 0xc28], 0
mov word [eax], cx
lea eax, [ebp - 0xc68]
cmp byte [ebp - 0xca2], cl
je 0x1001663a
cmp dword [ebp - 0xc54], 8
lea edx, [ebp - 0xc80]
cmovae eax, dword [ebp - 0xc68]
push eax
lea ecx, [ebp - 0xce0]
call fcn.100144f0
mov edi, eax
lea eax, [ebp - 0xc38]
add esp, 4
cmp eax, edi
je 0x1001661e
cmp dword [ebp - 0xc24], 8
jb 0x100165f5
push dword [ebp - 0xc38]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xc38]
mov dword [ebp - 0xc24], 7
mov dword [ebp - 0xc28], 0
mov word [ebp - 0xc38], ax
call fcn.10002000
cmp dword [ebp - 0xccc], 8
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10016650
push dword [ebp - 0xce0]
call ebx
add esp, 4
jmp 0x10016650
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xc38]
call fcn.100025e0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0xc24], 8
lea eax, [ebp - 0xc38]
cmovae eax, dword [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x100166a6
cmp dword [ebp - 0xc24], 8
jb 0x10016684
push dword [ebp - 0xc38]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0xc24], 7
mov dword [ebp - 0xc28], 0
mov word [ebp - 0xc38], ax
jmp 0x1001645f
cmp byte [ebp - 0xca8], 0
jne 0x10016757
mov eax, dword [ebp - 0xcac]
cmp dword [eax + 0x2c], 0
jne 0x10016670
lea ecx, [eax + 0x1c]
lea eax, [ebp - 0xc38]
cmp ecx, eax
je 0x10016670
push 0xffffffffffffffff
push 0
push eax
call fcn.100025e0
jmp 0x10016670
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, dword [esi]
cmp esi, dword [ebp - 0xca0]
jne 0x10016360
mov eax, dword [ebp - 0xcac]
cmp dword [eax + 0x2c], 0
setne byte [ebp - 0xca1]
mov byte [ebp - 4], 1
cmp dword [ebp - 0xc98], 0
je 0x1001673f
lea ecx, [ebp - 0xc98]
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [ebp - 0xc98]
call ebx
add esp, 4
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xc94], 0
mov dword [ebp - 0xc90], 0
lea ecx, [ebp - 0xca0]
call fcn.10016f40
push dword [ebp - 0xca0]
call ebx
add esp, 4
jmp 0x100167cc
mov ecx, dword [ebp - 0xcac]
add ecx, 0x1c
lea eax, [ebp - 0xc38]
cmp ecx, eax
je 0x10016774
push 0xffffffffffffffff
push 0
push eax
call fcn.100025e0
cmp dword [ebp - 0xc24], 8
jb 0x10016788
push dword [ebp - 0xc38]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc54], 8
mov dword [ebp - 0xc24], 7
mov dword [ebp - 0xc28], 0
mov word [ebp - 0xc38], ax
jb 0x100167b9
push dword [ebp - 0xc68]
call ebx
add esp, 4
mov byte [ebp - 0xca1], 1
jmp 0x100166fd
mov byte [ebp - 0xca1], 0
cmp dword [ebp - 0xc6c], 8
jb 0x100167e0
push dword [ebp - 0xc80]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0xc3c], 8
mov dword [ebp - 0xc6c], 7
mov dword [ebp - 0xc70], 0
mov word [ebp - 0xc80], ax
jb 0x10016811
push dword [ebp - 0xc50]
call ebx
add esp, 4
mov al, byte [ebp - 0xca1]
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.10020d6c
mov esp, ebp
pop ebp
ret