Function at 0x40f190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4ad1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b0628]
push ebx
mov ebx, edx
mov dword [ebp - 0x320], ebx
push esi
push edi
test eax, eax
je 0x40f1d6
push eax
push 0x4a39f0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0040b8d0
add esp, 0x10
jmp 0x40f29f
mov eax, dword [0x4b0760]
test eax, eax
jne 0x40f208
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 [0x4b0760], eax
cmp eax, 2
jne 0x40f246
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.0040d940
mov esi, eax
test esi, esi
jne 0x40f27f
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
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.0040d9b0
mov edi, eax
test edi, edi
je 0x40f230
mov ecx, edi
call fcn.0040d940
push edi
mov esi, eax
call fcn.004793e5
add esp, 4
test esi, esi
je 0x40f230
push esi
push 0x4a39f0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0040b8d0
push esi
call fcn.004793e5
add esp, 0x14
mov dl, byte [ebp - 0x110]
lea eax, [ebp - 0x110]
test dl, dl
je 0x40f2b6
nop
inc eax
cmp byte [eax], 0
jne 0x40f2b0
lea ecx, [ebp - 0x110]
sub eax, ecx
mov ecx, str.etilqs_
and eax, 0x3fffffff
inc ecx
cmp byte [ecx], 0
jne 0x40f2c8
sub ecx, str.etilqs_
add eax, 0x11
and ecx, 0x3fffffff
add eax, ecx
cmp eax, 0x105
jl 0x40f2fc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047137e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
test dl, dl
je 0x40f30c
inc eax
cmp byte [eax], 0
jne 0x40f306
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x40f32c
nop dword [eax + eax]
cmp byte [ecx + eax - 1], 0x5c
jne 0x40f32c
sub eax, 1
jne 0x40f320
cmp eax, 0x105
jae 0x40f460
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xf4
call fcn.0040b8d0
add esp, 0x10
mov esi, ebx
test ebx, ebx
je 0x40f372
cmp byte [ebx], 0
je 0x40f36a
inc esi
cmp byte [esi], 0
jne 0x40f364
sub esi, ebx
and esi, 0x3fffffff
add ebx, esi
mov edi, 0xf
cmp dword [0x4aee9c], 0
jne 0x40f38e
mov dword [ebp - 0x31c], 0
jmp 0x40f3b0
push 5
call dword [0x4aeedc]
add esp, 4
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x40f3b0
push eax
call dword [0x4aeee4]
add esp, 4
nop dword [eax]
call fcn.0040ba10
mov byte [ebx], al
lea ebx, [ebx + 1]
sub edi, 1
jne 0x40f3b0
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x40f3d3
push eax
call dword [0x4aeeec]
add esp, 4
mov ecx, dword [ebp - 0x320]
mov edi, 3
mov ebx, 0x3e
movzx eax, byte [ecx + esi]
lea esi, [esi + 5]
xor edx, edx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 5], al
movzx eax, byte [ecx + esi - 4]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 4], al
movzx eax, byte [ecx + esi - 3]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 3], al
movzx eax, byte [ecx + esi - 2]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [ecx + esi - 2], al
movzx eax, byte [ecx + esi - 1]
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ecx + esi - 1], al
sub edi, 1
jne 0x40f3e3
mov byte [ecx + esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047137e
mov esp, ebp
pop ebp
ret
call fcn.00471aa9
int3