Function at 0x4d1c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x64feb4]
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4d1ca0
push eax
push 0x5fcb5c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.004b88e0
add esp, 0x10
jmp 0x4d1d42
mov eax, dword [0x650254]
test eax, eax
jne 0x4d1cd2
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 [0x650254], eax
cmp eax, 2
jne 0x4d1cf7
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.0050c4e0
jmp 0x4d1d15
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.0050b8d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d1eb8
push esi
push 0x5fcb5c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.004b88e0
push esi
call fcn.00595b6f
add esp, 0x14
mov dl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test dl, dl
je 0x4d1d58
inc eax
cmp byte [eax], 0
jne 0x4d1d52
lea ecx, [ebp - 0x10c]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
nop word [eax + eax]
inc ecx
cmp byte [ecx], 0
jne 0x4d1d70
sub ecx, str.etilqs_
and ecx, 0x3fffffff
add ecx, 0x11
add eax, ecx
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x4d1da3
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
test dl, dl
je 0x4d1db6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4d1db0
lea edx, [ebp - 0x10c]
sub eax, edx
and eax, 0x3fffffff
jbe 0x4d1dd4
cmp byte [ebp + eax - 0x10d], 0x5c
jne 0x4d1dd4
sub eax, 1
jne 0x4d1dc5
cmp eax, 0x105
jae 0x4d1ecd
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
lea eax, [ecx - 0x11]
push edi
push eax
call fcn.004b88e0
add esp, 0x10
mov esi, edi
test edi, edi
je 0x4d1e1e
cmp byte [edi], 0
je 0x4d1e16
nop dword [eax + eax]
inc esi
cmp byte [esi], 0
jne 0x4d1e10
sub esi, edi
and esi, 0x3fffffff
push ebx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.004b8a50
add esp, 8
mov ecx, 3
mov ebx, 0x3e
movzx eax, byte [edi + esi]
lea esi, [esi + 5]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
sub ecx, 1
jne 0x4d1e37
pop ebx
mov byte [edi + esi], cl
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 7
pop edi
xor ecx, ebp
pop esi
call fcn.0056e987
mov esp, ebp
pop ebp
ret
call fcn.0056eaf7
int3