Function at 0x41e780
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004176a0
mov ebx, eax
call fcn.0040b470
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x38]
push dword [esi]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
je 0x41e83c
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x41e833
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push ecx
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x45e29c]
mov ecx, dword [ebp - 0xc]
call edi
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41e814
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41e810
nop
cmp esi, dword [eax + 8]
jne 0x41e810
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41e800
mov esi, eax
jmp 0x41e82c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41e82c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41e820
mov edi, dword [ebp - 0xc]
cmp esi, dword [ebx]
jne 0x41e7d0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040b470
mov esi, eax
push 0xffffffffffffffff
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040b470
cmp dword [eax + 4], 2
je 0x41ead7
push str.jhi_reset_starting
call fcn.00402c50
add esp, 4
push str.IntelDalJhi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41e8a9
push 0
push 0
push 0
push 0
push 0
push 0x40000002
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
call fcn.004177a0
mov edi, eax
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.0040c740
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.004176a0
push str.Resetting_Session_Manager
mov ebx, eax
call fcn.00402c70
add esp, 4
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x41e952
lea eax, [esi + 0x5c]
push eax
call fcn.00421e50
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41e936
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41e932
cmp esi, dword [eax + 8]
jne 0x41e932
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41e922
mov esi, eax
jmp 0x41e94c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41e94c
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41e940
mov edi, dword [ebx]
cmp esi, edi
jne 0x41e907
push dword [edi + 4]
mov ecx, ebx
push ebx
call fcn.00423480
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebx + 4], 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x47da1c]
cmp eax, dword [ecx + 4]
jle 0x41e9cf
push 0x47da1c
call fcn.004341ea
add esp, 4
cmp dword [0x47da1c], 0xffffffff
jne 0x41e9cf
xorps xmm0, xmm0
mov dword [0x47da28], 0
push 0x45cf90
movq qword [0x47da20], xmm0
call fcn.0043452c
add esp, 4
push 0x47da1c
call fcn.004341a0
add esp, 4
mov ecx, 0x47da20
call fcn.0041bd40
call fcn.0040b470
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
mov edi, dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
je 0x41ea45
mov bl, 1
mov byte [ebp - 0xc], bl
call fcn.0040b470
mov esi, dword [eax + 0x3c]
call fcn.0040b470
cmp esi, 3
jne 0x41ea1f
xor edx, edx
movzx ecx, bl
cmp dword [eax + 0x40], 2
cmove ecx, edx
mov byte [ebp - 0xc], cl
mov eax, dword [edi]
push dword [ebp - 0xc]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x45e29c]
mov ecx, edi
call esi
test eax, eax
je 0x41ea45
push eax
push str.Error:_VM_Plugin_Deinit_failed:_0x_X
call fcn.00402c70
add esp, 8
call fcn.0040b470
cmp dword [eax + 0x3c], 1
je 0x41ea9a
mov eax, dword [0x47b7bc]
test eax, eax
je 0x41ea9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41ea73
push str.failed_to_close_heci_handle
call fcn.00402c70
add esp, 4
jmp 0x41ea8d
push dword [0x47b7b8]
mov dword [0x47b7bc], 0
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
test eax, eax
jne 0x41ea9a
push str.Error:_failed_to_unregister_heci_events
call fcn.00402c70
add esp, 4
call fcn.0040b470
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
mov dword [esi + 4], 2
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040b470
push str.Sending_reset_complete_event..._n
mov esi, eax
call fcn.00402c70
add esp, 4
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0040b470
push dword [eax + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434098
mov esp, ebp
pop ebp
ret