Function at 0x4014ab
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.00402f70
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x401797
cmp dword [ebp + 0xc], esi
je 0x401797
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlPrintPrinters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401797
push ebx
push edi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jbe 0x40178b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x1074]
mov dword [ebp - 8], 0x410
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
xor edi, edi
push eax
push edi
push edi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x1074]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40175e
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x1074]
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40175e
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Status
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401759
test byte [ebp - 0x24], 4
jne 0x401759
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Printer_Driver
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401759
mov ecx, 0x82
lea edi, [ebp - 0x64c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x64c]
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x64c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401759
mov ecx, 0x82
lea edi, [ebp - 0x854]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Monitor
mov dword [ebp - 8], 0x208
push dword [ebp - 0x1c]
call ebx
test eax, eax
je 0x40166d
push dword [ebp - 0x1c]
jmp 0x401686
lea eax, [ebp - 0x854]
push str.CNAB4_Monitor
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp - 0x1c]
test eax, eax
je 0x40168d
call esi
jmp 0x401759
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Attributes
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401759
test byte [ebp - 0x28], 8
je 0x401720
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Share_Name
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401759
cmp word [ebp - 0xa5c], di
je 0x401720
lea eax, [ebp - 0xa5c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x410
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Name
push dword [ebp - 4]
jne 0x40173f
call ebx
jmp 0x401755
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x410
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.Name
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401759
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40176f
push dword [ebp - 4]
call esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x401526
jmp 0x40178b
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], 1
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
jmp 0x401799
xor eax, eax
pop esi
leave
ret 8