Function at 0x140232554
Capabilities:
Check if file exists
Impersonate user
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov r14, rdx
mov rsi, rcx
lea rdi, [rcx + 0x20]
cmp qword [rdi], 0
jne 0x140232840
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9d, 5
lea r8, [0x14030cae0]
lea rdx, str.NT_AUTHORITY
lea rcx, str.LocalService
call qword [sym.imp.api_ms_win_security_logon_l1_1_1.dll_LogonUserW]
test eax, eax
jne 0x1402325f9
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140232609
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140232609
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
and qword [rsp + 0x50], 0
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x1402326d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x50], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x14023267b
lea rax, [rsp + 0x50]
mov qword [rbp - 0x40], rax
mov edx, 4
mov dword [rbp - 0x38], edx
and dword [rbp - 0x34], 0
lea rax, str.FileStreamingOperations::Run_Failed_to_create_LocalService_token
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x82
and dword [rbp - 0x24], 0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039f1b9]
call fcn.140001158
mov r9d, dword [rsp + 0x50]
test r9d, r9d
je 0x1402326b6
mov rcx, qword [rbp + 0x28]
lea r8, str.amcorewcd_sourcecommon_src_filestreamingoperations.cpp
mov edx, 0x3b
call fcn.140058c08
mov edi, eax
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1402326af
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, edi
jmp 0x140232812
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402326c9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
jmp 0x140232812
lea rdx, [0x14030cae0]
lea rcx, [rbp - 0x60]
call fcn.14004a9e4
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
and qword [rsp + 0x70], 0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8, r14
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14022fe34
cmp rdi, rax
je 0x140232751
movups xmm6, xmmword [rax]
movsd xmm7, qword [rax + 0x10]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1401ba484
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
movups xmmword [rdi], xmm6
movsd qword [rdi + 0x10], xmm7
lea rcx, [rbp - 0x80]
call fcn.1401ba484
nop
lea rcx, [rsp + 0x60]
call fcn.14006c208
nop
lea rcx, [rbp - 0x60]
call fcn.14004b500
mov edx, dword [rsi + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsi + 0x20]
cmp eax, 0x102
jne 0x1402327df
mov edx, 0x5b4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402327d8
lea rax, str.Uploader_process_time_out
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 0x34
and dword [rbp - 0x34], 0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a26ff]
call fcn.140001158
mov ebx, 0x800705b4
jmp 0x1402327ee
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [rsp + 0x50]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov rcx, qword [rsp + 0x58]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140232810
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.File_operations_was_run_while_previous_operation_process_info_was_not_null
lea rcx, [rsp + 0x60]
call fcn.140063f84
lea rdx, [0x14042fb18]
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3