Function at 0x10121230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x10121262
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.10121140
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1012154a
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str...deepscan_
push eax
call edi
push str.sysfilereps.dll
lea eax, [ebp - 0x20c]
push eax
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
test eax, eax
jne 0x10121459
cmp dword [0x1023c00c], 0
je 0x10121429
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push str.360Base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10121317
mov eax, dword [0x10257d10]
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360Base.dll
lea eax, [ebp - 0x418]
push eax
call edi
cmp dword [0x1024e9f8], 0
jne 0x101213fb
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1024e9f8], 0
jne 0x101213f0
lea eax, [ebp - 0x418]
push eax
call fcn.101b1420
mov edi, eax
add esp, 4
mov ebx, 0x80004005
test edi, edi
je 0x101213d4
push str.InitLibs
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateObject
push edi
mov dword [ebp - 0x41c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x41c]
mov dword [0x1024e5d8], eax
test ecx, ecx
je 0x10121444
push 0x1024e5dc
mov dword [0x1024e5dc], 0x100
call ecx
mov ebx, eax
test ebx, ebx
je 0x1012144e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1024e5d4], 0
xor eax, eax
mov dword [0x1024e9f8], 1
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sete al
mov dword [0x1024e9fc], eax
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x1024e9fc]
test edi, edi
jne 0x1012141b
push 1
lea eax, [ebp - 0x418]
push 0x10246c50
push eax
call fcn.1001ac50
add esp, 0xc
mov dword [0x1023c00c], 0
test edi, edi
je 0x10121440
push 0
lea eax, [ebp - 0x20c]
mov ecx, 0x1024e5d0
push eax
call fcn.101b1210
test eax, eax
jne 0x10121459
xor eax, eax
jmp 0x10121466
test eax, eax
je 0x101213c3
xor ebx, ebx
mov dword [0x1024e5d4], edi
jmp 0x101213d4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
pop edi
test eax, eax
je 0x1012154a
push str.create_sysfilerep_object
push eax
call ebx
push str.close_sysfilerep_object
push dword [esi + 4]
mov dword [esi + 0x14], eax
call ebx
push str.cancel_sysfilerep_req
push dword [esi + 4]
mov dword [esi + 0x18], eax
call ebx
push str.set_sysfilerep_timeout
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call ebx
push str.replace_sys_file_w
push dword [esi + 4]
mov dword [esi + 0x20], eax
call ebx
push str.replace_set_product_w
push dword [esi + 4]
mov dword [esi + 0x24], eax
call ebx
push str.replace_set_http_mode
push dword [esi + 4]
mov dword [esi + 0x28], eax
call ebx
push str.set_option
push dword [esi + 4]
mov dword [esi + 0x2c], eax
call ebx
push str.replace_file_w
push dword [esi + 4]
mov dword [esi + 0x30], eax
call ebx
push str.WinsxsFix
push dword [esi + 4]
mov dword [esi + 0x34], eax
call ebx
cmp dword [esi + 0x14], 0
mov dword [esi + 0x38], eax
je 0x10121543
cmp dword [esi + 0x18], 0
je 0x10121543
cmp dword [esi + 0x1c], 0
je 0x10121543
cmp dword [esi + 0x20], 0
je 0x10121543
cmp dword [esi + 0x24], 0
je 0x10121543
push dword [ebp + 8]
mov ecx, esi
push 0x7530
push 0
call fcn.101211b0
test eax, eax
je 0x10121543
pop ebx
mov dword [esi + 0xc], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.10121140
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4