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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x44c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x208
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004048b0
add esp, 0xc
lea eax, [ebp - 0x248]
xorps xmm0, xmm0
movups xmmword [ebp - 0x21c], xmm0
push eax
push str.Class
push str.Version
push esi
movups xmmword [ebp - 0x248], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x402760
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x402760
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push 0x10
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameExW]
test eax, eax
je 0x402760
push ebx
push ebx
push 1
push 0x2001f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKeyExW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x402760
mov ecx, dword [ebp - 0x228]
xor esi, esi
push edi
mov dword [ebp - 0x22c], 7
xor edi, edi
mov dword [ebp - 0x220], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x224], eax
nop
push edi
call fcn.00402fb5
mov eax, dword [ebp - 0x220]
mov edx, 2
mov ecx, dword [ebp - 0x224]
add ecx, 2
shr eax, 1
add eax, ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402fac
mov edi, eax
add esp, 8
test edi, edi
je 0x402582
lea eax, [ebp - 0x220]
push eax
push edi
lea eax, [ebp - 0x22c]
push eax
push 0
push str.UpperFilters
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x402582
cmp dword [ebp - 0x22c], 7
je 0x402510
jmp 0x40274a
test esi, esi
jne 0x40274a
mov esi, edi
cmp dword [ebp + 0x10], ebx
je 0x4026a7
lea eax, [ebp - 0x20c]
push str.keyboard
push eax
call fcn.0040cfd0
add esp, 8
test eax, eax
jne 0x4025b9
mov dword [ebp - 0x238], str.kbdclass
jmp 0x4025df
lea eax, [ebp - 0x20c]
push str.mouse
push eax
call fcn.0040cfd0
add esp, 8
test eax, eax
jne 0x40274a
mov dword [ebp - 0x238], str.mouclass
cmp word [edi], bx
je 0x40274a
nop dword [eax + eax]
push dword [ebp - 0x228]
push esi
call fcn.0040cfd0
add esp, 8
test eax, eax
je 0x40269d
push dword [ebp - 0x238]
push esi
call fcn.0040cfd0
add esp, 8
test eax, eax
je 0x40263f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402620
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
jne 0x4025f0
jmp 0x40274a
mov eax, dword [ebp - 0x220]
sub eax, esi
add eax, edi
push eax
mov eax, dword [ebp - 0x224]
add eax, esi
push esi
push eax
call fcn.00404330
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push esi
call fcn.00403db0
mov eax, dword [ebp - 0x220]
add esp, 0x18
add eax, dword [ebp - 0x224]
push eax
push edi
push dword [ebp - 0x22c]
push 0
push str.UpperFilters
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40274a
mov ebx, 1
jmp 0x40274a
cmp word [edi], 0
mov ebx, 1
je 0x40274a
nop word [eax + eax]
push dword [ebp - 0x228]
push esi
call fcn.0040cfd0
add esp, 8
test eax, eax
je 0x4026fc
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026e0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x4026c0
jmp 0x40274a
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
sub eax, esi
sub eax, ecx
add eax, edi
push eax
lea eax, [esi + ecx]
push eax
push esi
call fcn.00403db0
mov eax, dword [ebp - 0x220]
add esp, 0xc
sub eax, dword [ebp - 0x224]
push eax
push edi
push dword [ebp - 0x22c]
push 0
push str.UpperFilters
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
push edi
call fcn.00402fb5
add esp, 4
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f9b
mov esp, ebp
pop ebp
ret 0xc