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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ecef
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5886f0]
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.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409274
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.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4092a4
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.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4092d4
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.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409304
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.0040c080
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402200
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 0x40939b
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x40939b
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
lea ecx, [ebp - 0x288]
push ecx
push str.Error_parsing
push eax
call fcn.0040b1a0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040aa00
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x224]
call fcn.0040c110
mov eax, dword [ebp - 0x284]
cmp dword [eax - 0xc], 0
jne 0x4093ff
mov ecx, dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x2e0]
call edi
test al, al
jne 0x4093ff
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
lea eax, [ebp - 0x288]
push eax
push str.Error_parsing
push edx
call fcn.0040b1a0
add esp, 0xc
call esi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x284]
call fcn.0040aa00
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040c110
add ebx, 0x11c
push ebx
lea ecx, [ebp - 0x234]
call fcn.0040c110
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 0x40946a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____CSIDL_PROGRAM_FILESX86:__s_n
push ecx
call fcn.0040ced0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
jmp 0x4094d2
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_retrieve_CSIDL_PROGRAM_FILESX86_failed.__Attempting_CSIDL_PROGRAM_FILES..._n
push eax
call fcn.0040ced0
add esp, 4
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040c080
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.0040ced0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040c080
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.0040ced0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040c080
call esi
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
push str._ProgramFiles_
lea ecx, [ebp - 0x224]
call fcn.0040aae0
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____installPathPrefix_on_system:__s_n
push eax
call fcn.0040ced0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040c080
call esi
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____instanceIDStr:__s_n
push ecx
call fcn.0040ced0
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040c080
call esi
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push str.CBootstrapApp::GetInstalledCSIPath_____csiInstallerExe:__s_n
push ecx
call fcn.0040ced0
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040c080
call esi
add esp, 4
call fcn.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4095d7
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, 0x55d678
shr edi, 0x10
mov byte [ebp - 4], 7
test edi, edi
jne 0x40961a
mov ecx, 0x55d678
movzx ebx, cx
push ebx
call fcn.00419ab8
test eax, eax
je 0x40962a
push ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.0040bf10
jmp 0x40962a
push 0x55d678
lea ecx, [ebp - 0x228]
call fcn.0040aa00
mov byte [ebp - 4], 8
call fcn.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409648
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 0x409683
mov ecx, 0x55d678
movzx edi, cx
push edi
call fcn.00419ab8
test eax, eax
je 0x409693
push edi
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040bf10
jmp 0x409693
push 0x55d678
lea ecx, [ebp - 0x22c]
call fcn.0040aa00
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.0040b000
lea edx, [ebp - 0x230]
push edx
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040b000
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x240]
mov bl, 0xc
push edx
mov byte [ebp - 4], bl
call fcn.0040b000
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x23c]
push eax
push edi
call fcn.0040b000
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 0x40972c
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 0x409752
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 0x409778
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 0x40979e
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 0x4097c4
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.0040ced0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040c080
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041cc5a
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xe
call fcn.0041caba
mov ebx, vtable.CFileException.0
mov dword [ebp - 0x258], ebx
call fcn.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409833
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.0040b540
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.0040ced0
add esp, 8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.0040c080
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.0041cb32
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
test eax, eax
je 0x4098e7
push str.CBootstrapApp::GetInstalledCSIPath_____Successfully_opened_Installed_CSI_Executable._n
call fcn.0040a850
call esi
add esp, 4
lea ecx, [ebp - 0x270]
call fcn.0041cefb
mov edx, dword [edi]
push edx
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__s_n
lea eax, [ebp - 0x21c]
push eax
jmp 0x40990c
push str.CBootstrapApp::GetInstalledCSIPath_____Attempt_to_opene_Installed_CSI_Executable_failed._n
call fcn.0040a850
call esi
add esp, 4
mov ecx, edi
call fcn.0040b540
mov eax, dword [edi]
push eax
push str.CBootstrapApp::GetInstalledCSIPath_____Returning:__empty___s_n
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040ced0
add esp, 8
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x220], esp
mov ecx, esp
push edx
call fcn.0040c080
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 0x409959
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.0041cf39
lea esi, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.00402370
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 0x40999d
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 0x4099c3
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 0x4099e9
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 0x409a0f
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 0x409a32
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.0050a89e
mov esp, ebp
pop ebp
ret 8