Function at 0x1400535e0
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.14003e230
test eax, eax
jne 0x1400539e6
xorps xmm11, xmm11
xorps xmm6, xmm6
mov r15d, r13d
mov dword [rbp + 0x6f], 0x100
mov ecx, 0x202
call fcn.14008ba98
mov rsi, rax
lea rdi, vtable.ATL::CAtlStringMgr.0
lea r14, [r13 - 1]
movsd xmm9, qword [0x1402f92b8]
movss xmm8, dword [0x1402f92b0]
movss xmm7, dword [0x1402f92c8]
movss xmm10, dword [0x1402f92e0]
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 0x14005391c
call fcn.140011f18
test rax, rax
je 0x140053a86
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
cmp rcx, rdi
jne 0x140053a53
lock inc dword [rax + 0x20]
add rax, 0x10
add rax, 0x18
mov qword [rbp + 0x77], rax
test rsi, rsi
je 0x14005373d
cmp rsi, 0x10000
jae 0x14005372e
movzx edx, si
lea rcx, [rbp + 0x77]
call fcn.140012700
jmp 0x140053750
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x140053731
jmp 0x140053740
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 0x140053a7b
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140053780
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.140237e3c
cmp edi, dword [rbx - 0xc]
jg 0x140053a70
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 0x140053804
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053a5d
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea rdx, vtable.ATL::CWin32Heap.0
cmp rax, rdx
jne 0x140053a5d
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 0x140053832
add rdx, 2
cmp rdx, 9
je 0x140053892
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140053812
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 0x140053860
add rdx, 2
cmp rdx, 0xb
je 0x1400538a6
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
je 0x140053840
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 0x1400538bb
add rdx, 2
cmp rdx, 0xb
je 0x1400538b0
movzx ecx, word [rax + rdx*2]
cmp cx, word [rbx + rdx*2]
jne 0x1400538bb
jmp 0x140053870
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
comisd xmm9, xmm0
jbe 0x140053832
movaps xmm6, xmm8
jmp 0x1400538bb
comiss xmm7, xmm6
jbe 0x140053860
movaps xmm6, xmm7
jmp 0x1400538bb
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 0x1400536b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053a68
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140053a68
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400536b0
comiss xmm6, xmm11
jbe 0x1400539d9
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x140053a91
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, rdi
jne 0x140053a9c
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.14004d730
mov rbx, qword [rbp + 0x7f]
mov r9, rbx
xor r8d, r8d
mov edx, 0x115b4
mov rcx, qword [r12]
call fcn.14001fd40
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400539d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x140053a4d
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x140053a4d
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x1400539e6
mov rcx, rsi
call fcn.14008ba90
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x1400539f9
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 0x140053a10
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 0x1400539d9
mov rcx, rax
call rdx
jmp 0x14005370a
mov rdx, rbx
call r8
jmp 0x140053804
call r8
jmp 0x1400536b0
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 0x14005394f