Function at 0x446ae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ee9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x677010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0x20019
push str.systemcurrentcontrolsetenumusb
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00436690
test eax, eax
jne 0x446ed5
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x100
xor edi, edi
movss dword [ebp - 0x10], xmm0
push 0x202
mov dword [ebp - 0x1c], edi
call fcn.00476ee6
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
nop dword [eax]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x446e43
call fcn.0040cc25
test eax, eax
je 0x446e5c
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x446bb4
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x446bb8
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d370
test al, al
jne 0x446bf9
test ebx, ebx
jne 0x446bd7
xor ecx, ecx
jmp 0x446bef
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446be0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x14]
call fcn.004020e3
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x446e39
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x446c28
push edi
lea ecx, [ebp - 0x14]
call fcn.00401fda
mov esi, dword [ebp - 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.005c9138
add esp, 8
cmp edi, dword [esi - 8]
jg 0x446e39
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
mov ecx, dword [edi]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x446c5a
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x446c6e
cmp ecx, dword [edi]
jne 0x446c6e
mov esi, edi
lock inc dword [ebx]
jmp 0x446c9d
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x446e34
mov ecx, dword [edi + 4]
lea eax, [esi + 0x10]
mov dword [esi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [edi + 4]
inc edx
push edx
push ecx
push edx
push eax
call fcn.004021b7
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x446ce0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x446cde
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x446cde
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x446ce0
call edx
mov ecx, str.root_hub
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446d0d
test dx, dx
je 0x446d09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446d0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x446ce7
xor eax, eax
jmp 0x446d12
sbb eax, eax
or eax, 1
movss xmm1, dword [ebp - 0x10]
test eax, eax
sete al
test al, al
je 0x446d3e
movsd xmm2, qword [0x6442f0]
cvtps2pd xmm0, xmm1
comisd xmm2, xmm0
jbe 0x446d3e
movss xmm0, dword [0x6442e8]
jmp 0x446dd0
mov ecx, str.root_hub20
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446d6b
test dx, dx
je 0x446d67
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446d6b
add eax, 4
add ecx, 4
test dx, dx
jne 0x446d45
xor eax, eax
jmp 0x446d70
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x446d86
movss xmm0, dword [0x644300]
comiss xmm0, xmm1
ja 0x446dd0
mov ecx, str.root_hub30
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446db6
test dx, dx
je 0x446db2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446db6
add eax, 4
add ecx, 4
test dx, dx
jne 0x446d90
xor eax, eax
jmp 0x446dbb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x446dd5
movss xmm0, dword [0x644318]
maxss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
mov edi, dword [ebp - 0x1c]
add esi, 0xfffffff0
inc edi
mov dword [ebp - 0x20], 0x100
mov dword [ebp - 0x1c], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
mov ebx, dword [ebp - 0x18]
test eax, eax
jg 0x446b70
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x446e2c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x446e2c
push esi
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x446b70
push esi
call edx
jmp 0x446b70
call fcn.004021ac
push 0x80070057
call fcn.004022e2
movss xmm0, dword [ebp - 0x10]
comiss xmm0, dword [0x6442dc]
jbe 0x446ec8
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x446e66
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x446e7b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x446e7d
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
movss xmm0, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
cvtps2pd xmm0, xmm0
sub esp, 8
mov byte [ebp - 4], 6
movsd qword [esp], xmm0
push str._.1f
push eax
call fcn.00443a90
mov ecx, dword [ebp - 0x24]
add esp, 0x10
push dword [ebp - 0x18]
mov ecx, dword [ecx]
push 0
push 0x115b4
call fcn.0041aa40
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040d260
test ebx, ebx
je 0x446ed5
push ebx
call fcn.00476ee1
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x446eea
push eax
call esi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x446f06
push eax
call esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret