Function at 0x40bfb0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fdfb
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4bf6bc]
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
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c014
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00408600
mov dword [ebp - 4], ebx
push 0xf
mov eax, str.Maxthon3Users
mov ecx, esi
call fcn.00409c50
push 0x24
mov dword [ebp - 0x294], ebx
call fcn.0047c586
add esp, 4
cmp eax, ebx
je 0x40c2fb
mov dword [eax], eax
mov dword [ebp - 0x298], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 3
push str..
mov edx, esi
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.00410b30
add esp, 0xc
mov byte [ebp - 4], 4
lea ebx, [ebp - 0x298]
mov ecx, eax
call fcn.0040a450
test al, al
sete byte [ebp - 0x289]
mov byte [ebp - 4], 3
mov edi, 8
cmp dword [ebp - 0x23c], edi
jb 0x40c0be
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], dx
cmp byte [ebp - 0x289], dl
je 0x40c15c
mov byte [ebp - 4], 5
lea ebx, [ebp - 0x298]
call fcn.0040fae0
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x298]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], edi
jb 0x40c125
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
xor al, al
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.0047bd9c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x298]
mov esi, dword [eax]
cmp esi, eax
je 0x40c29a
lea esp, [esp]
push 0x4a7b0c
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x288]
push ecx
call fcn.00410b30
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [esi + 8]
push ecx
lea edx, [ebp - 0x26c]
push edx
mov ecx, eax
call fcn.004098f0
mov byte [ebp - 4], bl
push str.AddonsDataMxAddonMiscconfig.ini
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00409780
add esp, 0x14
mov byte [ebp - 4], 9
cmp dword [ebp - 0x258], edi
jb 0x40c1d4
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0047bd91
add esp, 4
xor eax, eax
xor edx, edx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], eax
mov word [ebp - 0x26c], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x274], edi
jb 0x40c208
mov eax, dword [ebp - 0x288]
push eax
call fcn.0047bd91
add esp, 4
xor eax, eax
push 0x4c4578
sub esp, 0x1c
xor ecx, ecx
mov word [ebp - 0x288], cx
mov ecx, esp
mov dword [ebp - 0x29c], esp
mov dword [ecx + 0x10], eax
push eax
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x250]
xor edx, edx
push eax
mov dword [ecx + 0x14], ebx
or eax, 0xffffffff
mov dword [ebp - 0x274], ebx
mov word [ecx], dx
call fcn.00407860
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
call fcn.0040c340
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [ebp - 0x23c], edi
jb 0x40c273
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0047bd91
add esp, 4
mov esi, dword [esi]
xor edx, edx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], dx
cmp esi, dword [ebp - 0x298]
jne 0x40c170
mov byte [ebp - 4], 0xc
lea ebx, [ebp - 0x298]
call fcn.0040fae0
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x298]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], edi
jb 0x40c2db
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
mov al, 1
jmp 0x40c140
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x29c], ebx
call fcn.0047c048
mov byte [ebp - 4], 1
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], bl
push 0x4b653c
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.00480a41
int3