Function at 0x445650
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x4b1d00]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
push ebx
mov ebx, dword [ebp + 0x3e4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
push esi
push edi
mov dword [ebp - 0x64], ebx
jne 0x445699
xor eax, eax
mov ecx, dword [ebp + 0x3d8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464fe1
add ebp, 0x3dc
leave
ret
push 0x4b84ac
lea ecx, [ebp - 0x50]
call fcn.00401ae0
mov eax, dword [ebx]
mov esi, str.CLSID:
lea edi, [ebp + 0x3c8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x3c8]
push ecx
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x445798
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffa
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.004440b1
push dword [eax]
lea eax, [ebp - 0x48]
push str.CLSID_sInprocServer32
push 0x208
push eax
call fcn.00405560
mov ecx, dword [ebp - 0x4c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x3e8]
push ecx
mov ecx, esp
push 0x4991c8
call fcn.00404be0
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00404be0
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.00405c80
push eax
call fcn.004060d0
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00406980
test esi, esi
je 0x445794
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x445794
sub eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
sar eax, 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004440f3
push eax
mov ecx, ebx
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.004016d0
mov eax, esi
jmp 0x445681
xor esi, esi
jmp 0x445782
cmp byte [0x4b6a68], 0
mov esi, 0x4b6a6c
mov edi, str.commonfiles_x64_
jne 0x445cb1
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push 0x490f38
lea ecx, [ebp - 0x54]
call fcn.00404be0
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00404f90
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004016d0
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
push 0
push dword [eax + 0x490e5c]
lea eax, [ebp + 0x1c0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44584e
mov eax, dword [ebp - 0x54]
push dword [eax + 0x490e58]
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp + 0x1c0]
push ecx
mov ecx, eax
call fcn.00404f90
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
add dword [ebp - 0x54], 8
cmp dword [ebp - 0x54], 0xe0
jb 0x4457fb
xor eax, eax
cmp dword [0x4b6a90], eax
je 0x4459f7
push eax
push 0x26
lea ecx, [ebp + 0x1c0]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4459f7
lea eax, [ebp + 0x1c0]
push eax
call fcn.00465ceb
lea eax, [ebp + eax*2 + 0x1b4]
mov dword [esp], str.__x86_
push eax
mov dword [ebp - 0x4c], eax
call fcn.0046626a
pop ecx
pop ecx
test eax, eax
jne 0x4459f7
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
push str.programfiles_x64_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp + 0x1c0]
push ecx
mov ecx, eax
call fcn.00404f90
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
push str.Common_Files
push ebx
lea eax, [ebp + 0x1c0]
push eax
call fcn.004015f0
push edi
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp + 0x1c0]
push ecx
mov ecx, eax
call fcn.00404f90
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
push edi
lea ecx, [ebp - 0x54]
call fcn.00404be0
push str._office2010x64sharedir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
mov ebx, str.Microsoft_Shared
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.0040a840
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404cd0
mov dword [ebp - 0x60], eax
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
push dword [ebp - 0x60]
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004016d0
push edi
lea ecx, [ebp - 0x54]
call fcn.00404be0
push str._office2013x64sharedir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.0040a840
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404cd0
mov ebx, eax
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
push ebx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004016d0
push 0
push 0x2b
lea eax, [ebp + 0x1c0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445bf2
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE9
push eax
call fcn.004028a0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445a67
push str._office2000commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE10
push eax
call fcn.004028a0
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445ab6
push str._office2002commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE11
push eax
call fcn.004028a0
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445b05
push str._office2003commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE12
push eax
call fcn.004028a0
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445b54
push str._office2007commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE14
push eax
call fcn.004028a0
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445ba3
push str._office2010commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x50]
push str._sMicrosoft_SharedOFFICE15
push eax
call fcn.004028a0
add esp, 0xc
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x445bf2
push str._office2013commdir_
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
xor ebx, ebx
lea eax, [ebp - 0x50]
push eax
push dword [ebx + 0x490718]
push ecx
mov ecx, esp
push str.Path
call fcn.00404be0
push ecx
mov ecx, esp
push dword [ebx + 0x490714]
call fcn.00404be0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
call fcn.00405c80
push eax
call fcn.004060d0
pop ecx
pop ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x58], eax
call fcn.00406980
cmp dword [ebp - 0x58], 0
je 0x445c98
mov eax, dword [ebp - 0x50]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x445c98
dec eax
push eax
lea ecx, [ebp - 0x50]
call fcn.00401870
cmp ax, 0x5c
jne 0x445c69
mov eax, dword [ebp - 0x50]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x50]
call fcn.00401bb0
push dword [ebx + 0x490710]
lea ecx, [ebp - 0x4c]
call fcn.00404be0
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.0040a840
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00404e20
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004016d0
add ebx, 0xc
cmp ebx, 0x420
jb 0x445bf4
mov ebx, dword [ebp - 0x64]
mov byte [0x4b6a68], 1
mov ecx, ebx
call fcn.0040a4c0
cmp dword [0x4b6a90], 0
je 0x445cff
cmp dword [ebp + 0x3e8], 0
je 0x445cff
mov eax, dword [ebx]
push str.programfiles
push eax
call fcn.0046626a
pop ecx
pop ecx
test eax, eax
jne 0x445ce4
push str.programfiles_x64_
jmp 0x445cf8
mov eax, dword [ebx]
push str.commonfiles
push eax
call fcn.0046626a
pop ecx
pop ecx
test eax, eax
jne 0x445cff
push edi
mov ecx, ebx
call fcn.00404f90
push ebx
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040a9d0
push esi
push dword [0x4b6a84]
lea ecx, [ebp - 0x5c]
call fcn.0040bfd0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040bfa0
test al, al
jne 0x445794
lea ecx, [ebp - 0x68]
call fcn.0040b100
add eax, 4
push eax
mov ecx, ebx
call fcn.00404e20
jmp 0x44577f