Function at 0x452a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2126
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x53d9f8]
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 sub.VCRUNTIME140.dll_memset
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 0x452c83
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004201c0
push 0xa
push str._ntdll.dll
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.004240d0
mov edi, dword [ebp - 0x21c]
call fcn.004120c0
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x452b1b
mov ecx, esi
call fcn.00411df0
test eax, eax
je 0x452b1b
push str.GetFileVersionInfoSizeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x452c5a
push 0
push edi
call eax
mov edi, eax
test edi, edi
je 0x452c5a
push edi
call fcn.004bee3b
mov esi, eax
add esp, 4
test esi, esi
je 0x452b52
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x452b54
xor esi, esi
mov dword [ebp - 0x23c], esi
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], eax
call fcn.004120c0
mov ebx, eax
cmp dword [ebx + 8], 0
jne 0x452b91
mov ecx, ebx
call fcn.00411df0
test eax, eax
je 0x452b91
push str.GetFileVersionInfoW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x452c49
push esi
push edi
push 0
push dword [ebp - 0x224]
call eax
test eax, eax
je 0x452c49
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
call fcn.004120c0
mov edi, eax
cmp dword [edi + 4], 0
jne 0x452beb
mov ecx, edi
call fcn.00411df0
test eax, eax
je 0x452beb
push str.VerQueryValueW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x452c49
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x4f0efc
push esi
call eax
test eax, eax
je 0x452c49
mov ecx, dword [ebp - 0x220]
mov edi, 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 0x452c4b
xor edi, edi
test esi, esi
je 0x452c5c
push esi
call fcn.004bee44
add esp, 4
jmp 0x452c5c
xor edi, edi
mov esi, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x452c81
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004bee49
mov esp, ebp
pop ebp
ret