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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x50b0c0]
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.004a8730
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.0040a050
mov ecx, eax
test ecx, ecx
je 0x46c9b6
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.004099b0
test al, al
jne 0x46c822
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c800
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00409c60
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 0x46c85a
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00409bc0
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 0x46c874
xor ecx, ecx
jmp 0x46c890
push dword [eax - 8]
push eax
call fcn.004b30c6
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x46c9ac
mov eax, dword [ebp - 0x21c]
cmp ecx, dword [eax - 8]
jg 0x46c9ac
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 0x46c969
push ebx
call fcn.004b3276
mov esi, eax
add esp, 4
test esi, esi
je 0x46c969
push esi
push ebx
push 0
push dword [ebp - 0x228]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46c93b
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x4f2e14
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46c93b
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 0x46c93d
xor ebx, ebx
push esi
call fcn.004abe10
add esp, 4
cmp dword [ebp - 0x22c], 0
je 0x46c969
cmp ebx, 0x60002
jb 0x46c969
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 0x46c98e
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.004a69a0
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00409e30
push 0x80004005
call fcn.00409e30
int3