Function at 0x140007cd0
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.14000d440
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 0x140007d50
mov qword [rsp + 0x40], rax
mov edi, 5
nop dword [rax]
lea rcx, str.While_WaitForSystemChangeNotify_Enter_n
call fcn.14000d440
mov r9d, 0xffffffff
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 4
jne 0x140007dc5
lea rcx, str.WaitForSystemChangeNotify_Driver_Loaded_n
call fcn.14000d440
mov rcx, qword [0x140089e40]
mov byte [0x140089e68], 0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d440
mov rcx, rbx
call fcn.1400079b0
lea rcx, str.NotifyAmdlogState_Driver_Loaded_n
call fcn.14000d440
lea rcx, str.NotifyAmdlogState_exit_n
call fcn.14000d440
jmp 0x140007d50
cmp eax, 2
jb 0x140007ecf
jne 0x140007dfc
mov edx, 1
mov byte [rbx + 0x6739], 1
mov rcx, rbx
call fcn.140006810
lea rcx, str.WaitForSystemChangeNotify_Driver_Unload_n
mov byte [0x140089e68], 1
call fcn.14000d440
jmp 0x140007d50
cmp byte [0x140089e68], 0
je 0x140007e16
lea rcx, str.WaitForSystemChangeNotify_amdlog_stop_only_wait_for_arrival_n
call fcn.14000d440
jmp 0x140007d50
cmp eax, 3
jne 0x140007ebf
lea rcx, str.WaitForSystemChangeNotify_Driver_SystemChange_n
call fcn.14000d440
mov rcx, qword [0x140089e48]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d440
lea rcx, str.NotifyAmdlogState_Driver_SystemChange_is_called_n
call fcn.14000d440
mov rcx, qword [rbx + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.140007b20
mov rcx, qword [0x140089e48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp qword [0x140089e58], 0
jne 0x140007e89
mov rcx, rbx
call fcn.1400079b0
mov rcx, rbx
call fcn.1400083f0
mov rcx, qword [rbx + 0x6740]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str.NotifyAmdlogState_exit_n
call fcn.14000d440
mov rcx, rsi
call fcn.14000d440
mov rcx, rbx
call fcn.140006490
jmp 0x140007cf0
mov edx, eax
lea rcx, str.WaitForSystemChangeNotify_unexpected:_0x_x__wait_n
call fcn.14000d440
jmp 0x140007edb
lea rcx, str.WaitForSystemChangeNotify_Service_End_n
call fcn.14000d440
mov rcx, rsi
call fcn.14000d440
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d440
lea rcx, str.NotifyAmdlogState_Driver_Unload_Or_End_is_called_n
call fcn.14000d440
mov rcx, qword [rbx + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call fcn.140007b20
mov rcx, qword [0x140089e58]
test rcx, rcx
je 0x140007f4e
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.14000d440