Function at 0x414b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b9c3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x8c]
mov esi, ecx
push str.WIToolQueryMonitorFile
push eax
mov dword [ebp - 0x84], esi
call fcn.0040ac70
add esp, 0xc
push ebx
push esi
push str.lpFile___s__lpMonName___s
lea ecx, [ebp - 0x8c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
mov ecx, 0x18
mov esi, str.SystemCurrentControlSetControlPrintMonitors_
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
add esp, 0x14
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x7c]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x90], 0x104
call fcn.00401210
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x414bed
xor eax, eax
jmp 0x414c01
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414bf2
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004058b0
mov ecx, dword [ebp - 0x7c]
mov esi, dword [ecx - 0xc]
test esi, esi
jns 0x414c1f
push 0x80070057
call fcn.004010a0
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x414c3c
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401760
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005343a3
add esp, 8
test eax, eax
js 0x414c15
mov ecx, dword [ebp - 0x7c]
cmp eax, dword [ecx - 8]
jg 0x414c15
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x414cdf
mov ecx, dword [ebp - 0x84]
xor eax, eax
push eax
push str.return___08x
lea edx, [ebp - 0x8c]
push 2
push edx
mov word [ecx], ax
call fcn.0040aed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x414d6d
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
push ecx
push esi
lea edx, [ebp - 0x94]
push edx
push 0
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414d0e
lea esi, [eax + 1]
jmp 0x414d15
xor ecx, ecx
mov word [esi], cx
xor esi, esi
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.return___08x
lea eax, [ebp - 0x8c]
push 2
push eax
call fcn.0040aed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414d59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret