Function at 0x1015c110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x1022a094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1022e00c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test eax, eax
je 0x1015c150
push eax
push 0x101cbf4c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.1013e450
add esp, 0x10
jmp 0x1015c1f3
mov eax, dword [0x1022e3ac]
test eax, eax
jne 0x1015c182
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x190], 2
sete al
inc eax
mov dword [0x1022e3ac], eax
cmp eax, 2
jne 0x1015c1a7
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.101a1820
jmp 0x1015c1c5
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.101a0550
mov esi, eax
add esp, 4
test esi, esi
je 0x1015c37e
push esi
push 0x101cbf4c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.1013e450
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
mov dl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1015c209
inc eax
cmp byte [eax], 0
jne 0x1015c203
lea ecx, [ebp - 0x10c]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
nop dword [eax + eax]
inc ecx
cmp byte [ecx], 0
jne 0x1015c220
mov esi, dword [ebp + 8]
sub ecx, str.etilqs_
and ecx, 0x3fffffff
add eax, 0x11
add eax, ecx
cmp eax, esi
jl 0x1015c253
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132937
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1015c266
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x1015c260
lea ecx, [ebp - 0x10c]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x1015c28b
lea ecx, [ebp + eax - 0x10d]
nop dword [eax]
cmp byte [ecx], 0x5c
jne 0x1015c28b
dec ecx
sub eax, 1
jne 0x1015c280
cmp eax, 0x105
jae 0x1015c393
push edi
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.1013e450
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x1015c2d1
cmp byte [ebx], 0
je 0x1015c2c9
inc edi
cmp byte [edi], 0
jne 0x1015c2c3
sub edi, ebx
and edi, 0x3fffffff
lea esi, [ebx + edi]
push esi
push 0xf
call fcn.1013e6b0
add esp, 8
mov dword [ebp - 0x318], 0x3e
add esi, 2
mov ecx, 3
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 0x318]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x1015c2f1
mov byte [ebx + edi + 0xf], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132937
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 7
pop esi
xor ecx, ebp
pop ebx
call fcn.10132937
mov esp, ebp
pop ebp
ret
call fcn.10132f2c
int3