Function at 0x403180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d6b9
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x2c4], ebx
mov eax, dword [esi]
mov edi, ecx
mov dword [ebp - 0x2bc], edi
mov dword [ebp - 0x2cc], esi
cmp dword [eax - 0xc], ebx
jne 0x4031e2
push edi
mov ecx, 0x4a3cf0
call fcn.00416680
mov eax, edi
jmp 0x403571
lea ecx, [ebp - 0x2b8]
push ecx
mov dword [ebp - 4], ebx
call fcn.0044d480
and dword [ebp - 0x2e0], 0xfffffe00
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
push str.installer_prefs.json
lea edx, [ebp - 0x2c4]
push esi
push edx
mov byte [ebp - 4], 3
call fcn.00414ae0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x390]
push ecx
call fcn.0040ac80
lea edx, [ebp - 0x390]
push edx
lea edi, [ebp - 0x2e8]
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 5
call fcn.0044d630
cmp al, bl
jne 0x4032e1
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4a3cf0
call fcn.00416680
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 4
call fcn.0040adb0
lea eax, [ebp - 0x338]
push eax
mov dword [ebp - 0x338], 0x4abeec
call fcn.004766e6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.0044b8d0
lea edi, [ebp - 0x2b8]
call fcn.004022f0
mov eax, esi
jmp 0x403571
cmp byte [ebp - 0x2e0], 7
jne 0x403261
lea ecx, [ebp - 0x2e8]
push ecx
mov edx, str.single_profile
call fcn.0044cd20
cmp al, bl
je 0x403261
mov edx, dword [0x4ead14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ead14
call eax
add eax, 0x10
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 6
mov edx, dword [0x4ead14]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ead14
call eax
add eax, 0x10
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2f8]
and ecx, 0xfffffe01
or ecx, 1
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2f4], ebx
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
lea edx, [ebp - 0x300]
push edx
lea eax, [ebp - 0x2e8]
push eax
mov ecx, str.single_profile
lea eax, [ebp - 0x3a8]
mov byte [ebp - 4], 8
call fcn.0044cce0
push eax
mov byte [ebp - 4], 9
call fcn.0044c310
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 8
call fcn.0044b8d0
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 7
call fcn.0044b8d0
cmp byte [ebp - 0x2cd], bl
je 0x403485
mov ecx, dword [ebp - 0x2cc]
push str.profiledata
push ecx
lea edx, [ebp - 0x2cc]
push edx
call fcn.00414ae0
add esp, 0xc
lea edi, [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
call fcn.00416980
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00416a70
lea eax, [ebp - 0x2cc]
push eax
call fcn.0040df40
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xb
call fcn.00416980
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00416a70
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x403485
add eax, 0xfffffff0
call fcn.00416a00
mov esi, dword [ebp - 0x2bc]
add eax, 0x10
lea ecx, [ebp - 0x2c8]
mov dword [esi], eax
call fcn.00416a70
lea ecx, [ebp - 0x2c0]
call fcn.00416a70
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.00403160
lea ecx, [ebp - 0x2c4]
call fcn.00416a70
jmp 0x4032c0
lea ecx, [ebp - 0x220]
push ecx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
je 0x4034e1
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4a3cf0
call fcn.00416680
lea ecx, [ebp - 0x2c8]
call fcn.00416a70
lea ecx, [ebp - 0x2c0]
call fcn.00416a70
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.00403160
lea ecx, [ebp - 0x2c4]
call fcn.00416a70
jmp 0x4032c0
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x2c0]
call fcn.00416730
mov edx, str.Opera_SoftwareOpera_Stable
call fcn.00408e60
lea edx, [ebp - 0x2cc]
push edx
call fcn.0040df40
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xc
call fcn.00416980
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00416a70
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x40349b
jmp 0x40343d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret