Function at 0x4368d0
Capabilities:
Check if file exists
Get common file path
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5613b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x930
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [0x64893c]
mov esi, dword [0x648938]
cmp esi, edi
je 0x43693c
mov ecx, esi
call fcn.00434670
add esi, 0x90
cmp esi, edi
jne 0x436925
mov esi, dword [0x648938]
mov dword [0x64893c], esi
mov cl, 1
call fcn.00434010
mov esi, 1
mov dword [ebp - 0x91c], esi
cmp esi, 5
jg 0x437637
mov dword [ebp - 0x8ec], 0
lea eax, [ebp - 0x368]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x436b4a
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x36c], 7
mov dword [ebp - 0x370], 0
xor eax, eax
mov word [ebp - 0x380], ax
cmp word [ebp - 0x368], ax
jne 0x4369c2
xor ecx, ecx
jmp 0x4369df
lea ecx, [ebp - 0x368]
lea edx, [ecx + 2]
jmp 0x4369d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4369d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x380]
call fcn.00404140
mov dword [ebp - 4], 0
dec esi
cmp esi, 4
ja case.default.0x4369ff
jmp dword [esi*4 + 0x43765c]
push 0x15
push str.OperaOperawand.dat
jmp 0x436a31
push 0x1a
push str.OperaOpera_Nextwand.dat
jmp 0x436a31
push 0x19
push str.OperaOperaNextwand.dat
jmp 0x436a31
push 0x1e
push str.OperaOpera_Next_x64wand.dat
jmp 0x436a31
push 0x19
push str.OperaOpera_x64wand.dat
lea ecx, [ebp - 0x380]
call fcn.00404c80
lea eax, [ebp - 0x380]
cmp dword [ebp - 0x36c], 8
cmovae eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne case.default.0x436a9a
cmp word [ebp - 0x368], 0
jne 0x436a6a
xor ecx, ecx
jmp 0x436a82
lea ecx, [ebp - 0x368]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436a73
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x380]
call fcn.00404140
cmp esi, 4
ja case.default.0x436a9a
jmp dword [esi*4 + 0x437670]
push str.OperaOperaprofilewand.dat
jmp 0x436ac2
push str.OperaOpera_Nextprofilewand.dat
jmp 0x436ac2
push str.OperaOperaNextprofilewand.dat
jmp 0x436ac2
push str.OperaOpera_Next_x64profilewand.dat
jmp 0x436ac2
push str.OperaOpera_x64profilewand.dat
lea ecx, [ebp - 0x380]
call fcn.004040f0
lea eax, [ebp - 0x380]
cmp dword [ebp - 0x36c], 8
cmovae eax, dword [ebp - 0x380]
push 0x5936ec
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.005243ac
add esp, 0xc
mov ecx, dword [ebp - 0x8ec]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x8ec], ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x36c], 8
jb 0x436b27
push dword [ebp - 0x380]
call fcn.00443e80
add esp, 4
mov dword [ebp - 0x36c], 7
mov dword [ebp - 0x370], 0
xor eax, eax
mov word [ebp - 0x380], ax
mov esi, dword [ebp - 0x91c]
cmp dword [ebp - 0x8ec], 0
je 0x437631
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x900], esi
mov dword [ebp - 0x8fc], esi
mov dword [ebp - 0x8f8], esi
mov byte [ebp - 4], 2
push 2
push esi
push dword [ebp - 0x8ec]
call fcn.005235e4
add esp, 0xc
push dword [ebp - 0x8ec]
call fcn.00523447
add esp, 4
mov edi, eax
mov dword [ebp - 0x8f4], edi
push dword [ebp - 0x8ec]
call fcn.005244bb
add esp, 4
push edi
call fcn.0051f61a
add esp, 4
mov esi, eax
mov dword [ebp - 0x920], esi
test esi, esi
je 0x4375f9
push dword [ebp - 0x8ec]
push edi
push 1
push esi
call fcn.00522afa
add esp, 0x10
cmp eax, edi
jne 0x4375f0
mov dword [ebp - 0x904], 0
xor edi, edi
mov dword [ebp - 0x914], edi
mov eax, dword [ebp - 0x8f4]
add eax, 0xfffffffc
cmp edi, eax
jge 0x4371be
mov edx, dword [ebp - 0x920]
cmp byte [edi + edx], 0
jne 0x4371b8
cmp byte [edi + edx + 1], 0
jne 0x4371b8
cmp byte [edi + edx + 2], 0
jne 0x4371b8
cmp byte [edi + edx + 3], 8
jne 0x4371b8
xor esi, esi
mov ecx, 0xc
mov dword [ebp - 0x904], esi
mov dword [ebp - 0x930], ecx
cmp ecx, 0xf
jg 0x436c5f
shl esi, 8
mov dword [ebp - 0x904], esi
lea eax, [ecx + edi]
movzx eax, byte [eax + edx]
add esi, eax
inc ecx
jmp 0x436c39
test esi, esi
js 0x437183
lea eax, [esi + 0x10]
add eax, edi
cmp eax, dword [ebp - 0x8f4]
jg 0x437183
push esi
call fcn.0051f61a
add esp, 4
mov dword [ebp - 0x918], eax
test eax, eax
je 0x437172
mov edx, dword [ebp - 0x920]
mov edi, dword [edi + edx + 4]
mov ecx, dword [ebp - 0x914]
mov eax, dword [ecx + edx + 8]
mov dword [ebp - 0x8e8], eax
push esi
lea eax, [ecx + 0x10]
add eax, edx
push eax
push dword [ebp - 0x918]
call fcn.005256b0
add esp, 0xc
mov dword [ebp - 0x910], 0xffc7d83
mov dword [ebp - 0x90c], 0x69e8b38e
mov word [ebp - 0x908], 0xaf73
or al, 0xff
mov byte [ebp - 0x906], al
movq xmm0, qword [ebp - 0x910]
movq qword [ebp - 0x160], xmm0
mov si, word [ebp - 0x908]
mov word [ebp - 0x158], si
mov byte [ebp - 0x156], al
mov dword [ebp - 0x155], edi
mov eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x151], eax
lea ecx, [ebp - 0x598]
call fcn.00437690
mov byte [ebp - 4], 4
push 0x13
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x598]
mov eax, dword [ebp - 0x598]
call dword [eax + 0xc]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x598]
mov eax, dword [ebp - 0x598]
call dword [eax + 0x14]
movdqu xmm0, xmmword [ebp - 0x44]
movdqu xmmword [ebp - 0x160], xmm0
movq xmm0, qword [ebp - 0x910]
movq qword [ebp - 0x150], xmm0
mov word [ebp - 0x148], si
mov al, byte [ebp - 0x906]
mov byte [ebp - 0x146], al
mov dword [ebp - 0x145], edi
mov eax, dword [ebp - 0x8e8]
mov dword [ebp - 0x141], eax
push 0x23
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x598]
mov eax, dword [ebp - 0x598]
call dword [eax + 0xc]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x598]
mov eax, dword [ebp - 0x598]
call dword [eax + 0x14]
lea ecx, [ebp - 0x8e0]
call fcn.00439640
mov byte [ebp - 4], 5
movdqu xmm0, xmmword [ebp - 0x44]
movdqu xmmword [ebp - 0x5c], xmm0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push 8
lea eax, [ebp - 0x24]
push eax
push 0x18
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x8e0]
call fcn.004ecaf0
mov byte [ebp - 0x8e1], 1
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x384], 0xf
mov dword [ebp - 0x388], 0
mov byte [ebp - 0x398], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x39c], 0xf
mov dword [ebp - 0x3a0], 0
mov byte [ebp - 0x3b0], 0
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x904]
push esi
push dword [ebp - 0x918]
lea ecx, [ebp - 0x4e8]
call fcn.00406f10
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00406f40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4e8]
call fcn.00402630
mov dword [ebp - 4], 7
mov byte [ebp - 4], 0xb
push 0x60
call fcn.0051f5ad
add esp, 4
mov edi, eax
mov dword [ebp - 0x8f0], edi
mov byte [ebp - 4], 0xc
test edi, edi
je 0x436f18
push 0x10
call fcn.0051f5ad
add esp, 4
mov dword [ebp - 0x8e8], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x436efd
lea ecx, [ebp - 0x398]
push ecx
mov ecx, eax
call fcn.00438620
jmp 0x436eff
xor eax, eax
mov byte [ebp - 4], 0xc
push 0
push 4
push eax
lea eax, [ebp - 0x8dc]
push eax
mov ecx, edi
call fcn.004e80b0
jmp 0x436f1a
xor eax, eax
mov byte [ebp - 4], 0xb
push eax
push ecx
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x6f0]
call fcn.00433cf0
lea ecx, [ebp - 0x6f0]
call fcn.00433ed0
mov dword [ebp - 4], 7
lea eax, [ebp - 0x398]
cmp dword [ebp - 0x384], 0x10
cmovae eax, dword [ebp - 0x398]
mov dword [ebp - 0x8e8], eax
mov ecx, dword [ebp - 0x388]
mov dword [ebp - 0x8f0], ecx
mov dword [ebp - 0x92c], 0
mov dword [ebp - 0x928], 0
mov dword [ebp - 0x924], 0
mov byte [ebp - 4], 0xf
xor edi, edi
mov dword [ebp - 0x940], edi
cmp edi, ecx
jae 0x436fd8
movzx ecx, byte [edi + eax + 1]
shl ecx, 8
movzx eax, byte [edi + eax]
add ecx, eax
movzx eax, cx
mov dword [ebp - 0x934], eax
lea eax, [ebp - 0x934]
push eax
lea ecx, [ebp - 0x92c]
call fcn.004397e0
add edi, 2
mov dword [ebp - 0x940], edi
mov eax, dword [ebp - 0x8e8]
mov ecx, dword [ebp - 0x8f0]
jmp 0x436f94
mov dword [ebp - 0x93c], 0
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x92c]
call fcn.004397e0
push 0x584694
lea ecx, [ebp - 0x398]
call fcn.00406f80
lea eax, [ebp - 0x398]
push eax
push dword [ebp - 0x928]
push dword [ebp - 0x92c]
lea ecx, [ebp - 0x944]
call fcn.0043b180
add esp, 0xc
lea eax, [ebp - 0x398]
cmp dword [ebp - 0x384], 0x10
cmovae eax, dword [ebp - 0x398]
mov cl, byte [eax]
test cl, cl
je 0x437072
cmp cl, 8
je 0x437072
push eax
lea ecx, [ebp - 0x410]
call fcn.004025d0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x900]
call fcn.00439530
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x410]
jmp 0x4370a2
push 0x584694
lea ecx, [ebp - 0x488]
call fcn.004025d0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x900]
call fcn.00439530
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x488]
call fcn.00402630
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x92c]
call fcn.00439890
jmp 0x437122
push dword [ebp - 0x918]
call fcn.0051f344
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3b0]
call fcn.00402630
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x398]
call fcn.00402630
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8e0]
call fcn.00437780
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x598]
call fcn.004376f0
mov edi, dword [ebp - 0x914]
add edi, 0xf
add edi, esi
mov dword [ebp - 0x914], edi
inc edi
jmp 0x436bea
push 0x584694
lea ecx, [ebp - 0x428]
call fcn.004025d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x900]
call fcn.00439530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
call fcn.00402630
inc edi
jmp 0x436bea
xor edi, edi
mov dword [ebp - 0x938], edi
mov esi, dword [ebp - 0x900]
lea esp, [esp]
mov ecx, dword [ebp - 0x8fc]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi - 2]
cmp edi, eax
jge 0x4375ea
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 0x900]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x8e8], eax
push eax
lea ecx, [ebp - 0x3c8]
call fcn.00406ee0
mov byte [ebp - 4], 0x13
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8f0], esp
lea eax, [ebp - 0x3c8]
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x13
call fcn.00436560
add esp, 0x18
test al, al
je 0x4374be
lea eax, [esi - 5]
cmp edi, eax
jge 0x4374be
mov eax, dword [ebp - 0x8e8]
add eax, 0x18
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8f0], esp
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x13
call fcn.00436620
add esp, 0x18
test al, al
je 0x437289
lea eax, [edi + 1]
mov dword [ebp - 0x8f4], eax
jmp 0x4372cd
lea eax, [edi + 2]
mov dword [ebp - 0x8f4], eax
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x900]
lea eax, [ecx + eax*8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8f0], esp
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x13
call fcn.00436620
add esp, 0x18
test al, al
je 0x43749d
mov eax, dword [ebp - 0x8f4]
cmp eax, 0xffffffff
je 0x43749d
add eax, 4
mov dword [ebp - 0x8f0], eax
cmp eax, esi
jge 0x43749d
mov esi, dword [ebp - 0x8f4]
lea eax, [esi + 1]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x900]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0x3e0]
call fcn.00406ee0
mov byte [ebp - 4], 0x17
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8e8], esp
lea eax, [ebp - 0x3e0]
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x17
call fcn.00436790
add esp, 0x18
test al, al
jne 0x43748e
lea eax, [esi + 2]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x900]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0x3f8]
call fcn.00406ee0
mov byte [ebp - 4], 0x19
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8e8], esp
lea eax, [ebp - 0x3f8]
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x19
call fcn.00436790
add esp, 0x18
test al, al
jne 0x43747f
add esi, 3
lea eax, [esi + esi*2]
mov esi, dword [ebp - 0x900]
lea eax, [esi + eax*8]
push eax
lea ecx, [ebp - 0x458]
call fcn.00406ee0
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x8f0]
lea eax, [eax + eax*2]
lea eax, [esi + eax*8]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406ee0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x628]
call fcn.00435700
mov byte [ebp - 4], 0x1d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x628]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3e0]
push eax
lea ecx, [ebp - 0x5f8]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x610]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x5c8]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.00402660
lea eax, [ebp - 0x628]
push eax
mov ecx, 0x648938
call fcn.004389d0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x628]
call fcn.00434670
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x440]
call fcn.00402630
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x458]
call fcn.00402630
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3f8]
call fcn.00402630
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x3e0]
call fcn.00402630
mov esi, dword [ebp - 0x900]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c8]
call fcn.00402630
inc edi
mov dword [ebp - 0x938], edi
jmp 0x4371d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8f0], esp
lea eax, [ebp - 0x3c8]
push eax
call fcn.00406ee0
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x13
call fcn.004366e0
add esp, 0x18
test al, al
je 0x43749d
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.00407030
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x3c8]
call fcn.00406f40
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4d0]
call fcn.00402630
mov eax, dword [ebp - 0x8e8]
add eax, 0x18
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00406ee0
mov byte [ebp - 4], 0x20
lea eax, [edi + 2]
lea eax, [eax + eax*2]
mov esi, dword [ebp - 0x900]
lea eax, [esi + eax*8]
push eax
lea ecx, [ebp - 0x470]
call fcn.00406ee0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x6b8]
call fcn.00435700
mov byte [ebp - 4], 0x22
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x6a0]
call fcn.00402660
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x670]
call fcn.00402660
lea eax, [ebp - 0x6b8]
push eax
mov ecx, 0x648938
call fcn.004389d0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x6b8]
call fcn.00434670
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x470]
call fcn.00402630
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4b8]
call fcn.00402630
jmp 0x4374a3
mov esi, dword [ebp - 0x920]
push esi
call fcn.0051f344
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x900]
call fcn.00439600
jmp 0x437616
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x8ec]
call fcn.00520b12
add esp, 4
mov esi, dword [ebp - 0x91c]
inc esi
jmp 0x43694e
mov eax, 0x648938
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0051ece9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret