Function at 0x4056a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bebf9
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4e9688]
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 0x405702
push edi
mov ecx, 0x4c4348
call fcn.00424e40
mov eax, edi
jmp 0x405a91
lea ecx, [ebp - 0x2b8]
push ecx
mov dword [ebp - 4], ebx
call fcn.0045b7c0
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.00411090
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x390]
push ecx
call fcn.00413eb0
lea edx, [ebp - 0x390]
push edx
lea edi, [ebp - 0x2e8]
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 5
call fcn.0045b970
cmp al, bl
jne 0x405801
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4c4348
call fcn.00424e40
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 4
call fcn.00413f80
lea eax, [ebp - 0x338]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.0048fe40
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 0x4057e0
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.0045aa80
lea edi, [ebp - 0x2b8]
call fcn.004046a0
mov eax, esi
jmp 0x405a91
cmp byte [ebp - 0x2e0], 7
jne 0x405781
lea ecx, [ebp - 0x2e8]
push ecx
mov edx, str.single_profile
call fcn.0045b430
cmp al, bl
je 0x405781
mov edx, dword [0x4ef36c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ef36c
call eax
add eax, 0x10
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 6
mov edx, dword [0x4ef36c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ef36c
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.0045b3f0
push eax
mov byte [ebp - 4], 9
call fcn.0045ac60
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 8
call fcn.0045aa80
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 7
call fcn.0045aa80
cmp byte [ebp - 0x2cd], bl
je 0x4059a5
mov ecx, dword [ebp - 0x2cc]
push str.profiledata
push ecx
lea edx, [ebp - 0x2cc]
push edx
call fcn.00411090
add esp, 0xc
lea edi, [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
call fcn.004146d0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00406270
lea eax, [ebp - 0x2cc]
push eax
call fcn.0041ba90
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xb
call fcn.004146d0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00406270
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x4059a5
add eax, 0xfffffff0
call fcn.00425150
mov esi, dword [ebp - 0x2bc]
add eax, 0x10
lea ecx, [ebp - 0x2c8]
mov dword [esi], eax
call fcn.00406270
lea ecx, [ebp - 0x2c0]
call fcn.00406270
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.00405680
lea ecx, [ebp - 0x2c4]
call fcn.00406270
jmp 0x4057e0
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 0x405a01
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4c4348
call fcn.00424e40
lea ecx, [ebp - 0x2c8]
call fcn.00406270
lea ecx, [ebp - 0x2c0]
call fcn.00406270
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.00405680
lea ecx, [ebp - 0x2c4]
call fcn.00406270
jmp 0x4057e0
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x2c0]
call fcn.00425100
mov edx, str.Opera_SoftwareOpera_Stable
call fcn.00410e10
lea edx, [ebp - 0x2cc]
push edx
call fcn.0041ba90
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xc
call fcn.004146d0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.00406270
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x4059bb
jmp 0x40595d
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.00491281
mov esp, ebp
pop ebp
ret