Function at 0x140053a40
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 8], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rsp + 0x70], xmm11
mov r12, rcx
xor r13d, r13d
mov qword [rbp - 0x51], r13
mov dword [rbp - 0x49], r13d
mov qword [rbp - 0x41], r13
mov r9d, 0x20019
lea r8, str.systemcurrentcontrolsetenumusb
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x51]
call fcn.14003e420
test eax, eax
jne 0x140053e46
xorps xmm11, xmm11
xorps xmm6, xmm6
mov r15d, r13d
mov dword [rbp + 0x6f], 0x100
mov ecx, 0x202
call fcn.14008c218
mov rsi, rax
lea rdi, vtable.ATL::CAtlStringMgr.0
lea r14, [r13 - 1]
movsd xmm9, qword [0x1402f90e8]
movss xmm8, dword [0x1402f90e0]
movss xmm7, dword [0x1402f90f8]
movss xmm10, dword [0x1402f9110]
nop dword [rax + rax]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x6f]
mov r8, rsi
mov edx, r15d
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140053d7c
call fcn.140011f18
test rax, rax
je 0x140053ee6
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
cmp rcx, rdi
jne 0x140053eb3
lock inc dword [rax + 0x20]
add rax, 0x10
add rax, 0x18
mov qword [rbp + 0x77], rax
test rsi, rsi
je 0x140053b9d
cmp rsi, 0x10000
jae 0x140053b8e
movzx edx, si
lea rcx, [rbp + 0x77]
call fcn.140012700
jmp 0x140053bb0
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x140053b91
jmp 0x140053ba0
mov eax, r13d
mov r8d, eax
mov rdx, rsi
lea rcx, [rbp + 0x77]
call fcn.140002a7c
nop
mov rbx, qword [rbp + 0x77]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x140053edb
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140053be0
mov edx, edi
lea rcx, [rbp + 0x77]
call fcn.140002a1c
mov rbx, qword [rbp + 0x77]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.1402385bc
cmp edi, dword [rbx - 0xc]
jg 0x140053ed0
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r13w
add rbx, 0xffffffffffffffe8
mov rcx, rbx
call fcn.140002c94
add rax, 0x18
mov qword [rbp - 0x69], rax
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
sub eax, 1
lea rdi, vtable.ATL::CAtlStringMgr.0
jg 0x140053c64
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053ebd
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea rdx, vtable.ATL::CWin32Heap.0
cmp rax, rdx
jne 0x140053ebd
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x69]
mov rdx, r14
lea rbx, str.root_hub
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [rbx + rdx*2 + 2]
jne 0x140053c92
add rdx, 2
cmp rdx, 9
je 0x140053cf2
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140053c72
mov rdx, r14
lea rbx, str.root_hub20
nop dword [rax]
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [rbx + rdx*2 + 2]
jne 0x140053cc0
add rdx, 2
cmp rdx, 0xb
je 0x140053d06
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140053ca0
mov rdx, r14
lea rbx, str.root_hub30
nop word [rax + rax]
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [rbx + rdx*2 + 2]
jne 0x140053d1b
add rdx, 2
cmp rdx, 0xb
je 0x140053d10
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
jne 0x140053d1b
jmp 0x140053cd0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
comisd xmm9, xmm0
jbe 0x140053c92
movaps xmm6, xmm8
jmp 0x140053d1b
comiss xmm7, xmm6
jbe 0x140053cc0
movaps xmm6, xmm7
jmp 0x140053d1b
movaps xmm0, xmm10
maxss xmm0, xmm6
movaps xmm6, xmm0
inc r15d
mov dword [rbp + 0x6f], 0x100
lea rdx, [rax - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140053b10
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053ec8
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140053ec8
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140053b10
comiss xmm6, xmm11
jbe 0x140053e39
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x140053ef1
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, rdi
jne 0x140053efc
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rbp + 0x7f], rax
xorps xmm2, xmm2
cvtss2sd xmm2, xmm6
movq r8, xmm2
lea rdx, str._.1f
lea rcx, [rbp + 0x7f]
call fcn.14004d920
mov rbx, qword [rbp + 0x7f]
mov r9, rbx
xor r8d, r8d
mov edx, 0x115b4
mov rcx, qword [r12]
call fcn.14001fdd0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140053e39
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053ead
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140053ead
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x140053e46
mov rcx, rsi
call fcn.14008c210
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140053e59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x51], r13
mov dword [rbp - 0x49], r13d
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140053e70
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x51], r13
mov dword [rbp - 0x49], r13d
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call r8
nop
jmp 0x140053e39
mov rcx, rax
call rdx
jmp 0x140053b6a
mov rdx, rbx
call r8
jmp 0x140053c64
call r8
jmp 0x140053b10
mov ecx, 0x80070057
call fcn.140002d3c
int3
mov ecx, 0x80070057
call fcn.140002d3c
nop
mov ecx, 0x80004005
call fcn.140002d3c
int3
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x140053daf