Function at 0x464820
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d367b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4fe0c0]
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
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
mov dword [ebp - 0x230], edi
call fcn.0049e870
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], eax
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x464a86
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404730
test al, al
jne 0x4648f2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4648d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004049e0
mov dword [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x46492a
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00404940
mov eax, dword [ebp - 0x21c]
push str._system32Shell32.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x464944
xor ecx, ecx
jmp 0x464960
push dword [eax - 8]
push eax
call fcn.004ab044
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x464a7c
mov eax, dword [ebp - 0x21c]
cmp ecx, dword [eax - 8]
jg 0x464a7c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x22c], edx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x464a39
push ebx
call fcn.004ab1f4
mov esi, eax
add esp, 4
test esi, esi
je 0x464a39
push esi
push ebx
push 0
push dword [ebp - 0x228]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x464a0b
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x4e8174
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x464a0b
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], 1
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x230], eax
jmp 0x464a0d
xor ebx, ebx
push esi
call fcn.004a1f50
add esp, 4
cmp dword [ebp - 0x22c], 0
je 0x464a39
cmp ebx, 0x60002
jb 0x464a39
cmp dword [ebp - 0x230], 0x295a01c8
mov eax, 1
cmovae edi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x464a5e
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.0049cdfb
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
int3