Function at 0x1000b7ea
Capabilities:
Check if file exists
Copy file
Get common file path
Set current directory
Set file attributes

Disassembly:
push 0x50
mov eax, 0x1006b3a8
call fcn.10043a00
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
jbe 0x1000bd2f
mov ebx, dword [ebp + 8]
add ebx, 0x14
mov esi, 0x10071f80
jmp 0x1000b816
xor edi, edi
cmp dword [ebp - 0x14], edi
jl 0x1000bd2f
push esi
lea ecx, [ebp - 0x28]
call fcn.1000a7ae
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], edi
call fcn.10009156
push dword [ebx - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100091a9
add esp, 0x18
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.1000285b
mov edi, 0x100884b0
push edi
lea ecx, [ebp - 0x10]
call fcn.10004658
cmp dword [ebx - 8], 0
mov byte [ebp - 4], 5
je 0x1000b8f6
cmp byte [ebp + 0x20], 0
jne 0x1000b8f6
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
call fcn.100092dc
push 0x10070ae0
lea ecx, [ebp - 0x10]
call fcn.10009352
push 0xa
push 5
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push dword [ebx - 0x14]
call fcn.1000acc3
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.1000803b
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 5
call fcn.1000fd60
add esp, 0x14
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.1000864e
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.1000285b
jmp 0x1000b919
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
call fcn.100092dc
push 0x10070ae0
lea ecx, [ebp - 0x10]
call fcn.10009352
push dword [ebx - 0x14]
lea ecx, [ebp - 0x10]
call fcn.10009352
push dword [ebp - 0x10]
call fcn.10010d10
pop ecx
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1000b950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx], 0
jne 0x1000b950
test eax, eax
jle 0x1000b94d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1000b99b
cmp byte [ebp + 0x1c], 0
jne 0x1000b99b
push edi
lea ecx, [ebp - 0x2c]
call fcn.10004658
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push str.Error_while_copying_file__d
push eax
mov byte [ebp - 4], 8
call fcn.100093b9
mov edi, dword [ebp - 0x2c]
add esp, 0xc
push 0x51000
push str.Installation_Error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [edi - 0x10]
jmp 0x1000bcfe
test byte [ebp + 0x24], 2
jne 0x1000b9aa
push dword [ebp - 0x24]
call fcn.10010d10
pop ecx
cmp dword [ebx - 0xc], 0
je 0x1000b9be
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp dword [ebx - 0x10], eax
je 0x1000ba74
test byte [ebp + 0x24], 1
jne 0x1000ba74
cmp dword [ebx - 4], eax
je 0x1000b9f6
cmp dword [ebx], eax
push 1
push dword [ebp - 0x10]
jne 0x1000b9ed
call fcn.1000f89d
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x1000ba25
call fcn.1000f89d
pop ecx
pop ecx
jmp 0x1000ba25
push dword [ebp + 0x18]
cmp dword [ebx], eax
push 1
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x4c], esp
mov ecx, esp
push eax
jne 0x1000ba18
call fcn.1000603a
call fcn.1000f8d6
mov dword [ebp - 0x14], eax
jmp 0x1000ba22
call fcn.1000603a
call fcn.1000f8d6
add esp, 0xc
cmp dword [ebp - 0x14], 0
jge 0x1000ba7e
cmp byte [ebp + 0x1c], 0
jne 0x1000ba74
push edi
lea ecx, [ebp - 0x30]
call fcn.10004658
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push str.Error_registering_file__d
push eax
mov byte [ebp - 4], 9
call fcn.100093b9
mov edi, dword [ebp - 0x30]
add esp, 0xc
push 0x51000
push str.Installation_Error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 5
call fcn.1000285b
cmp dword [ebp - 0x14], 0
jl 0x1000bd03
push str.svcboot.dll
push dword [ebx - 0x14]
call fcn.10042b4e
test eax, eax
pop ecx
pop ecx
jne 0x1000bd03
push 0x1c
call fcn.10043b23
pop ecx
mov dword [ebp - 0x4c], eax
xor edi, edi
cmp eax, edi
mov byte [ebp - 4], 0xa
je 0x1000bab3
mov ecx, eax
call fcn.10001e32
jmp 0x1000bab5
xor eax, eax
push dword [ebp - 0x10]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10010700
test al, al
jne 0x1000baed
cmp dword [ebx], edi
jne 0x1000baed
cmp byte [ebp + 0x1c], al
mov dword [ebp - 0x14], 0x8000ffff
jne 0x1000baed
push 0x51000
push str.Installation_Error
push str.Error_creating_shared_string.
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
call fcn.1000603a
push 0x10070ae0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.10009352
push str.sccca.dll
lea ecx, [ebp - 0x18]
call fcn.10009352
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x1000bcf8
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x1000bb5d
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000bb5d
mov ecx, dword [ebp + 0x18]
push dword [ecx]
call eax
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [ebp - 0x20], eax
jne 0x1000bba1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x1000bb96
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1000bb96
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1000bcb8
push str.WindowsInstaller_KB893803_v2_x86.exe__quiet__norestart
lea ecx, [ebp - 0x38]
call fcn.1000a7ae
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.1000a7ae
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0xd
call fcn.10009156
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xe
call fcn.10009156
add esp, 0x18
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.1000285b
push dword [ebp - 0x48]
call fcn.10010d30
lea ecx, [ebp - 0x40]
mov dword [esp], str.vcredist_x86.exe__q:a__c:_vcredi3.exe__q:a__c:__msiexec__i_vcredist.msi__qn____
call fcn.1000a7ae
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x13
call fcn.1000a7ae
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 0x14
call fcn.10009156
lea ecx, [ebp - 0x40]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0x15
call fcn.10009156
add esp, 0x18
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.1000285b
push dword [ebp - 0x44]
call fcn.10010d30
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
mov edi, eax
call fcn.1000285b
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.1000285b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000bcde
cmp word [eax], 0
je 0x1000bccc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x1000bce9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x4c], 0
je 0x1000bcf8
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000285b
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.1000285b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add ebx, 0x18
cmp eax, dword [ebp + 0xc]
jb 0x1000b814
mov eax, dword [ebp - 0x14]
call fcn.10043ad8
ret