Function at 0x40cb20
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a3af
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
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
push ecx
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push str.CBootstrapApp::RemoveMinimumOnlyDriverInstance_____Enter._n
call fcn.0040d380
mov ebx, 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____]
call ebx
add esp, 4
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cb88
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 - 0x220], eax
mov dword [ebp - 4], 0
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cbbb
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
mov byte [ebp - 4], 1
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cbeb
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 byte [ebp - 4], 2
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cc1b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], esp
mov ecx, esp
add esi, 0x118
push esi
call fcn.00410900
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.00402ee0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x260]
push edx
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_XML_PARSER::Load_XML_Document_wchar_t_const__]
test al, al
jne 0x40cca0
push ecx
mov eax, esp
mov dword [ebp - 0x224], esp
lea ecx, [ebp - 0x260]
push ecx
push str.Error_parsing
push eax
call fcn.0040ddb0
add esp, 0xc
call ebx
add esp, 4
push str.DefaultInstance
lea ecx, [ebp - 0x25c]
call fcn.0040d530
lea edx, [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00410990
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00410990
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00410990
mov edx, dword [ebp - 0x220]
cmp dword [edx - 0xc], 0
mov ebx, dword [ebp - 0x228]
je 0x40d069
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
je 0x40d069
cmp dword [ebx - 0xc], 0
je 0x40d069
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.CBootstrapApp::RemoveMinimumOnlyDriverInstance_____Parsed_CSI_installer_config_file_to_retrieve_instanceID__path_and_name_of_install_data_file._n
call fcn.0040d380
mov ebx, 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____]
call ebx
add esp, 4
push 0
push 0x56a7a4
lea ecx, [ebp - 0x228]
call fcn.0040d640
mov eax, dword [esi - 0xc]
test eax, eax
js 0x40cd9c
push str._ProgramData_
push esi
call fcn.005124ce
add esp, 8
test eax, eax
je 0x40cd9c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40cd9c
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.CBootstrapApp::RemoveMinimumOnlyDriverInstance_____The__ProgramData__string_in_the_path_will_be_replaced_with_the_matching_Windows_app_data_path._n
call fcn.0040d380
call ebx
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
push ecx
push str._ProgramData_
lea ecx, [ebp - 0x21c]
call fcn.0040d640
push str..xml
lea ecx, [ebp - 0x224]
call fcn.0040d440
mov esi, eax
push str.DriverOnly
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.0040d380
mov edi, eax
push 0x56a8e0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 6
call fcn.0040d440
push eax
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], 7
call fcn.0040dc10
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x234]
push edx
mov byte [ebp - 4], 8
call fcn.0040dc10
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x238]
push edx
mov byte [ebp - 4], 9
call fcn.0040dc10
push edi
push eax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040dc10
push esi
push eax
lea ecx, [ebp - 0x230]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0040dc10
add esp, 0x3c
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ce6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce93
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 0x40ceb9
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 - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cedf
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 - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf05
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 - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x13
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 0x40cf51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x22c]
push str.CBootstrapApp::RemoveMinimumOnlyDriverInstance_____Attempting_to_delete_install_data_file:__s._n
push edx
call fcn.004127d0
add esp, 8
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x240], esp
mov ecx, esp
push eax
call fcn.00410900
call ebx
mov ecx, dword [ebp - 0x230]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cfb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 3
call fcn.00403050
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 0x40cfed
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 0x40d013
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d039
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40d125
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
push str.CBootstrapApp::RemoveMinimumOnlyDriverInstance_____InstanceID__path_and_name_of_install_data_file_not_found._Continuing_with_bootstrap_execution_as_this_is_a_non_fatal_error._n
call fcn.0040d380
call 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, 4
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 3
call fcn.00403050
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0b4
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], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0d4
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0fa
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 - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d123
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.00510a46
mov esp, ebp
pop ebp
ret