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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ffbf
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5896f0]
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.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a954
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.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a984
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.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a9b4
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.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a9e4
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.0040da00
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402630
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 0x40aa7b
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40aa7b
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
lea ecx, [ebp - 0x288]
push ecx
push str.Error_parsing
push eax
call fcn.0040ca80
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040c2e0
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x224]
call fcn.0040da90
mov eax, dword [ebp - 0x284]
cmp dword [eax - 0xc], 0
jne 0x40aadf
mov ecx, dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40aadf
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
lea eax, [ebp - 0x288]
push eax
push str.Error_parsing
push edx
call fcn.0040ca80
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040c2e0
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040da90
add ebx, 0x11c
push ebx
lea ecx, [ebp - 0x234]
call fcn.0040da90
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 0x40ab4a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____CSIDL_PROGRAM_FILESX86:__s_n
push ecx
call fcn.0040e840
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
jmp 0x40abb2
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_retrieve_CSIDL_PROGRAM_FILESX86_failed.__Attempting_CSIDL_PROGRAM_FILES..._n
push eax
call fcn.0040e840
add esp, 4
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040da00
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.0040e840
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040da00
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.0040e840
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040da00
call esi
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push str._ProgramFiles_
lea ecx, [ebp - 0x224]
call fcn.0040c3c0
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____installPathPrefix_on_system:__s_n
push eax
call fcn.0040e840
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040da00
call esi
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____instanceIDStr:__s_n
push ecx
call fcn.0040e840
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040da00
call esi
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____csiInstallerExe:__s_n
push ecx
call fcn.0040e840
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040da00
call esi
add esp, 4
call fcn.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40acb7
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, 0x55e930
shr edi, 0x10
mov byte [ebp - 4], 7
test edi, edi
jne 0x40acfa
mov ecx, 0x55e930
movzx ebx, cx
push ebx
call fcn.0041aeaa
test eax, eax
je 0x40ad0a
push ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040d890
jmp 0x40ad0a
push 0x55e930
lea ecx, [ebp - 0x228]
call fcn.0040c2e0
mov byte [ebp - 4], 8
call fcn.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad28
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 0x40ad63
mov ecx, 0x55e930
movzx edi, cx
push edi
call fcn.0041aeaa
test eax, eax
je 0x40ad73
push edi
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040d890
jmp 0x40ad73
push 0x55e930
lea ecx, [ebp - 0x22c]
call fcn.0040c2e0
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.0040c8e0
lea edx, [ebp - 0x230]
push edx
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040c8e0
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x240]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.0040c8e0
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x23c]
push eax
push edi
call fcn.0040c8e0
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 0x40ae0c
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 0x40ae32
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 0x40ae58
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 0x40ae7e
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 0x40aea4
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.0040e840
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040da00
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041e03f
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xe
call fcn.0041de88
mov ebx, vtable.CFileException.0
mov dword [ebp - 0x258], ebx
call fcn.0041af8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40af13
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.0040ce80
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.0040e840
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040da00
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.0041df1d
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
test eax, eax
je 0x40afc7
push str.CBootstrapApp::GetInstalledCSIPath_____Successfully_opened_Installed_CSI_Executable._n
call fcn.0040c130
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041e2e0
mov edx, dword [edi]
push edx
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__s_n
lea eax, [ebp - 0x21c]
push eax
jmp 0x40afec
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_opene_Installed_CSI_Executable_failed._n
call fcn.0040c130
call esi
add esp, 4
mov ecx, edi
call fcn.0040ce80
mov eax, dword [edi]
push eax
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__empty___s_n
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040e840
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040da00
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 0x40b039
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.0041e31e
lea esi, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.004027a0
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 0x40b07d
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 0x40b0a3
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 0x40b0c9
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 0x40b0ef
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 0x40b112
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.0050bbf7
mov esp, ebp
pop ebp
ret 8