Function at 0x419c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5849d3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5eb770]
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
mov esi, ecx
push str.WIToolQueryMonitorFile
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x84], esi
call fcn.0044ca70
add esp, 0xc
push ebx
push esi
push str.lpFile___s__lpMonName___s
lea eax, [ebp - 0x8c]
push 1
push eax
mov dword [ebp - 4], 0
call fcn.0044cd10
mov ecx, 0x18
mov esi, str.SystemCurrentControlSetControlPrintMonitors_
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
add esp, 0x14
lea ecx, [ebp - 0x78]
movsw word es:[edi], word [esi]
xor edi, edi
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], 0x104
mov dword [ebp - 0x80], edi
call fcn.00403340
mov byte [ebp - 4], 1
cmp ebx, edi
jne 0x419cd9
xor eax, eax
jmp 0x419cef
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x419ce0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040fb30
mov ecx, dword [ebp - 0x7c]
mov esi, dword [ecx - 0xc]
cmp esi, edi
jge 0x419d0d
push 0x80070057
call fcn.004025a0
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x419d2a
push esi
lea ecx, [ebp - 0x7c]
call fcn.00403a70
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp - 0x80]
push edx
push 0x20019
push edi
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.00558a2b
add esp, 8
cmp eax, edi
jl 0x419d03
mov ecx, dword [ebp - 0x7c]
cmp eax, dword [ecx - 8]
jg 0x419d03
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, edi
je 0x419dcc
mov ecx, dword [ebp - 0x84]
push edi
push str.return___08x
lea edx, [ebp - 0x8c]
xor eax, eax
push 2
push edx
mov word [ecx], ax
call fcn.0044cd10
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 0x419db3
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.0044cc70
xor eax, eax
jmp 0x419e59
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 edi
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419dfa
lea esi, [eax + 1]
jmp 0x419e01
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.0044cd10
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 0x419e45
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.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret