Function at 0x140052720
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.14003d370
test eax, eax
jne 0x140052b26
xorps xmm11, xmm11
xorps xmm6, xmm6
mov r15d, r13d
mov dword [rbp + 0x6f], 0x100
mov ecx, 0x202
call fcn.14008ae18
mov rsi, rax
lea rdi, vtable.ATL::CAtlStringMgr.0
lea r14, [r13 - 1]
movsd xmm9, qword [0x1402f8140]
movss xmm8, dword [0x1402f8138]
movss xmm7, dword [0x1402f8150]
movss xmm10, dword [0x1402f8168]
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 0x140052a5c
call fcn.140011b88
test rax, rax
je 0x140052bc6
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
cmp rcx, rdi
jne 0x140052b93
lock inc dword [rax + 0x20]
add rax, 0x10
add rax, 0x18
mov qword [rbp + 0x77], rax
test rsi, rsi
je 0x14005287d
cmp rsi, 0x10000
jae 0x14005286e
movzx edx, si
lea rcx, [rbp + 0x77]
call fcn.140012370
jmp 0x140052890
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x140052871
jmp 0x140052880
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 0x140052bbb
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400528c0
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.1402371bc
cmp edi, dword [rbx - 0xc]
jg 0x140052bb0
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 0x140052944
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140052b9d
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea rdx, vtable.ATL::CWin32Heap.0
cmp rax, rdx
jne 0x140052b9d
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 0x140052972
add rdx, 2
cmp rdx, 9
je 0x1400529d2
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140052952
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 0x1400529a0
add rdx, 2
cmp rdx, 0xb
je 0x1400529e6
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140052980
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 0x1400529fb
add rdx, 2
cmp rdx, 0xb
je 0x1400529f0
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
jne 0x1400529fb
jmp 0x1400529b0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
comisd xmm9, xmm0
jbe 0x140052972
movaps xmm6, xmm8
jmp 0x1400529fb
comiss xmm7, xmm6
jbe 0x1400529a0
movaps xmm6, xmm7
jmp 0x1400529fb
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 0x1400527f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140052ba8
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140052ba8
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400527f0
comiss xmm6, xmm11
jbe 0x140052b19
call fcn.140011b88
mov rcx, rax
test rax, rax
je 0x140052bd1
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, rdi
jne 0x140052bdc
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.14004c870
mov rbx, qword [rbp + 0x7f]
mov r9, rbx
xor r8d, r8d
mov edx, 0x115b4
mov rcx, qword [r12]
call fcn.14001fa50
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140052b19
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140052b8d
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140052b8d
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x140052b26
mov rcx, rsi
call fcn.14008ae10
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140052b39
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 0x140052b50
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 0x140052b19
mov rcx, rax
call rdx
jmp 0x14005284a
mov rdx, rbx
call r8
jmp 0x140052944
call r8
jmp 0x1400527f0
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 0x140052a8f