Function at 0x140007d60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rsi, str.WaitForSystemChangeNotify_exit_n
nop dword [rax]
lea rcx, str.WaitForSystemChangeNotify_Enter_n
call fcn.14000d4e0
mov rax, qword [0x140089e10]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140089e28]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140089e38]
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x6748]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea edi, [rax + 4]
mov rax, qword [0x140089e40]
test rax, rax
je 0x140007de0
mov qword [rsp + 0x40], rax
mov edi, 5
nop dword [rax]
lea rcx, str.While_WaitForSystemChangeNotify_Enter_n
call fcn.14000d4e0
mov r9d, 0xffffffff
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 4
jne 0x140007e55
lea rcx, str.WaitForSystemChangeNotify_Driver_Loaded_n
call fcn.14000d4e0
mov rcx, qword [0x140089e40]
mov byte [0x140089e68], 0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d4e0
mov rcx, rbx
call fcn.140007a40
lea rcx, str.NotifyAmdlogState_Driver_Loaded_n
call fcn.14000d4e0
lea rcx, str.NotifyAmdlogState_exit_n
call fcn.14000d4e0
jmp 0x140007de0
cmp eax, 2
jb 0x140007f5f
jne 0x140007e8c
mov edx, 1
mov byte [rbx + 0x6739], 1
mov rcx, rbx
call fcn.140006880
lea rcx, str.WaitForSystemChangeNotify_Driver_Unload_n
mov byte [0x140089e68], 1
call fcn.14000d4e0
jmp 0x140007de0
cmp byte [0x140089e68], 0
je 0x140007ea6
lea rcx, str.WaitForSystemChangeNotify_amdlog_stop_only_wait_for_arrival_n
call fcn.14000d4e0
jmp 0x140007de0
cmp eax, 3
jne 0x140007f4f
lea rcx, str.WaitForSystemChangeNotify_Driver_SystemChange_n
call fcn.14000d4e0
mov rcx, qword [0x140089e48]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d4e0
lea rcx, str.NotifyAmdlogState_Driver_SystemChange_is_called_n
call fcn.14000d4e0
mov rcx, qword [rbx + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.140007bc0
mov rcx, qword [0x140089e48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp qword [0x140089e58], 0
jne 0x140007f19
mov rcx, rbx
call fcn.140007a40
mov rcx, rbx
call fcn.1400084a0
mov rcx, qword [rbx + 0x6740]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str.NotifyAmdlogState_exit_n
call fcn.14000d4e0
mov rcx, rsi
call fcn.14000d4e0
mov rcx, rbx
call fcn.1400064f0
jmp 0x140007d80
mov edx, eax
lea rcx, str.WaitForSystemChangeNotify_unexpected:_0x_x__wait_n
call fcn.14000d4e0
jmp 0x140007f6b
lea rcx, str.WaitForSystemChangeNotify_Service_End_n
call fcn.14000d4e0
mov rcx, rsi
call fcn.14000d4e0
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d4e0
lea rcx, str.NotifyAmdlogState_Driver_Unload_Or_End_is_called_n
call fcn.14000d4e0
mov rcx, qword [rbx + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.140007bc0
mov rcx, qword [0x140089e58]
test rcx, rcx
je 0x140007fde
mov r8, qword [0x140089e38]
xor r9d, r9d
mov rdx, qword [rbx + 0x6748]
call sym.amdfendrsr.exe_amdlogumlib_register_systemchangeevent2
mov rcx, qword [0x140089e58]
call sym.amdfendrsr.exe_close_amdlog_umlib
mov qword [0x140089e58], 0
mov rcx, qword [0x140089e38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x6740]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str.NotifyAmdlogState_exit_n
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp fcn.14000d4e0