Function at 0x1400055d0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r12d, edx
mov r14, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
mov ebx, r13d
mov dword [rsp + 0x50], r13d
mov esi, 0xff
lea r9d, [r13 + 6]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005689
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x140005bfd
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140005bf8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005c45
jmp 0x140005bf5
mov dword [rsp + 0x58], 0x20
xor eax, eax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], eax
mov r15d, r13d
xor edx, edx
lea r8, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140005bb8
xor r9d, r9d
mov r8d, dword [rsp + 0x6c]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x140005bad
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.140008590
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 7]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140005780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000579c
test rbx, rbx
je 0x14000573e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 7]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140005725
cmp word [rbx], r13w
je 0x14000579c
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, [0x14001d2f8]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140005bad
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.140008590
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 0x16]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14000585b
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005874
test rbx, rbx
je 0x140005819
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 0x16]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140005800
cmp word [rbx], r13w
je 0x140005874
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14000590f
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005bad
test rbx, rbx
je 0x1400058cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x1400058b0
cmp word [rbx], r13w
je 0x140005bad
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x1400059be
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005bad
test rbx, rbx
je 0x14000597d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140005960
cmp word [rbx], r13w
je 0x140005bad
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp r12d, 2
jg 0x140005b3f
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140003bb0
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x1400059fe
mov r9, qword [r14]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp - 0x70]
call fcn.1400046e0
cmp rax, 0xffffffffffffffff
je 0x140005af0
cmp r12d, 1
jne 0x140005a5b
mov r8, rdi
mov edx, r15d
mov ecx, r12d
call fcn.1400052e0
test eax, eax
je 0x140005a4f
mov esi, r12d
lea rcx, str.EnableDevice_Successful_n
jmp 0x140005aea
lea rcx, str.EnableDevice_FAILED_n
jmp 0x140005ae5
test r12d, r12d
jne 0x140005a8b
mov r8, rdi
mov edx, r15d
lea ecx, [r12 + 2]
call fcn.1400052e0
test eax, eax
je 0x140005a82
lea esi, [r12 + 1]
lea rcx, str.DisableDevice_Successful_n
jmp 0x140005aea
lea rcx, str.DisableDevice_FAILED_n
jmp 0x140005ae5
cmp r12d, 2
jne 0x140005af0
lea rcx, str.Update_one_dev_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rdi
mov ecx, r15d
call fcn.140005470
test eax, eax
lea rcx, str.ControlDevice_Successful_n
jne 0x140005abb
lea rcx, str.ControlDevice_FAILED_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rdi
mov ecx, r15d
call fcn.140005470
test eax, eax
je 0x140005ade
mov esi, 1
lea rcx, str.ControlDevice_Successful_n
jmp 0x140005aea
lea rcx, str.ControlDevice_FAILED_n
mov esi, 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140005bad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c3f
call fcn.140006cb0
inc r15d
mov edx, r15d
jmp 0x1400056ab
lea rcx, str.Update_all_dev_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rdi
mov ecx, r15d
call fcn.140005470
test eax, eax
lea rcx, str.ControlDevice_Successful_n
jne 0x140005b69
lea rcx, str.ControlDevice_FAILED_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rdi
mov ecx, r15d
call fcn.140005470
test eax, eax
je 0x140005b9b
mov esi, 1
lea rcx, str.ControlDevice_Successful_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc r15d
mov edx, r15d
jmp 0x1400056ab
mov esi, 2
lea rcx, str.ControlDevice_FAILED_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc r15d
mov edx, r15d
jmp 0x1400056ab
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x140005bfd
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140005bf8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005c4b
mov rcx, r8
call fcn.140006cb0
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 7
mov eax, esi
mov word [r14], r13w
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140006c50
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14000aa3c
nop
call fcn.14000aa3c
int3
call fcn.14000aa3c
int3