Function at 0x4546b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505146
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x567e00]
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 0x454938
call fcn.0040fa60
mov ecx, eax
test ecx, ecx
je 0x454954
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
push eax
lea ecx, [ebp - 0x21c]
call fcn.00420430
test al, al
jne 0x454798
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454776
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00421c30
push 0xa
push str._ntdll.dll
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.00424500
call fcn.00411b00
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x4547d8
mov ecx, esi
call fcn.004117d0
test eax, eax
je 0x4547d8
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 0x45491c
push 0
push esi
call eax
mov ebx, eax
test ebx, ebx
je 0x45491c
push ebx
call fcn.004c6f7d
mov edi, eax
add esp, 4
test edi, edi
je 0x454815
push ebx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x454817
xor edi, edi
mov dword [ebp - 0x23c], edi
mov byte [ebp - 4], 2
call fcn.00411b00
mov dword [ebp - 0x220], eax
cmp dword [eax + 8], 0
jne 0x454858
mov ecx, eax
call fcn.004117d0
test eax, eax
je 0x454852
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 0x45490b
push edi
push ebx
push 0
push esi
call eax
test eax, eax
je 0x45490b
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.00411b00
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x4548ad
mov ecx, ebx
call fcn.004117d0
test eax, eax
je 0x4548ad
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 0x45490b
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push 0x516d0c
push edi
call eax
test eax, eax
je 0x45490b
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 0x45490d
xor ebx, ebx
test edi, edi
je 0x45491e
push edi
call fcn.004c6f86
add esp, 4
jmp 0x45491e
xor ebx, ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x454936
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.004c6f8b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d020
int3