Function at 0x140049c90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r13, rcx
xor r14d, r14d
mov dword [rbp - 0x10], r14d
mov qword [rbp - 8], r14
mov qword [rbp - 0x38], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.systemcurrentcontrolsetenumusb
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140049fa7
mov rbx, qword [rbp - 0x38]
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], r14d
mov r15d, r14d
mov r12d, r14d
mov dword [rbp + 0x48], 0x100
mov ecx, 0x202
call fcn.140003bd0
mov rdi, rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x48]
mov r8, rdi
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140049f86
call fcn.140010070
test rax, rax
je 0x140049fd0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp + 0x50], rax
test rdi, rdi
je 0x140049d92
cmp rdi, 0x10000
jae 0x140049d7e
movzx edx, di
lea rcx, [rbp + 0x50]
call fcn.1400108d0
jmp 0x140049da2
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140049d85
jmp 0x140049d95
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.140002b6c
nop
mov rbx, qword [rbp + 0x50]
movsxd rsi, dword [rbx - 0x10]
test esi, esi
js 0x140049fe6
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140049dd2
mov edx, esi
lea rcx, [rbp + 0x50]
call fcn.140002b08
mov rbx, qword [rbp + 0x50]
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14022fa14
cmp esi, dword [rbx - 0xc]
jg 0x140049fe6
mov dword [rbx - 0x10], esi
mov word [rbx + rsi*2], r14w
lea rcx, [rbx - 0x18]
call fcn.140002d2c
lea rsi, [rax + 0x18]
mov qword [rbp - 0x40], rsi
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140049e1f
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsi - 0x10], 0
jl 0x140049f4a
lea rdx, str.VID_
mov rbx, qword [rbp - 0x40]
mov rcx, rbx
call fcn.140224ce8
test rax, rax
je 0x140049f4e
sub rax, rsi
sar rax, 1
cmp eax, 0xffffffff
je 0x140049f4e
cmp dword [rsi - 0x10], 0
jl 0x140049f4e
lea rdx, str.PID_
mov rcx, rbx
call fcn.140224ce8
test rax, rax
je 0x140049f4e
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140049f4e
lea rax, [rbp + 0x58]
mov qword [rbp - 0x20], rax
call fcn.140010070
test rax, rax
je 0x140049fdb
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp + 0x58], rax
test rdi, rdi
je 0x140049edd
cmp rdi, 0x10000
jae 0x140049ec8
movzx edx, di
lea rcx, [rbp + 0x58]
call fcn.1400108d0
jmp 0x140049eed
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x140049ed0
jmp 0x140049ee0
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp + 0x58]
call fcn.140002b6c
nop
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.140049750
test al, al
je 0x140049f4e
mov r8d, dword [0x14032ad68]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x40]
call fcn.14004a3f0
nop
mov r9, qword [rax]
mov r8d, r12d
mov edx, 0x117c2
mov rcx, qword [r13]
call fcn.14001e4c0
inc r12d
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140049f4a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x40]
mov dword [rbp + 0x48], 0x100
inc r15d
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jle 0x140049f74
mov rbx, qword [rbp - 0x38]
jmp 0x140049d10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x38]
jmp 0x140049d10
test rdi, rdi
je 0x140049f93
mov rcx, rdi
call fcn.140003e94
test rbx, rbx
je 0x140049fa3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140049fa7
mov r14, qword [rbp - 0x18]
test r14, r14
je 0x140049fb5
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80070057
call fcn.140002e3c
int3