Function at 0x41d8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564813
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5c0490]
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.00401190
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.00401410
mov ecx, 0x18
mov esi, str.SystemCurrentControlSetControlPrintMonitors_
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
add esp, 0x14
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x78]
xor edi, edi
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], 0x104
mov dword [ebp - 0x80], edi
call fcn.00404f00
mov byte [ebp - 4], 1
cmp ebx, edi
jne 0x41d978
xor eax, eax
jmp 0x41d98f
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41d980
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040a930
mov ecx, dword [ebp - 0x7c]
mov esi, dword [ecx - 0xc]
cmp esi, edi
jge 0x41d9ad
push 0x80070057
call fcn.00404160
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x41d9ca
push esi
lea ecx, [ebp - 0x7c]
call fcn.00405520
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
push eax
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.0053dae6
add esp, 8
cmp eax, edi
jl 0x41d9a3
mov ecx, dword [ebp - 0x7c]
cmp eax, dword [ecx - 8]
jg 0x41d9a3
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, edi
je 0x41da6c
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.00401410
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 0x41da53
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.00401370
xor eax, eax
jmp 0x41daf9
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 0x41da9a
lea esi, [eax + 1]
jmp 0x41daa1
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.00401410
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 0x41dae5
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.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret