Function at 0x1009e310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1018fcfc]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x31c], ebx
push esi
push edi
test eax, eax
je 0x1009e357
push eax
push 0x101794b4
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.10087fb0
add esp, 0x10
jmp 0x1009e427
mov eax, dword [0x1018fff4]
test eax, eax
jne 0x1009e389
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 [0x1018fff4], eax
cmp eax, 2
jne 0x1009e3cb
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.100db230
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009e407
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.100a0690
mov edi, eax
add esp, 4
test edi, edi
je 0x1009e3b5
push edi
call fcn.100db230
push edi
mov esi, eax
call fcn.1011bc41
add esp, 8
test esi, esi
je 0x1009e3b5
push esi
push 0x101794b4
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.10087fb0
push esi
call fcn.1011bc41
add esp, 0x14
mov dl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1009e43d
inc eax
cmp byte [eax], 0
jne 0x1009e437
lea ecx, [ebp - 0x10c]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
nop
inc ecx
cmp byte [ecx], 0
jne 0x1009e450
mov esi, dword [ebp + 8]
sub ecx, str.etilqs_
and ecx, 0x3fffffff
add eax, 0x11
add eax, ecx
cmp eax, esi
jl 0x1009e484
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1009e496
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x1009e490
lea ecx, [ebp - 0x10c]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x1009e4af
cmp byte [ecx + eax - 1], 0x5c
jne 0x1009e4af
dec eax
jne 0x1009e4a5
cmp eax, 0x105
jae 0x1009e5dc
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
lea eax, [esi - 0x11]
push ebx
push eax
call fcn.10087fb0
add esp, 0x10
mov esi, ebx
test ebx, ebx
je 0x1009e4f4
cmp byte [ebx], 0
je 0x1009e4ec
inc esi
cmp byte [esi], 0
jne 0x1009e4e6
sub esi, ebx
and esi, 0x3fffffff
add ebx, esi
mov edi, 0xf
cmp dword [0x1018b74c], 0
jne 0x1009e510
mov dword [ebp - 0x318], 0
jmp 0x1009e530
push 5
call dword [0x1018b788]
add esp, 4
mov dword [ebp - 0x318], eax
test eax, eax
je 0x1009e530
push eax
call dword [0x1018b790]
add esp, 4
nop
call fcn.100a6d90
mov byte [ebx], al
lea ebx, [ebx + 1]
dec edi
jne 0x1009e530
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x1009e551
push eax
call dword [0x1018b798]
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 + 0x1018b94c]
xor edx, edx
mov byte [ecx + esi - 5], al
movzx eax, byte [ecx + esi - 4]
div ebx
mov al, byte [edx + 0x1018b94c]
xor edx, edx
mov byte [ecx + esi - 4], al
movzx eax, byte [ecx + esi - 3]
div ebx
mov al, byte [edx + 0x1018b94c]
xor edx, edx
mov byte [ecx + esi - 3], al
movzx eax, byte [ecx + esi - 2]
div ebx
mov al, byte [edx + 0x1018b94c]
xor edx, edx
mov byte [ecx + esi - 2], al
movzx eax, byte [ecx + esi - 1]
div ebx
mov al, byte [edx + 0x1018b94c]
mov byte [ecx + esi - 1], al
dec edi
jne 0x1009e561
mov byte [ecx + esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
call fcn.1011ef87
int3