Function at 0x4010a2
Capabilities:
Create process on windows
Create process suspended
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2f8
mov eax, dword [0x41c010]
xor eax, esp
mov dword [esp + 0x2f4], eax
push esi
push edi
push 0x41a08c
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [ebp + 8]
mov dword [0x41d3b8], eax
lea eax, [esp + 0xe8]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 2
test eax, eax
jne 0x4010fd
push str.Fail_to_intialize_Log_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40119a
lea ecx, [esp + 0xe8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x401107
sub ecx, edx
sar ecx, 1
mov dword [esp + 0x10], ecx
lea edi, [ecx + 0xe]
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402b12
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov dword [0x41d3c0], esi
lea ecx, [ecx*2 + 0x1c]
push ecx
push 0
push esi
call fcn.00404210
add esp, 0xc
lea eax, [esp + 0xe8]
push eax
push edi
push esi
call fcn.00406e8b
add esp, 0xc
push str.SaraSetup.log
push edi
push dword [0x41d3c0]
call fcn.00406e8b
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 3
push 0x120116
push dword [0x41d3c0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41d3bc], eax
push str.Sorry__we_ran_into_a_problem__and_we_dont_know_what_happened._Please_try_running_Setup_again._If_you_keep_getting_this_error_message__contact_your_Office_365_admin._Here_is_the_Setup_log:
lea ecx, [esp + 0x4c]
call fcn.00401680
mov edx, dword [0x41d3c0]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011b3
mov eax, dword [esp + 0x5c]
sub ecx, esi
mov esi, dword [esp + 0x58]
sub eax, esi
sar ecx, 1
mov dword [esp + 0x10], esi
cmp ecx, eax
ja 0x401206
cmp dword [esp + 0x5c], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [esp + 0x58], edi
push eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x4c]
cmovae esi, dword [esp + 0x4c]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00403a00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x401272
push ecx
push edx
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x58]
call 0x401700
lea ecx, [esp + 0x48]
cmp ecx, eax
je 0x401272
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40122d
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x5c]
cmp eax, edx
ja 0x40125e
lea esi, [eax + eax]
mov dword [esp + 0x58], eax
cmp edx, 8
lea edi, [esp + 0x48]
push esi
cmovae edi, dword [esp + 0x4c]
push ecx
push edi
call fcn.00403a00
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x401272
push ecx
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x4c]
push dword [esp + 0x14]
push eax
call fcn.004018c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push section..text
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x41d3b4], eax
call 0x401b60
cmp eax, 3
ja case.default.0x40129d
jmp dword [eax*4 + 0x401670]
push 0x35
push 0x419778
push str.Another_instance_of_Support_and_Recovery_Assistant_is_already_running._Close_that_one__and_then_choose_Retry_to_install
push 0
call edi
cmp eax, 2
jne case.default.0x40129d
jmp 0x40156c
push 1
push 0
push 0
push str.https:__www.microsoft.com_download_details.aspx_id53345
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x35
push 0x419778
push str.Sorry__we_cant_install_Support_and_Recovery_Assistant_on_this_computer_because_you_dont_have_.Net_Framework_4.6.2__or_later__installed._We_opened_the_.Net_Framework_4.6.2_installation_page_for_you._Go_to_that_page_to_install_.Net_Framework__then_come_back_here_and_choose_Retry_to_install_Support_and_Recovery_Assistant.
push 0
call edi
cmp eax, 2
jne case.default.0x40129d
jmp 0x40156c
push 0x30
push 0x419778
push str.Sorry__we_cant_install_Support_and_Recovery_Assistant_on_this_computer_because_your_Windows_operating_system_is_too_old._To_run_Support_and_Recovery_Assistant__you_need_Window_Vista_SP1_or_later.
push 0
call edi
jmp 0x40156c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x401643
push ecx
push 0
call fcn.00402060
cmp al, 1
jne 0x40143d
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.00402060
test al, al
jne 0x401352
push str.Fail_to_load_clickonce_info_registry_for_sara
call fcn.00401a70
add esp, 4
push 0x30
push 0x419778
push str.Sorry__we_cant_run_the_Support_and_Recovery_Assistant_because_it_is_already_installed_from_a_location_on_your_network._Start_the_Support_and_Recovery_Assistant_from_the_shortcut_on_your_desktop_or_Start_menu.
jmp 0x401562
push dword [esp + 0x10]
lea ecx, [esp + 0x8c]
call fcn.00401680
push str.https:__outlookdiagnostics.azureedge.net_sarafiles_Microsoft.Sara.Prod.application_usergroupProdRingProdsymptomid3a1b3aa0_0969_4860_a9b8_ad13e3c81cf8
lea ecx, [esp + 0x64]
call fcn.00401680
lea ecx, [esp + 0x88]
call fcn.00401fb0
lea ecx, [esp + 0x60]
call fcn.00401fb0
lea edx, [esp + 0x60]
lea ecx, [esp + 0x30]
call fcn.00401e60
mov esi, eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.00401e60
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4013b2
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
mov esi, eax
jb 0x4013bc
mov esi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jne 0x4013e8
test edx, edx
je 0x4013e1
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4013e8
add ecx, 2
sub edx, 1
jne 0x4013d0
mov byte [esp + 0xf], 1
jmp 0x4013ed
mov byte [esp + 0xf], 0
lea ecx, [esp + 0x18]
call fcn.004019f0
lea ecx, [esp + 0x30]
call fcn.004019f0
cmp byte [esp + 0xf], 0
je 0x4015d1
push str.Current_installation_URI_is_the_same_as_the_installed
call fcn.00401a70
add esp, 4
lea ecx, [esp + 0x60]
call fcn.004019f0
lea ecx, [esp + 0x88]
call fcn.004019f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40143d
push eax
call fcn.00402b0d
add esp, 4
push 0x105
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x40162a
lea edi, [eax + 0xcb]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402b12
add esp, 4
mov esi, eax
lea eax, [esp + 0xe8]
push eax
push edi
push esi
call fcn.00406f00
add esp, 0xc
push str._rundll32.exe_dfshim.dll__ShOpenVerbApplication
push edi
push esi
call fcn.00406e8b
add esp, 0xc
push str.https:__outlookdiagnostics.azureedge.net_sarafiles_Microsoft.Sara.Prod.application_usergroupProdRingProdsymptomid3a1b3aa0_0969_4860_a9b8_ad13e3c81cf8
push edi
push esi
call fcn.00406e8b
add esp, 0xc
push esi
call fcn.00401a70
add esp, 4
lea eax, [esp + 0xa0]
push 0x44
push 0
push eax
call fcn.00404210
add esp, 0xc
mov dword [esp + 0xa0], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0xd0], ax
movaps xmmword [esp + 0x60], xmm0
push str.Start_to_install_Office_365_Support_and_Recovery_Assistant
call fcn.00401a70
add esp, 4
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0xa4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401608
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_start_the_clickonce_install_process__i
call fcn.00401a70
add esp, 8
test esi, esi
je 0x401546
push 2
push esi
call fcn.00402896
add esp, 8
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push 0x10
cmovae eax, dword [esp + 0x4c]
push 0x419778
push eax
push 0
call edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x41d3bc]
test eax, eax
je 0x401588
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [0x41d3bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d3c0]
test eax, eax
je 0x4015a4
push eax
call fcn.00402b0d
add esp, 4
mov dword [0x41d3c0], 0
push dword [0x41d3b4]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
lea ecx, [esp + 0x48]
call fcn.004019f0
mov ecx, dword [esp + 0x2fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00402885
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x60]
call fcn.004019f0
lea ecx, [esp + 0x88]
call fcn.004019f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4015f7
push eax
call fcn.00402b0d
add esp, 4
push 0x30
push 0x419778
push str.Sorry__we_cant_run_the_Support_and_Recovery_Assistant_because_it_is_already_installed_from_a_location_on_your_network._Start_the_Support_and_Recovery_Assistant_from_the_shortcut_on_your_desktop_or_Start_menu.
jmp 0x401562
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401566
push 2
push esi
call fcn.00402896
add esp, 8
jmp 0x401566
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_start_the_clickonce_install_process__i
call fcn.00401a70
add esp, 8
jmp 0x40154c
push str.Fail_to_intialize_COM
call fcn.00401a70
add esp, 4
lea ecx, [esp + 0x60]
push str.Fail_to_initialize_COM
call fcn.00402530
push 0x41b738
lea eax, [esp + 0x64]
push eax
call fcn.00403ff6
nop dword [eax]
add eax, 0xf0004013
adc al, byte [eax]
mov esi, 0xa4004012
adc al, byte [eax]