Function at 0x411a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5b8
push ebx
push ebp
push esi
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push ebx
push ebx
push 3
mov edi, 1
push ebx
push edi
push 0xc0000000
push str..HWUSBPEN
mov word [esp + 0x30], bx
mov word [esp + 0x32], bx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x411bf2
push ebx
push ebx
push 3
push ebx
push edi
push 0xc0000000
push str..HWTABLET
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x411bf2
lea eax, [esp + 0x24]
push eax
call fcn.00411960
xor esi, esi
cmp eax, ebx
jle 0x411b4d
lea edx, [esp + 0x24]
mov cx, word [edx + 2]
cmp cx, 0xb57
jne 0x411a89
cmp word [edx], 0x8004
je 0x411bdf
cmp cx, 0x4b4
jne 0x411aab
cmp word [edx], 0x3040
je 0x411bdf
cmp cx, cx
jne 0x411aab
cmp word [edx], 0x3043
je 0x411bdf
cmp cx, 0xb57
jne 0x411b41
cmp word [edx], 0x800d
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x9911
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x8105
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x7200
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x7211
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x7222
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x8103
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x8107
je 0x411bdf
cmp cx, cx
jne 0x411b41
cmp word [edx], 0x8304
je 0x411bdf
inc esi
add edx, 4
cmp esi, eax
jl 0x411a73
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xb4], 2
jne 0x411c73
push ebx
push ebx
push 3
mov edi, 1
push ebx
push edi
push 0xc0000000
push str..HWCOMPEN
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x411d6f
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x20]
push 8
push edx
push ebx
push ebx
push 0x1a2040
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x411bcf
cmp dword [esp + 0x10], edi
jne 0x411bcf
mov bl, byte [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 0x45
jne 0x411d6f
mov dword [0x45f100], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5b8
ret
lea ecx, [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push ebx
push ebx
push 0x222040
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 0x14], 0xb57
jne 0x411b4d
mov ax, word [esp + 0x16]
cmp ax, 0x8004
je 0x411c60
cmp ax, 0x800d
je 0x411c60
cmp ax, 0x9911
je 0x411c60
cmp ax, 0x8105
je 0x411c60
cmp ax, 0x8103
je 0x411c60
cmp ax, 0x7200
je 0x411c60
cmp ax, 0x7211
je 0x411c60
cmp ax, 0x7222
je 0x411c60
cmp ax, 0x8304
jne 0x411b4d
mov dword [0x45f100], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5b8
ret
lea eax, [esp + 0x10]
mov edi, 0x208
push eax
push str.SystemCurrentControlSetServicesVxDHWVPEND
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
mov word [esp + 0x1c4], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x411cc7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1b8]
push ecx
push edx
push ebx
push ebx
push str.StaticVxD
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esp + 0x1b8], bx
je 0x411d6f
lea edx, [esp + 0x3c0]
push str.._
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x1b8]
lea ecx, [esp + 0x3c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push ebx
lea edx, [esp + 0x3d4]
push 0xc0000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x411d6f
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x1c0]
push edi
push ecx
push ebx
push ebx
push 0xb
push esi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x411d4e
cmp dword [esp + 0x18], 1
jne 0x411d4e
mov bl, byte [esp + 0x1b8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 0x45
jne 0x411d6f
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x45f100], eax
pop ebx
add esp, 0x5b8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5b8
ret