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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5305df
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x58a6d0]
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 ebx, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 1
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40abe4
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 2
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ac14
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ac44
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 4
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ac74
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov byte [ebp - 4], 5
lea edx, [ebp + 0xc]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402640
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x278]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
mov edi, dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_XML_PARSER::Load_XML_Document_wchar_t_const__]
test eax, eax
jne 0x40ad0b
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40ad0b
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
lea ecx, [ebp - 0x288]
push ecx
push str.Error_parsing
push eax
call fcn.0040cdf0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040c570
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x224]
call fcn.0040ddb0
mov eax, dword [ebp - 0x284]
cmp dword [eax - 0xc], 0
jne 0x40ad6f
mov ecx, dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40ad6f
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
lea eax, [ebp - 0x288]
push eax
push str.Error_parsing
push edx
call fcn.0040cdf0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040c570
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040ddb0
add ebx, 0x11c
push ebx
lea ecx, [ebp - 0x234]
call fcn.0040ddb0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x2a
push 0
call edi
test eax, eax
jne 0x40adda
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____CSIDL_PROGRAM_FILESX86:__s_n
push ecx
call fcn.0040eb20
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
jmp 0x40ae42
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_retrieve_CSIDL_PROGRAM_FILESX86_failed.__Attempting_CSIDL_PROGRAM_FILES..._n
push eax
call fcn.0040eb20
add esp, 4
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
call esi
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____CSIDL_PROGRAM_FILES:__s_n
push edx
call fcn.0040eb20
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040dd00
call esi
mov ecx, dword [ebp - 0x224]
add esp, 4
push ecx
lea edx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____installPathPrefix_from_Installer_Config:__s_n
push edx
call fcn.0040eb20
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040dd00
call esi
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push str._ProgramFiles_
lea ecx, [ebp - 0x224]
call fcn.0040c680
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____installPathPrefix_on_system:__s_n
push eax
call fcn.0040eb20
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
call esi
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____instanceIDStr:__s_n
push ecx
call fcn.0040eb20
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
call esi
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____csiInstallerExe:__s_n
push ecx
call fcn.0040eb20
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
call esi
add esp, 4
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40af47
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov edi, 0x55f930
shr edi, 0x10
mov byte [ebp - 4], 7
test edi, edi
jne 0x40af8a
mov ecx, 0x55f930
movzx ebx, cx
push ebx
call fcn.0041b46c
test eax, eax
je 0x40af9a
push ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040db90
jmp 0x40af9a
push 0x55f930
lea ecx, [ebp - 0x228]
call fcn.0040c570
mov byte [ebp - 4], 8
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40afb8
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 9
test edi, edi
jne 0x40aff3
mov ecx, 0x55f930
movzx edi, cx
push edi
call fcn.0041b46c
test eax, eax
je 0x40b003
push edi
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040db90
jmp 0x40b003
push 0x55f930
lea ecx, [ebp - 0x22c]
call fcn.0040c570
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0040cc50
lea edx, [ebp - 0x230]
push edx
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040cc50
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x240]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.0040cc50
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x23c]
push eax
push edi
call fcn.0040cc50
add esp, 0x30
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov dword [ebp - 0x238], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b09c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b10e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b134
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Installed_CSI_Executable_fileName:__s_n
push edx
call fcn.0040eb20
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040dd00
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041e5db
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xe
call fcn.0041e41f
mov ebx, vtable.CFileException.0
mov dword [ebp - 0x258], ebx
call fcn.0041b551
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b1a3
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xffffffff
call fcn.0040d1f0
mov byte [ebp - 4], 0x10
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Attempting_to_open_Installed_CSI_Executable:__s_n
push edx
call fcn.0040eb20
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040dd00
call esi
mov eax, dword [edi]
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
push 0
push eax
lea ecx, [ebp - 0x270]
call fcn.0041e4b9
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
test eax, eax
je 0x40b257
push str.CBootstrapApp::GetInstalledCSIPath_____Successfully_opened_Installed_CSI_Executable._n
call fcn.0040c3c0
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041e87c
mov edx, dword [edi]
push edx
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__s_n
lea eax, [ebp - 0x21c]
push eax
jmp 0x40b27c
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_opene_Installed_CSI_Executable_failed._n
call fcn.0040c3c0
call esi
add esp, 4
mov ecx, edi
call fcn.0040d1f0
mov eax, dword [edi]
push eax
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__empty___s_n
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040eb20
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040dd00
call esi
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 0x258], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 6
call fcn.0041e8ba
lea esi, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.004027b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b30d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b37f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0050c1b3
mov esp, ebp
pop ebp
ret 8