Function at 0x10008970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1007eaf8]
push ebx
push esi
test eax, eax
je 0x100089ad
push eax
push 0x10075ca4
lea eax, [ebp - 0x110]
push eax
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0x10
jmp 0x10008a77
mov eax, dword [0x1007eabc]
test eax, eax
jne 0x100089df
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x228], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x218], 2
sete al
inc eax
mov dword [0x1007eabc], eax
cmp eax, 2
jne 0x10008a1c
lea edx, [ebp - 0x318]
push edx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebp - 0x318]
call fcn.10007620
mov esi, eax
test esi, esi
jne 0x10008a57
mov eax, 7
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065fcc
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x218]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x218]
push edx
call fcn.10007680
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10008a07
call fcn.10007620
push ebx
mov esi, eax
call fcn.10066401
add esp, 4
test esi, esi
je 0x10008a07
push esi
push 0x10075ca4
lea eax, [ebp - 0x110]
push eax
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
push esi
call fcn.10066401
add esp, 0x14
mov dl, byte [ebp - 0x110]
lea eax, [ebp - 0x110]
test dl, dl
je 0x10008a8d
inc eax
cmp byte [eax], 0
jne 0x10008a87
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
mov ecx, eax
mov eax, str.etilqs_
inc eax
cmp byte [eax], 0
jne 0x10008aa1
sub eax, str.etilqs_
and eax, 0x3fffffff
lea eax, [eax + ecx + 0x11]
cmp eax, 0x105
jl 0x10008ad1
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065fcc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
test dl, dl
je 0x10008ae6
jmp 0x10008ae0
inc eax
cmp byte [eax], 0
jne 0x10008ae0
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x10008aff
cmp byte [ecx + eax - 1], 0x5c
jne 0x10008aff
dec eax
jne 0x10008af5
lea edx, [ebp - 0x110]
push edx
push str._setilqs_
push edi
push 0xf4
mov byte [ebp + eax - 0x110], 0
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0x10
mov eax, edi
test edi, edi
je 0x10008b3d
cmp byte [edi], 0
je 0x10008b36
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x10008b30
sub eax, edi
and eax, 0x3fffffff
mov esi, eax
add eax, edi
cmp dword [0x1007cc74], 0
mov ebx, 0xf
mov dword [ebp - 0x320], eax
jne 0x10008b61
mov dword [ebp - 0x31c], 0
jmp 0x10008b82
push 5
call dword [0x1007ccb0]
add esp, 4
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x10008b82
mov ecx, eax
push ecx
call dword [0x1007ccb8]
add esp, 4
call fcn.100058e0
mov ecx, dword [ebp - 0x320]
mov byte [ecx], al
inc ecx
dec ebx
mov dword [ebp - 0x320], ecx
jne 0x10008b82
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x10008bad
push eax
call dword [0x1007ccc0]
add esp, 4
mov ecx, 3
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
movzx eax, byte [edi + esi + 1]
add esi, 5
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 2]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
dec ecx
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x10008bb2
mov byte [edi + esi], cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10065fcc
mov esp, ebp
pop ebp
ret