Function at 0x409e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ffea
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
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 dword [ebp - 4], 0
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409e8f
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 - 0x220], eax
mov byte [ebp - 4], 1
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409ebf
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 byte [ebp - 4], 2
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409eef
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], 3
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409f1f
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
push ecx
mov byte [ebp - 4], 4
lea edx, [ebp + 8]
mov dword [ebp - 0x21c], esp
mov ecx, esp
push edx
call fcn.0040d900
lea eax, [ebp - 0x2e8]
push eax
call fcn.00402630
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28c]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_XML_PARSER::Load_XML_Document_wchar_t_const__]
test eax, eax
jne 0x409fb8
mov edx, dword [ebp - 0x290]
push edx
lea ecx, [ebp - 0x2e8]
call esi
test al, al
jne 0x409fb8
push ecx
mov eax, esp
mov dword [ebp - 0x21c], esp
lea ecx, [ebp - 0x290]
push ecx
push str.Error_parsing
push eax
call fcn.0040c980
mov edi, 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____]
add esp, 0xc
call edi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x28c]
call fcn.0040c1e0
jmp 0x409fbe
mov edi, 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____]
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x22c]
call fcn.0040d990
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e8]
call esi
test al, al
jne 0x40a016
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
lea edx, [ebp - 0x290]
push edx
push str.Error_parsing
push ecx
call fcn.0040c980
add esp, 0xc
call edi
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x28c]
call fcn.0040c1e0
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040d990
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040d990
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x228]
call fcn.0040d990
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax - 0xc]
mov ebx, dword [ebp - 0x220]
test eax, eax
je 0x40a7ca
cmp dword [ebx - 0xc], 0
je 0x40a7ca
mov ecx, dword [ebp - 0x228]
cmp dword [ecx - 0xc], 0
je 0x40a7ca
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push str.CBootstrapApp::CheckForInstanceIDExistence_____Parsed_CSI_installer_config_file_to_retrieve_instanceID__path_and_name_of_install_data_file._n
call fcn.0040c030
call edi
add esp, 4
push 0
push 0x55e7f4
lea ecx, [ebp - 0x228]
call fcn.0040c2c0
cmp dword [ebx - 0xc], 0
jl 0x40a10c
push str._ProgramData_
push ebx
call fcn.0050c6cd
add esp, 8
test eax, eax
je 0x40a10c
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40a10c
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push str.CBootstrapApp::CheckForInstanceIDExistence_____The__ProgramData__string_in_the_path_will_be_replaced_with_the_matching_Windows_app_data_path._n
call fcn.0040c030
call edi
add esp, 4
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
push str._ProgramData_
lea ecx, [ebp - 0x220]
call fcn.0040c2c0
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a126
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 - 0x238], eax
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 6
push str..xml
je 0x40a4f3
lea ecx, [ebp - 0x21c]
call fcn.0040c0f0
mov esi, eax
push str.DriverOnly
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 7
call fcn.0040c030
mov edi, eax
push 0x55e930
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 8
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x248]
push edx
mov byte [ebp - 4], 9
call fcn.0040c7e0
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x234]
push edx
mov byte [ebp - 4], 0xa
call fcn.0040c7e0
lea ecx, [ebp - 0x22c]
push ecx
push eax
lea edx, [ebp - 0x244]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040c7e0
push edi
push eax
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040c7e0
push esi
push eax
lea ecx, [ebp - 0x24c]
mov bl, 0xd
push ecx
mov byte [ebp - 4], bl
call fcn.0040c7e0
add esp, 0x3c
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xe
call fcn.0040d990
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a227
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
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 0x40a24d
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 0x40a273
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2bf
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 - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a30b
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 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____]
lea ecx, [ebp - 0x278]
call fcn.0041df3c
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x15
call fcn.004012f0
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x238]
push esi
lea ecx, [ebp - 0x224]
push str.CBootstrapApp::CheckForInstanceIDExistence_____Attempting_to_open_install_data_file:__s._n
push ecx
call fcn.0040e740
add esp, 8
lea edx, [ebp - 0x224]
mov dword [ebp - 0x230], esp
mov ecx, esp
push edx
call fcn.0040d900
call edi
add esp, 4
lea eax, [ebp - 0x260]
push eax
push 0
push esi
lea ecx, [ebp - 0x278]
call fcn.0041de1a
test eax, eax
je 0x40a66e
push esi
lea ecx, [ebp - 0x224]
push str.CBootstrapApp::CheckForInstanceIDExistence_____Opened_file__s._Returning_true._n
push ecx
call fcn.0040e740
add esp, 8
lea edx, [ebp - 0x224]
mov dword [ebp - 0x230], esp
mov ecx, esp
push edx
call fcn.0040d900
call edi
add esp, 4
lea ecx, [ebp - 0x278]
call fcn.0041e1dd
lea ecx, [ebp - 0x260]
call fcn.00401400
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 6
call fcn.0041e21b
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a41f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 4
call fcn.004027a0
mov byte [ebp - 4], 3
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 0x40a454
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a47a
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a0
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40a7ac
lea ecx, [ebp - 0x244]
call fcn.0040c0f0
mov esi, eax
push 0x55e930
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xf
call fcn.0040c0f0
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x248]
push edx
mov byte [ebp - 4], 0x10
call fcn.0040c7e0
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x23c]
push edx
mov byte [ebp - 4], 0x11
call fcn.0040c7e0
lea ecx, [ebp - 0x22c]
push ecx
push eax
lea edx, [ebp - 0x240]
push edx
mov byte [ebp - 4], 0x12
call fcn.0040c7e0
push esi
push eax
lea eax, [ebp - 0x21c]
mov bl, 0x13
push eax
mov byte [ebp - 4], bl
call fcn.0040c7e0
add esp, 0x30
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x14
call fcn.0040d990
mov byte [ebp - 4], bl
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 0x40a5a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
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 0x40a63f
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 - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a337
mov ecx, dword [ebp - 0x258]
push ecx
push esi
lea edx, [ebp - 0x224]
push str.CBootstrapApp::CheckForInstanceIDExistence_____Cant_open_file__s__error___u._Not_a_relaunch__continue_executing_bootstrap._n
push edx
call fcn.0040e740
add esp, 0xc
lea eax, [ebp - 0x224]
mov dword [ebp - 0x230], esp
mov ecx, esp
push eax
call fcn.0040d900
call edi
add esp, 4
lea ecx, [ebp - 0x260]
call fcn.00401400
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 6
call fcn.0041e21b
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x220]
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 4
call fcn.004027a0
mov byte [ebp - 4], 3
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 0x40a718
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73e
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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.0050baf1
mov esp, ebp
pop ebp
ret 8
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push str.CBootstrapApp::CheckForInstanceIDExistence_____InstanceID__path_and_name_of_install_data_file_not_found._Continuing_with_bootstrap_execution_as_this_is_a_non_fatal_error._n
call fcn.0040c030
call edi
add esp, 4
jmp 0x40a6e3