Function at 0x140020ff0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
call fcn.140019850
mov rsi, rax
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov rdi, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test rdi, rdi
je 0x1400210de
mov rcx, qword [rsi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400210d4
nop dword [rax]
mov rax, qword [rbx + 0x40]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
call qword [0x140069610]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400210aa
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400210a5
cmp rbx, qword [rax + 0x10]
jne 0x1400210a5
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140021092
mov rbx, rax
jmp 0x1400210cf
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x1400210cf
nop word [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400210c0
cmp rbx, qword [rsi]
jne 0x140021060
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx + 0x90]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.14000cc30
cmp dword [rax + 8], 2
jne 0x14002112c
call fcn.14000cc30
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
jmp 0x1400213fa
lea rcx, str.jhi_reset_starting
mov qword [rsp + 0x70], rbp
call fcn.140003170
lea rdx, str.IntelDalJhi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_RegisterEventSourceW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002118c
mov qword [rsp + 0x40], rbp
lea edx, [rbp + 4]
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov r9d, 0x40000002
mov word [rsp + 0x28], bp
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.DLL_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeregisterEventSource]
call fcn.140019930
mov edx, 0xffffffff
mov rdi, rax
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rbx, qword [rdi]
mov rdx, rdi
mov rcx, rdi
mov r8, qword [rbx + 8]
call fcn.14000dfd0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 8], rbp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
call fcn.140019850
lea rcx, str.Resetting_Session_Manager
mov rdi, rax
call fcn.1400031b0
mov rcx, qword [rdi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rdi]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140021264
nop dword [rax]
lea rdx, [rbx + 0x80]
call fcn.1400253c0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], bpl
je 0x140021238
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], bpl
jne 0x140021233
cmp rbx, qword [rax + 0x10]
jne 0x140021233
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bpl
je 0x140021220
mov rbx, rax
jmp 0x14002125f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], bpl
jne 0x14002125f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], bpl
je 0x140021250
cmp rbx, qword [rdi]
jne 0x140021200
mov rcx, rdi
call fcn.140026940
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140093c1c], eax
jle 0x1400212d2
lea rcx, [0x140093c1c]
call fcn.140038d08
cmp dword [0x140093c1c], 0xffffffff
jne 0x1400212d2
xorps xmm0, xmm0
lea rcx, [0x1400676f0]
xor eax, eax
movups xmmword [0x140093c20], xmm0
mov qword [0x140093c30], rax
call fcn.14003908c
lea rcx, [0x140093c1c]
call fcn.140038ca8
lea rcx, [0x140093c20]
call fcn.14001e570
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov rsi, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test rsi, rsi
je 0x14002134c
mov dil, 1
call fcn.14000cc30
mov ebx, dword [rax + 0x58]
call fcn.14000cc30
cmp ebx, 3
jne 0x140021326
cmp dword [rax + 0x5c], 2
movzx edi, dil
cmove edi, ebp
mov rax, qword [rsi]
movzx edx, dil
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140069610]
test eax, eax
je 0x14002134c
mov edx, eax
lea rcx, str.Error:_VM_Plugin_Deinit_failed:_0x_X
call fcn.1400031b0
call fcn.14000cc30
cmp dword [rax + 0x58], 1
je 0x14002139f
mov rcx, qword [0x140091810]
test rcx, rcx
je 0x14002139f
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x14002137b
lea rcx, str.failed_to_close_heci_handle
call fcn.1400031b0
jmp 0x140021393
mov rcx, qword [0x140091808]
mov qword [0x140091810], rbp
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Unregister_Notification]
test eax, eax
je 0x14002139f
lea rcx, str.Error:_failed_to_unregister_heci_events
call fcn.1400031b0
call fcn.14000cc30
mov edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
mov dword [rbx + 8], 2
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
call fcn.14000cc30
lea rcx, str.Sending_reset_complete_event..._n
mov rbx, rax
call fcn.1400031b0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
call fcn.14000cc30
mov rcx, qword [rax + 0x80]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038b50
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret