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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4eb6b8]
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 0x41c6d4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00415f60
mov dword [ebp - 4], ebx
push 0xf
mov eax, str.Maxthon3Users
mov ecx, esi
call fcn.004137b0
push 0x24
mov dword [ebp - 0x294], ebx
call fcn.0049b98c
add esp, 4
cmp eax, ebx
je 0x41c9bb
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.00419240
add esp, 0xc
mov byte [ebp - 4], 4
lea ebx, [ebp - 0x298]
mov ecx, eax
call fcn.0041aba0
test al, al
sete byte [ebp - 0x289]
mov byte [ebp - 4], 3
mov edi, 8
cmp dword [ebp - 0x23c], edi
jb 0x41c77e
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0049b30a
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 0x41c81c
mov byte [ebp - 4], 5
lea ebx, [ebp - 0x298]
call fcn.0041f280
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x298]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], edi
jb 0x41c7e5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049b30a
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.0049b315
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x298]
mov esi, dword [eax]
cmp esi, eax
je 0x41c95a
lea esp, [esp]
push 0x4cccdc
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x288]
push ecx
call fcn.00419240
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.00419320
mov byte [ebp - 4], bl
push str.AddonsDataMxAddonMiscconfig.ini
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004191b0
add esp, 0x14
mov byte [ebp - 4], 9
cmp dword [ebp - 0x258], edi
jb 0x41c894
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0049b30a
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 0x41c8c8
mov eax, dword [ebp - 0x288]
push eax
call fcn.0049b30a
add esp, 4
xor eax, eax
push 0x4f0adc
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.004138e0
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
call fcn.0041ca00
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [ebp - 0x23c], edi
jb 0x41c933
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0049b30a
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 0x41c830
mov byte [ebp - 4], 0xc
lea ebx, [ebp - 0x298]
call fcn.0041f280
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x298]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], edi
jb 0x41c99b
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049b30a
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 0x41c800
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x29c], ebx
call fcn.0049b49f
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 0x4de44c
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.004a1b7b
int3