Function at 0x410090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x48300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x484148]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x4100d0
push eax
push 0x47c934
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0040c850
add esp, 0x10
jmp 0x4101d8
mov eax, dword [0x48419c]
test eax, eax
jne 0x410102
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x218], 2
sete al
inc eax
mov dword [0x48419c], eax
cmp eax, 2
jne 0x410194
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x318]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push eax
mov dword [ebp - 0x31c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41017e
push 0
push 0
push dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push esi
test eax, eax
jne 0x4101b8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.0040e750
mov esi, eax
test esi, esi
je 0x41017e
push esi
push 0x47c934
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0040c850
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x14
mov dl, byte [ebp - 0x110]
lea eax, [ebp - 0x110]
test dl, dl
je 0x4101ee
inc eax
cmp byte [eax], 0
jne 0x4101e8
lea ecx, [ebp - 0x110]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
inc ecx
cmp byte [ecx], 0
jne 0x410200
sub ecx, str.etilqs_
add eax, 0x11
and ecx, 0x3fffffff
add eax, ecx
cmp eax, 0x105
jl 0x410234
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
test dl, dl
je 0x410246
nop
inc eax
cmp byte [eax], 0
jne 0x410240
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x41026b
lea ecx, [ebp + eax - 0x111]
nop dword [eax]
cmp byte [ecx], 0x5c
jne 0x41026b
dec ecx
sub eax, 1
jne 0x410260
cmp eax, 0x105
jae 0x41035e
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xf4
call fcn.0040c850
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x4102b1
cmp byte [ebx], 0
je 0x4102a9
inc edi
cmp byte [edi], 0
jne 0x4102a3
sub edi, ebx
and edi, 0x3fffffff
lea esi, [ebx + edi]
push esi
push 0xf
call fcn.0040ca70
add esp, 8
mov dword [ebp - 0x31c], 0x3e
add esi, 2
mov ecx, 3
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 0x31c]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 0x31c]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 0x31c]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 0x31c]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 0x31c]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x4102d1
mov byte [ebx + edi + 0xf], cl
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475bd4
mov esp, ebp
pop ebp
ret
call fcn.004763fa
int3