Function at 0x1005f8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x100ec084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100ef9d4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test eax, eax
je 0x1005f8e0
push eax
push 0x100bf818
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.10041b40
add esp, 0x10
jmp 0x1005f983
mov eax, dword [0x100efd74]
test eax, eax
jne 0x1005f912
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 [0x100efd74], eax
cmp eax, 2
jne 0x1005f937
lea eax, [ebp - 0x314]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.100a5820
jmp 0x1005f955
lea eax, [ebp - 0x210]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.100a4550
mov esi, eax
add esp, 4
test esi, esi
je 0x1005fb0e
push esi
push 0x100bf818
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.10041b40
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 0x1005f999
inc eax
cmp byte [eax], 0
jne 0x1005f993
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 0x1005f9b0
mov esi, dword [ebp + 8]
sub ecx, str.etilqs_
and ecx, 0x3fffffff
add eax, 0x11
add eax, ecx
cmp eax, esi
jl 0x1005f9e3
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031516
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
test dl, dl
je 0x1005f9f6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x1005f9f0
lea ecx, [ebp - 0x10c]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x1005fa1b
lea ecx, [ebp + eax - 0x10d]
nop dword [eax]
cmp byte [ecx], 0x5c
jne 0x1005fa1b
dec ecx
sub eax, 1
jne 0x1005fa10
cmp eax, 0x105
jae 0x1005fb23
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.10041b40
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x1005fa61
cmp byte [ebx], 0
je 0x1005fa59
inc edi
cmp byte [edi], 0
jne 0x1005fa53
sub edi, ebx
and edi, 0x3fffffff
lea esi, [ebx + edi]
push esi
push 0xf
call fcn.10041da0
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 0x1005fa81
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.10031516
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 7
pop esi
xor ecx, ebp
pop ebx
call fcn.10031516
mov esp, ebp
pop ebp
ret
call fcn.10031eed
int3