Function at 0x10002a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007afcc
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10094610]
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
xor eax, eax
mov dword [ebp - 0x224], eax
mov edi, dword [0x10095a04]
mov esi, ecx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 2
cmp dword [edi - 8], eax
je 0x10002ad0
cmp dword [edi - 0xc], eax
lea ebx, [edi - 0xc]
jl 0x10002aa7
lea eax, [edi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10002ad0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10002a99
push ebx
call fcn.10066c8a
add esp, 4
mov ecx, dword [0x10095a04]
mov dword [ebp - 0x220], ecx
jmp 0x10002aca
push 0x100824b4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x100824b4
mov ebx, eax
lea esi, [ebp - 0x220]
call fcn.10004f10
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10002b9f
cmp dword [edi - 0xc], 0
lea ebx, [edi - 0xc]
mov dword [ebp - 0x224], ebx
jl 0x10002b07
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10002b29
mov eax, dword [0x10095a04]
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
call fcn.10004f10
mov ebx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x228]
add edi, 0xfffffff4
cmp edi, dword [0x10095a00]
je 0x10002b48
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10002b48
push ebx
call fcn.10066c8a
add esp, 4
mov edi, dword [ebp - 0x22c]
lea ecx, [edi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10002b70
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10002b70
push edi
call fcn.10066c8a
add esp, 4
mov edi, dword [ebp - 0x21c]
lea edx, [edi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10002b98
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10002b98
push edi
call fcn.10066c8a
add esp, 4
mov eax, esi
jmp 0x10002d03
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
mov ebx, eax
lea esi, [ebp - 0x21c]
call fcn.10004f10
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x10002bdc
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10002bdc
call fcn.10003150
push str.OperaOpera_
call edi
test eax, eax
je 0x10002bf7
push str.OperaOpera_
lea ecx, [ebp - 0x21c]
call fcn.100031e0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, str.operaprefs.ini
call fcn.10003340
mov edi, eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.10003400
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10002c57
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10002c57
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff4
push edx
call fcn.10066c8a
add esp, 4
mov ebx, dword [ebp - 0x22c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10002d1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x21c]
lea eax, [ebp - 0x220]
call fcn.10003400
mov esi, dword [ebp - 0x220]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10002cc1
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10002cc1
push esi
call fcn.10066c8a
add esp, 4
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10002cdf
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x10002cdf
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x21c]
lea edx, [esi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10002d03
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10002d03
push esi
call fcn.10066c8a
add esp, 4
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.100660ff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
call fcn.10003b10
mov esi, dword [ebp - 0x220]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10002d54
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10002d54
push esi
call fcn.10066c8a
add esp, 4
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10002d72
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x10002d72
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x21c]
lea edx, [esi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10002d96
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10002d96
push esi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x228]
jmp 0x10002d03