Function at 0x4406e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x130]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push 0x64
push 0
push eax
mov dword [ebp - 0x354], ebx
mov dword [ebp - 0x350], edi
call fcn.0040f160
push 0x20a
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x348], 0
push 0
push eax
call fcn.0040f160
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.0040f160
mov ecx, edi
mov dword [ebp - 0x340], 0
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440760
sub ecx, edx
mov eax, 0x63
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x130]
push 0x32
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x4407b4
push str.cant_convert_class_guid_to_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x33c]
push 0x105
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
push 3
push 0
lea eax, [ebp - 0x33c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44081f
push eax
lea eax, [ebp - 0x33c]
push eax
push str.VmkbdDriverManager::ModifyFilters:_couldnt_open__S:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x340]
push eax
push 0
push ebx
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x44087d
push dword [ebp - 0x344]
push eax
push ebx
push str.VmkbdDriverManager::ModifyFilters:_couldnt_query_class_filter_key__S:_0x_08x_len__d
push 1
call fcn.004439a0
add esp, 0x14
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x340]
cmp eax, 7
je 0x44089b
push eax
push ebx
push str.VmkbdDriverManager::ModifyFilters:_class_filter_key__S_is_unexpected_type:__d
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x44085e
mov ecx, dword [ebp - 0x344]
shr ecx, 1
mov dword [ebp - 0x344], ecx
lea eax, [ecx + ecx]
cmp eax, 0xc8
jae 0x440b0a
xor edx, edx
mov word [ebp + eax - 0xcc], dx
add eax, 2
cmp eax, 0xc8
jae 0x440b0a
mov word [ebp + eax - 0xcc], dx
lea edi, [ebp - 0xcc]
mov edx, dword [ebp - 0x350]
xor esi, esi
lea ebx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4408f0
sub edx, ebx
xor al, al
sar edx, 1
mov byte [ebp - 0x349], al
lea ebx, [edx + 1]
cmp word [ebp - 0xcc], si
je 0x4409cc
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440920
push dword [ebp - 0x350]
sub ecx, edx
sar ecx, 1
inc ecx
push edi
mov dword [ebp - 0x358], ecx
call fcn.0040ca9a
add esp, 8
test eax, eax
jne 0x4409ab
cmp dword [ebp + 8], eax
jne 0x440a74
mov ecx, dword [ebp - 0x344]
lea eax, [ebx + esi]
cmp ecx, eax
jbe 0x440979
sub ecx, ebx
lea eax, [edi + ebx*2]
sub ecx, esi
add ecx, ecx
push ecx
push eax
push edi
call fcn.0048ddd0
mov ecx, dword [ebp - 0x344]
add esp, 0xc
lea eax, [ebx + ebx]
sub ecx, ebx
push eax
lea eax, [ebp - 0xcc]
push 0
lea eax, [eax + ecx*2]
push eax
call fcn.0040f160
mov ecx, dword [ebp - 0x344]
add esp, 0xc
sub ecx, ebx
mov al, 1
mov dword [ebp - 0x344], ecx
mov byte [ebp - 0x349], al
jmp 0x4409c2
mov eax, dword [ebp - 0x358]
add esi, eax
mov ecx, dword [ebp - 0x344]
lea edi, [edi + eax*2]
mov al, byte [ebp - 0x349]
cmp word [edi], 0
jne 0x440917
inc esi
cmp dword [ebp + 8], 0
je 0x440aac
cmp esi, ecx
je 0x4409ec
push esi
push ecx
push str.VmkbdDriverManager::ModifyFilters:_Registry_length__u___computed_length__u
push 2
call fcn.004439a0
add esp, 0x10
mov eax, 0x64
sub eax, esi
push eax
push dword [ebp - 0x350]
lea eax, [ebp + esi*2 - 0xce]
push eax
call fcn.0047bd42
add esp, 0xc
add esi, ebx
mov edi, dword [ebp - 0x354]
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0xcc]
push eax
push 7
push 0
push edi
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x348]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x440ae5
push dword [ebp - 0x344]
push esi
push edi
push str.VmkbdDriverManager::ModifyFilters:_Couldnt_update_class_filter_key__S:_0x_08x
push 1
call fcn.004439a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x354]
push edi
push str.VmkbdDriverManager::ModifyFilters:_Desired_entry_already_in_class_key__S
push 2
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
test al, al
jne 0x440a0c
push str.VmkbdDriverManager::ModifyFilters:_Didnt_find_a_service_name_in_key_to_remove
push 2
call fcn.004439a0
add esp, 8
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VmkbdDriverManager::ModifyFilters:_updated_filter_key
push 0x10
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
call fcn.00401d25
int3