Function at 0x4058c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf769
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4ea688]
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 0x405922
push edi
mov ecx, 0x4c561c
call fcn.00425750
mov eax, edi
jmp 0x405cb1
lea ecx, [ebp - 0x2b8]
push ecx
mov dword [ebp - 4], ebx
call fcn.0045c6a0
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.00411960
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x390]
push ecx
call fcn.004147e0
lea edx, [ebp - 0x390]
push edx
lea edi, [ebp - 0x2e8]
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 5
call fcn.0045c850
cmp al, bl
jne 0x405a21
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4c561c
call fcn.00425750
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 4
call fcn.004148b0
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.00490970
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 0x405a00
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.0045b960
lea edi, [ebp - 0x2b8]
call fcn.00404720
mov eax, esi
jmp 0x405cb1
cmp byte [ebp - 0x2e0], 7
jne 0x4059a1
lea ecx, [ebp - 0x2e8]
push ecx
mov edx, str.single_profile
call fcn.0045c310
cmp al, bl
je 0x4059a1
mov edx, dword [0x4f03cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f03cc
call eax
add eax, 0x10
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 6
mov edx, dword [0x4f03cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f03cc
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.0045c2d0
push eax
mov byte [ebp - 4], 9
call fcn.0045bb40
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 8
call fcn.0045b960
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 7
call fcn.0045b960
cmp byte [ebp - 0x2cd], bl
je 0x405bc5
mov ecx, dword [ebp - 0x2cc]
push str.profiledata
push ecx
lea edx, [ebp - 0x2cc]
push edx
call fcn.00411960
add esp, 0xc
lea edi, [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
call fcn.00414fb0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.004064a0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0041c430
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xb
call fcn.00414fb0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.004064a0
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x405bc5
add eax, 0xfffffff0
call fcn.00425a60
mov esi, dword [ebp - 0x2bc]
add eax, 0x10
lea ecx, [ebp - 0x2c8]
mov dword [esi], eax
call fcn.004064a0
lea ecx, [ebp - 0x2c0]
call fcn.004064a0
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.004058a0
lea ecx, [ebp - 0x2c4]
call fcn.004064a0
jmp 0x405a00
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 0x405c21
mov esi, dword [ebp - 0x2bc]
push esi
mov ecx, 0x4c561c
call fcn.00425750
lea ecx, [ebp - 0x2c8]
call fcn.004064a0
lea ecx, [ebp - 0x2c0]
call fcn.004064a0
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 4
call fcn.004058a0
lea ecx, [ebp - 0x2c4]
call fcn.004064a0
jmp 0x405a00
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x2c0]
call fcn.00425a10
mov edx, str.Opera_SoftwareOpera_Stable
call fcn.004116e0
lea edx, [ebp - 0x2cc]
push edx
call fcn.0041c430
add esp, 4
lea edi, [ebp - 0x2c8]
mov byte [ebp - 4], 0xc
call fcn.00414fb0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.004064a0
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], ebx
je 0x405bdb
jmp 0x405b7d
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.00491db1
mov esp, ebp
pop ebp
ret