Function at 0x140004f00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, str.Enter_function_void_OnDeviceArrival___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140003cf0
call fcn.14000aad0
call fcn.140018940
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [0x1400391e0]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400036d0
test eax, eax
je 0x140004fac
call fcn.1400038f0
test eax, eax
je 0x140004fac
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.14001dd20
xor ecx, ecx
lea edi, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14000502d
lea rdx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.The_cServPath_is__s__n
call fcn.14000f070
lea rdx, str.System32
lea rcx, [rsp + 0x40]
call fcn.14001ade0
test rax, rax
je 0x140005022
lea rcx, str.This_adminservice_is_for_MSFT_WU_or_3002_Intel._n
mov edi, esi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000503a
lea rcx, str.OnDeviceArrival________Error_GetModuleHandle_NULL__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x140045cb8], rsi
jne 0x140005062
lea rcx, str.Enter_condition_pSvc__RegeditCustomHandle__NULL_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140003550
cmp qword [0x140045cb8], rsi
je 0x1400051da
lea rcx, str.Enter_condition_pSvc__RegeditCustomHandle___NULL_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x140046120]
mov byte [rsp + 0x20], 1
and eax, 0xfffffffe
mov ebx, esi
movsxd rdi, edi
mov dword [0x140046120], eax
test al, 1
jne 0x1400051da
cmp ebx, 0xa
jge 0x1400051da
lea r8, [rsp + 0x20]
mov ecx, 0xfc1e
mov edx, 1
call fcn.140019f40
cmp eax, 2
je 0x14000518c
mov dword [0x14004610c], esi
call fcn.14000a4e0
cmp eax, 0xa
jne 0x1400050cb
call fcn.1400160e0
cmp dword [0x1400460f0], esi
jne 0x14000516b
cmp dword [0x1400460f4], 1
jne 0x14000516b
lea rcx, str.OnDeviceArrival__send_vendor_cmd_0xFC14_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r8, [0x1400460e8]
mov ecx, 0xfc14
mov edx, 6
call fcn.140019f40
test eax, eax
jne 0x14000516b
lea rcx, str.OnDeviceArrival__Disable_Enable_radio_after_0xFC14_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [0x1400460f0], 1
test rdi, rdi
je 0x14000517b
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
test byte [0x140046120], 1
je 0x140005090
jmp 0x1400051da
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [0x14004610c]
cmp r11d, 3
jg 0x1400051d4
inc r11d
lea rcx, str.::PostThreadMessage_pSvc__dwThreadID_CUSTOM_THREAD_EVENT_DEVICE_ARRIVAL__0__0___n
mov dword [0x14004610c], r11d
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5f
call qword [sym.imp.USER32.dll_PostThreadMessageW]
jmp 0x1400051da
mov dword [0x14004610c], esi
lea rcx, str.Leave_function_void_OnDeviceArrival___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001a650
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret