Function at 0x1400489f0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov qword [rsp + 0x60], rcx
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x1400489a5
lea rdx, str.CM_Locate_DevNodeA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a0310]
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CM_Get_DevNode_Registry_PropertyA
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a02b0]
mov rcx, r12
mov rsi, rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CM_Open_DevNode_Key
mov rcx, r12
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a0288]
mov rcx, r12
mov r13, rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rbx, rbx
je 0x1400489a5
test r14, r14
je 0x1400489a5
test rsi, rsi
je 0x1400489a5
test r15, r15
je 0x1400489a5
test r13, r13
je 0x1400489a5
test rax, rax
je 0x1400489a5
and dword [rsp + 0x30], 0
xor r13d, r13d
lea rcx, [rbp - 0x70]
lea r8d, [r13 + 0x4e]
lea rdx, str.95C7A0A0_3094_11D7_A202_00508B9D7D5A00001124_0000_1000_8000_00805F9B34FB
call fcn.14005bdf0
lea rcx, [rsp + 0x68]
lea rdx, str.95C7A0A0_3094_11D7_A202_00508B9D7D5A
lea r8d, [r13 + 0x27]
call fcn.14005bdf0
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call rbx
test eax, eax
jne 0x1400489a5
lea esi, [rax + 1]
mov ecx, dword [rsp + 0x30]
and dword [rsp + 0x28], 0
xor r8d, r8d
lea rax, [rsp + 0x38]
lea edx, [r8 + 2]
lea r9, [rbp - 0x20]
mov dword [rsp + 0x38], 0x207
mov qword [rsp + 0x20], rax
call qword [rsp + 0x50]
test eax, eax
jne 0x140048952
lea rcx, [rbp - 0x20]
mov edx, 0x208
call fcn.14005d740
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.14005c79c
test rax, rax
je 0x140048952
cmp byte [rbp - 0x20], 0
lea rdi, [rbp - 0x20]
je 0x14004894d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
call fcn.14005c79c
test rax, rax
je 0x140048933
mov ecx, dword [rsp + 0x30]
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x20019
mov qword [rsp + 0x20], rax
call qword [rsp + 0x58]
test eax, eax
jne 0x140048933
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1400489a7
mov rcx, rdi
call fcn.14005bc90
lea rdi, [rdi + rax + 1]
mov rcx, rdi
call fcn.14005d768
cmp byte [rdi], 0
jne 0x1400488e1
mov rdi, qword [rsp + 0x48]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
xor r8d, r8d
call r15
test eax, eax
je 0x140048994
mov edx, dword [rsp + 0x30]
jmp 0x140048985
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
xor r8d, r8d
call rdi
test eax, eax
jne 0x1400489e2
mov edx, dword [rsp + 0x34]
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x34]
xor r8d, r8d
call r14
test eax, eax
jne 0x14004896b
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
test r13d, r13d
je 0x140048884
xor esi, esi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x300]
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
mov r13d, esi
jmp 0x14004899c
push rbx
sub rsp, 0x20
and dword [0x1400ddac0], 0
mov bl, dl
mov rdx, rcx
lea rcx, [0x1400ddab8]
mov r8d, 6
call fcn.14005bdf0
lea rcx, [0x140046570]
mov byte [0x1400dd588], bl
add rsp, 0x20
pop rbx
jmp 0x140048730