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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a57f
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x597950]
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.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bba4
push 0x80004005
call fcn.00401090
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.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bbd4
push 0x80004005
call fcn.00401090
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.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bc04
push 0x80004005
call fcn.00401090
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.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bc34
push 0x80004005
call fcn.00401090
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.00410900
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402ee0
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 0x40bccb
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40bccb
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
lea ecx, [ebp - 0x288]
push ecx
push str.Error_parsing
push eax
call fcn.0040ddb0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040d530
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x224]
call fcn.00410990
mov eax, dword [ebp - 0x284]
cmp dword [eax - 0xc], 0
jne 0x40bd2f
mov ecx, dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40bd2f
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
lea eax, [ebp - 0x288]
push eax
push str.Error_parsing
push edx
call fcn.0040ddb0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040d530
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00410990
add ebx, 0x11c
push ebx
lea ecx, [ebp - 0x234]
call fcn.00410990
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 0x40bd9a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____CSIDL_PROGRAM_FILESX86:__s_n
push ecx
call fcn.004127d0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
jmp 0x40be02
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_retrieve_CSIDL_PROGRAM_FILESX86_failed.__Attempting_CSIDL_PROGRAM_FILES..._n
push eax
call fcn.004127d0
add esp, 4
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00410900
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.004127d0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00410900
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.004127d0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00410900
call esi
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push str._ProgramFiles_
lea ecx, [ebp - 0x224]
call fcn.0040d640
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____installPathPrefix_on_system:__s_n
push eax
call fcn.004127d0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00410900
call esi
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____instanceIDStr:__s_n
push ecx
call fcn.004127d0
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00410900
call esi
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____csiInstallerExe:__s_n
push ecx
call fcn.004127d0
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00410900
call esi
add esp, 4
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bf07
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov edi, 0x56a8e0
shr edi, 0x10
mov byte [ebp - 4], 7
test edi, edi
jne 0x40bf4a
mov ecx, 0x56a8e0
movzx ebx, cx
push ebx
call fcn.0041fd36
test eax, eax
je 0x40bf5a
push ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.00410790
jmp 0x40bf5a
push 0x56a8e0
lea ecx, [ebp - 0x228]
call fcn.0040d530
mov byte [ebp - 4], 8
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bf78
push 0x80004005
call fcn.00401090
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 0x40bfb3
mov ecx, 0x56a8e0
movzx edi, cx
push edi
call fcn.0041fd36
test eax, eax
je 0x40bfc3
push edi
push eax
lea ecx, [ebp - 0x22c]
call fcn.00410790
jmp 0x40bfc3
push 0x56a8e0
lea ecx, [ebp - 0x22c]
call fcn.0040d530
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.0040dc10
lea edx, [ebp - 0x230]
push edx
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040dc10
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x240]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.0040dc10
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x23c]
push eax
push edi
call fcn.0040dc10
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 0x40c05c
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 0x40c082
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 0x40c0a8
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 0x40c0ce
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 0x40c0f4
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.004127d0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00410900
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.00422eba
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xe
call fcn.00422d03
mov ebx, vtable.CFileException.0
mov dword [ebp - 0x258], ebx
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c163
push 0x80004005
call fcn.00401090
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.0040e1b0
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.004127d0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00410900
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.00422d98
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
test eax, eax
je 0x40c217
push str.CBootstrapApp::GetInstalledCSIPath_____Successfully_opened_Installed_CSI_Executable._n
call fcn.0040d380
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0042315b
mov edx, dword [edi]
push edx
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__s_n
lea eax, [ebp - 0x21c]
push eax
jmp 0x40c23c
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_opene_Installed_CSI_Executable_failed._n
call fcn.0040d380
call esi
add esp, 4
mov ecx, edi
call fcn.0040e1b0
mov eax, dword [edi]
push eax
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__empty___s_n
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004127d0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.00410900
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 0x40c289
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.00423199
lea esi, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.00403050
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 0x40c2cd
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 0x40c2f3
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 0x40c319
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 0x40c33f
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 0x40c362
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.00510a46
mov esp, ebp
pop ebp
ret 8