Function at 0x46ab50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b621
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46ade7
call fcn.0044ab50
mov ecx, eax
test ecx, ecx
je 0x46ae03
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x46ac15
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.0046b410
jmp 0x46ac42
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ac20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0046c210
push str._ntdll.dll
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.0046a0b0
call fcn.0044ea80
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x46ac80
mov ecx, esi
call fcn.0044e580
test eax, eax
je 0x46ac80
push str.GetFileVersionInfoSizeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x21c]
test eax, eax
je 0x46adc4
push 0
push esi
call eax
mov ebx, eax
test ebx, ebx
je 0x46adc4
push ebx
call fcn.004cba04
mov edi, eax
add esp, 4
test edi, edi
je 0x46acbd
push ebx
push 0
push edi
call fcn.004e30c0
add esp, 0xc
jmp 0x46acbf
xor edi, edi
mov dword [ebp - 0x23c], edi
mov byte [ebp - 4], 2
call fcn.0044ea80
mov dword [ebp - 0x220], eax
cmp dword [eax + 8], 0
jne 0x46ad00
mov ecx, eax
call fcn.0044e580
test eax, eax
je 0x46acfa
push str.GetFileVersionInfoW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 8]
test eax, eax
je 0x46adb3
push edi
push ebx
push 0
push esi
call eax
test eax, eax
je 0x46adb3
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.0044ea80
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x46ad55
mov ecx, ebx
call fcn.0044e580
test eax, eax
je 0x46ad55
push str.VerQueryValueW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x46adb3
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push str.SMD
push edi
call eax
test eax, eax
je 0x46adb3
mov ecx, dword [ebp - 0x224]
mov ebx, 1
mov edx, dword [ebp - 0x22c]
movzx eax, word [ecx + 0x12]
mov dword [edx], eax
movzx eax, word [ecx + 0x10]
mov edx, dword [ebp - 0x230]
mov dword [edx], eax
movzx eax, word [ecx + 0x16]
mov edx, dword [ebp - 0x234]
mov dword [edx], eax
movzx eax, word [ecx + 0x14]
mov ecx, dword [ebp - 0x238]
mov dword [ecx], eax
jmp 0x46adb5
xor ebx, ebx
test edi, edi
je 0x46adc6
push edi
call fcn.004cb4e9
add esp, 4
jmp 0x46adc6
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46ade5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00449d60
int3