Function at 0x1006abb0
Capabilities:
Get common file path
Get startup folder
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dc3c
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x1006abfd
mov eax, dword [esi]
jmp 0x1006abff
mov eax, esi
movzx ebx, word [eax]
xor eax, eax
push eax
push 0x100b2814
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call fcn.100089b0
mov dword [esp + 0x6a0], 0
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp ebx, 0x5e
jne 0x1006ad5a
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0x25
call fcn.10016c40
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006b149
lea ecx, [ebx - 2]
push ecx
push 2
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.10011440
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], eax
cmp ecx, eax
je 0x1006acb8
cmp dword [esp + 0x58], 8
jb 0x1006ac97
push dword [esp + 0x44]
call edi
mov eax, dword [esp + 0x2c]
add esp, 4
xor ecx, ecx
mov word [esp + 0x44], cx
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
call fcn.1000d5d0
cmp dword [esp + 0x40], 8
jb 0x1006acc8
push dword [esp + 0x2c]
call edi
add esp, 4
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.10011440
mov ebx, eax
cmp esi, ebx
je 0x1006ad08
cmp dword [esi + 0x14], 8
jb 0x1006aced
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.1000d5d0
cmp dword [esp + 0x40], 8
jb 0x1006ad18
push dword [esp + 0x2c]
call edi
add esp, 4
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi]
add esp, 4
sub eax, 0x101
je 0x1006ad4c
dec eax
jne 0x1006b025
push str.ProgramFile
lea ecx, [esp + 0x48]
jmp 0x1006b020
push str.ProgramData
lea ecx, [esp + 0x48]
jmp 0x1006b020
cmp ebx, 0x25
jne 0x1006b149
push 9
push 0
push str._firefox_
mov ecx, esi
call fcn.10008750
test eax, eax
jne 0x1006afe2
push 0x206
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
lea eax, [esp + 0x74]
push 0
push 0x1c
push eax
push 0
call ebx
push 0
push 0x1a
lea eax, [esp + 0x7c]
push eax
push 0
call ebx
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
mov byte [esp + 0x6a0], 2
cmp word [esp + 0x74], ax
jne 0x1006adee
xor ecx, ecx
jmp 0x1006ae04
lea ecx, [esp + 0x74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006adf5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x64]
call fcn.100089b0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], 0x5c
call fcn.10016c40
cmp eax, dword [esp + 0x6c]
je 0x1006ae41
push 0x100a21f4
lea ecx, [esp + 0x60]
call fcn.10011f20
push 0x1c
push str.MozillaFirefoxprofiles.ini
lea ecx, [esp + 0x64]
call fcn.10011f70
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0x100b2814
push str.Path
push 0x100b7db4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1006ae91
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
call fcn.100085e0
push 0
push 0x100b7db0
lea ecx, [esp + 0x34]
call fcn.100086f0
cmp eax, 0xffffffff
je 0x1006aec7
push 0x100a21f4
push 1
push 0
push 0x100b7db0
lea ecx, [esp + 0x3c]
call fcn.100086f0
push eax
lea ecx, [esp + 0x38]
call fcn.1001a050
push 0x104
lea eax, [esp + 0x78]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x74]
push 0
push 0x1c
push eax
push 0
call ebx
cmp word [esp + 0x74], 0
jne 0x1006aef4
xor ecx, ecx
jmp 0x1006af0f
lea ecx, [esp + 0x74]
lea edx, [ecx + 2]
jmp 0x1006af00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006af00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x64]
call fcn.100089b0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], 0x5c
call fcn.10016c40
cmp eax, dword [esp + 0x6c]
je 0x1006af4c
push 0x100a21f4
lea ecx, [esp + 0x60]
call fcn.10011f20
push 0x10
push str.MozillaFirefox_
lea ecx, [esp + 0x64]
call fcn.10011f70
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x68]
call fcn.10011780
cmp dword [esp + 0x3c], 0
je 0x1006af83
push 0x100a21f4
lea ecx, [esp + 0x60]
call fcn.10011f20
push 5
push str.cache
lea ecx, [esp + 0x64]
call fcn.10011f70
lea eax, [esp + 0x5c]
cmp esi, eax
je 0x1006afa7
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10008c80
cmp dword [esp + 0x40], 8
jb 0x1006afb7
push dword [esp + 0x2c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x1006b149
push dword [esp + 0x5c]
jmp 0x1006b144
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x1006b006
mov eax, dword [esi]
jmp 0x1006b008
mov eax, esi
push 0x208
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.100085e0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x48c], ax
lea eax, [esp + 0x48e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0xb
push str.ProgramData
push dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x54]
call fcn.10010100
test eax, eax
jne 0x1006b08c
cmp byte [ebp + 0xc], al
je 0x1006b068
push eax
push 0x23
jmp 0x1006b0ac
cmp dword [esp + 0x58], 8
push 0x104
lea ecx, [esp + 0x488]
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x1006b0bc
mov edx, str.ProgramFile
lea ecx, [esp + 0x44]
call fcn.100100b0
test al, al
je 0x1006b0bc
cmp byte [ebp + 0x10], 0
push 0
jne 0x1006b0aa
push 0x26
jmp 0x1006b0ac
push 0x2a
lea eax, [esp + 0x48c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x484]
push eax
lea ecx, [esp + 0x14]
call fcn.10008550
push esi
mov edx, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x6a4], 3
call fcn.100169d0
mov ebx, eax
add esp, 4
cmp esi, ebx
je 0x1006b112
cmp dword [esi + 0x14], 8
jb 0x1006b0f7
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.1000d5d0
cmp dword [esp + 0x40], 8
jb 0x1006b122
push dword [esp + 0x2c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x24], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x1006b149
push dword [esp + 0x10]
call edi
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x1006b159
push dword [esp + 0x44]
call edi
add esp, 4
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret