Function at 0x435e30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6d58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x645154]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x20019
push str.systemcurrentcontrolsetenumusb
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0042a080
mov esi, dword [ebp - 0x38]
test eax, eax
jne 0x436178
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x100
xor ebx, ebx
movss dword [ebp - 0x10], xmm0
push 0x202
mov dword [ebp - 0x14], ebx
call fcn.0044fc06
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
jmp 0x435ec4
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4360e3
push edi
lea ecx, [ebp - 0x20]
call fcn.0040d2c0
mov edi, eax
mov eax, dword [edi]
mov byte [ebp - 4], 1
mov esi, dword [eax - 0xc]
test esi, esi
js 0x4360d9
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x435f18
push esi
mov ecx, edi
call fcn.00402ab5
lea eax, [esi + 1]
push eax
push dword [edi]
call fcn.005a7fe9
mov eax, dword [edi]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4360d9
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
mov ebx, dword [edi]
mov ecx, dword [ebx - 0x10]
lea esi, [ebx - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x435f5d
cmp ecx, dword [esi]
jne 0x435f5d
lock inc dword [eax]
jmp 0x435f96
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x4360d4
mov ecx, dword [edi]
mov dword [esi + 4], ecx
mov eax, dword [edi]
lea ecx, [eax*2 + 2]
push ecx
lea eax, [eax*2 + 2]
push ebx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00413250
add esp, 0x10
mov edx, dword [ebp - 0x20]
or edi, 0xffffffff
add esi, 0x10
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435fba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, str.root_hub
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435fe7
test dx, dx
je 0x435fe3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435fe7
add eax, 4
add ecx, 4
test dx, dx
jne 0x435fc1
xor eax, eax
jmp 0x435fec
sbb eax, eax
or eax, 1
movss xmm1, dword [ebp - 0x10]
test eax, eax
jne 0x436013
movsd xmm2, qword [0x5dde08]
cvtps2pd xmm0, xmm1
comisd xmm2, xmm0
jbe 0x436013
movss xmm0, dword [0x5dde04]
jmp 0x43609e
mov ecx, str.root_hub20
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436046
test dx, dx
je 0x436042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436046
add eax, 4
add ecx, 4
test dx, dx
jne 0x436020
xor eax, eax
jmp 0x43604b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43605c
movss xmm0, dword [0x5dde10]
comiss xmm0, xmm1
ja 0x43609e
mov ecx, str.root_hub30
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436089
test dx, dx
je 0x436085
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436089
add eax, 4
add ecx, 4
test dx, dx
jne 0x436063
xor eax, eax
jmp 0x43608e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4360a3
movss xmm0, dword [0x5dde14]
maxss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
mov ebx, dword [ebp - 0x14]
add esi, 0xfffffff0
inc ebx
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 0x14], ebx
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
mov edi, dword [ebp - 0x1c]
test eax, eax
jg 0x435ec1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x435ec1
call fcn.00402a72
push 0x80070057
call fcn.00402c5b
movss xmm0, dword [ebp - 0x10]
comiss xmm0, dword [0x5dbe40]
jbe 0x43616b
call fcn.0040cee5
mov ecx, eax
test ecx, ecx
jne 0x436106
push 0x80004005
call fcn.00402c5b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
movss xmm0, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
cvtps2pd xmm0, xmm0
sub esp, 8
mov byte [ebp - 4], 2
movsd qword [esp], xmm0
push str._.1f
push eax
call fcn.00435880
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
add esp, 0x10
push eax
push 0
push 0x115b4
call fcn.0044c230
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x436168
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x38]
test edi, edi
je 0x436178
push edi
call fcn.0044fc01
add esp, 4
test esi, esi
je 0x436183
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret