Function at 0x414c90
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44ab6c
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
mov esi, ecx
push 0x28
xor eax, eax
xor ebx, ebx
push str.SystemCurrentControlSetServicesClass_
lea ecx, [esp + 0x6c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], ax
call fcn.00402450
push 0xffffffffffffffff
push ebx
add esi, 0x44
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x4bc], ebx
call fcn.00402cc0
mov eax, dword [esp + 0x68]
mov esi, 8
cmp dword [esp + 0x7c], esi
jae 0x414d26
lea eax, [esp + 0x68]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x414d55
cmp dword [esp + 0x7c], esi
jb 0x415094
mov edx, dword [esp + 0x68]
push edx
jmp 0x41508c
lea eax, [esp + 0x24]
push eax
call fcn.00410850
push 0x3fe
lea edx, [esp + 0xaa]
xor ecx, ecx
push ebx
mov byte [esp + 0x4b8], 1
push edx
xor esi, esi
mov word [esp + 0xb0], cx
call fcn.00431a80
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xb8]
push edx
push ebx
mov ebp, 0x400
push eax
mov dword [esp + 0x38], ebp
call edi
cmp eax, ebx
jne 0x414e82
lea ecx, [ecx]
xor ecx, ecx
lea eax, [esp + 0xa4]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414de0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x50]
call fcn.00402450
lea eax, [esp + 0x48]
push eax
lea ebx, [esp + 0x28]
mov byte [esp + 0x4b4], 2
call fcn.00410770
mov byte [esp + 0x4b0], 1
cmp dword [esp + 0x60], 8
jb 0x414e33
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042123b
add esp, 4
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0xae]
push eax
inc esi
mov word [esp + 0xb0], dx
call fcn.00431a80
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xb8]
push eax
push esi
push ecx
mov dword [esp + 0x38], ebp
call edi
xor ebx, ebx
test eax, eax
je 0x414dc0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
je 0x415011
mov dword [esp + 0x18], ebx
jmp 0x414eb4
mov ebx, dword [esp + 0x18]
cmp ebp, eax
jb 0x414ec1
call fcn.0042f0b7
mov esi, dword [esp + 0x30]
cmp dword [ebx + esi + 0x18], 8
jb 0x414ece
mov ebx, dword [ebx + esi + 4]
jmp 0x414ed2
lea ebx, [ebx + esi + 4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push 0xf003f
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, 8
mov esi, str.MatchingDeviceId
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0xae]
push edx
movsw word es:[edi], word [esi]
mov word [esp + 0xb0], cx
call fcn.00431a80
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xa8]
push ecx
push 0
push 0
lea edx, [esp + 0x90]
push edx
push eax
mov dword [esp + 0x58], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x20]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414fe4
xor edx, edx
lea eax, [esp + 0xa4]
mov word [esp + 0x4c], dx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414f80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x50]
call fcn.00402450
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x4b8], 3
call fcn.004101c0
test al, al
je 0x414fc8
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [esp + 0x4b0], 1
cmp dword [esp + 0x60], 8
jb 0x414fe4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042123b
add esp, 4
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
add dword [esp + 0x18], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
cmp ebp, eax
jb 0x414eb0
xor ebx, ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x415067
mov edi, dword [esp + 0x34]
cmp eax, edi
je 0x41505e
lea esi, [eax + 0x18]
nop
cmp dword [esi], 8
jb 0x415041
mov eax, dword [esi - 0x14]
push eax
call fcn.0042123b
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x415030
mov eax, dword [esp + 0x30]
push eax
call fcn.0042123b
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0042123b
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x415094
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042123b
add esp, 4
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0042eb3c
add esp, 0x4a0
ret