Function at 0x1002d650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100aeb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100aee08]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x31c], ebx
push esi
push edi
test eax, eax
je 0x1002d697
push eax
push 0x10094370
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call sym.YJK_SQL.dll_sqlite3_snprintf
add esp, 0x10
jmp 0x1002d77d
mov eax, dword [0x100aef28]
test eax, eax
jne 0x1002d6c9
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x210], 2
sete al
inc eax
mov dword [0x100aef28], eax
cmp eax, 2
jne 0x1002d719
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.1006e7c0
mov esi, eax
add esp, 4
test esi, esi
je 0x1002d93c
push esi
push 0x10094370
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call sym.YJK_SQL.dll_sqlite3_snprintf
push esi
call dword [sym.imp.MSVCR120.dll_free]
jmp 0x1002d77a
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.1002fdf0
mov edi, eax
add esp, 4
test edi, edi
je 0x1002d93c
push edi
call fcn.1006e7c0
push edi
mov edi, dword [sym.imp.MSVCR120.dll_free]
mov esi, eax
call edi
add esp, 8
test esi, esi
je 0x1002d93c
push esi
push 0x10094370
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call sym.YJK_SQL.dll_sqlite3_snprintf
push esi
call edi
add esp, 0x14
mov dl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1002d796
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x1002d790
lea ecx, [ebp - 0x10c]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
inc ecx
cmp byte [ecx], 0
jne 0x1002d7a8
mov esi, dword [ebp + 8]
sub ecx, str.etilqs_
and ecx, 0x3fffffff
add eax, 0x11
add eax, ecx
cmp eax, esi
jl 0x1002d7dc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1002d7ec
inc eax
cmp byte [eax], 0
jne 0x1002d7e6
lea ecx, [ebp - 0x10c]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x1002d80a
jmp 0x1002d800
cmp byte [ecx + eax - 1], 0x5c
jne 0x1002d80a
dec eax
jne 0x1002d800
cmp eax, 0x105
jae 0x1002d952
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
lea eax, [esi - 0x11]
push ebx
push eax
call sym.YJK_SQL.dll_sqlite3_snprintf
add esp, 0x10
mov esi, ebx
test ebx, ebx
je 0x1002d84f
cmp byte [ebx], 0
je 0x1002d847
inc esi
cmp byte [esi], 0
jne 0x1002d841
sub esi, ebx
and esi, 0x3fffffff
add ebx, esi
mov edi, 0xf
cmp dword [0x100ae094], 0
jne 0x1002d86b
mov dword [ebp - 0x318], 0
jmp 0x1002d890
push 5
call dword [0x100ae0d4]
add esp, 4
mov dword [ebp - 0x318], eax
test eax, eax
je 0x1002d890
push eax
call dword [0x100ae0dc]
add esp, 4
lea ebx, [ebx]
call fcn.10037610
mov byte [ebx], al
lea ebx, [ebx + 1]
dec edi
jne 0x1002d890
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x1002d8b1
push eax
call dword [0x100ae0e4]
add esp, 4
mov ecx, dword [ebp - 0x31c]
mov edi, 3
mov ebx, 0x3e
movzx eax, byte [ecx + esi]
lea esi, [esi + 5]
xor edx, edx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 5], al
movzx eax, byte [ecx + esi - 4]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 4], al
movzx eax, byte [ecx + esi - 3]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 3], al
movzx eax, byte [ecx + esi - 2]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 2], al
movzx eax, byte [ecx + esi - 1]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ecx + esi - 1], al
dec edi
jne 0x1002d8c1
pop edi
mov byte [ecx + esi], 0
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e662
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 7
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e662
mov esp, ebp
pop ebp
ret
call fcn.1008e8e0
int3