Function at 0x10010180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
test byte [0x1001a0b8], 8
jne 0x10010390
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test ebx, ebx
je 0x10010370
cmp dword [0x10021004], ebx
jb 0x10010370
mov eax, dword [0x10021008]
mov ebx, dword [eax + ebx*4 - 4]
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test ebx, ebx
je 0x10010380
lea eax, [ebp - 0x18]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x1001029a
test byte [0x1001a0b8], 8
jne 0x100103f8
mov eax, dword [ebx]
test eax, eax
je 0x100102b0
lea edx, [ebp - 0x14]
mov dword [esp + 4], eax
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x10010440
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call esi
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x100102b0
test byte [0x1001a0b8], 4
jne 0x10010460
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx]
test eax, eax
je 0x10010458
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x10], esi
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov esi, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edx, 0xea
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, eax
sub esp, 0x18
or ecx, dword [ebp + 0x18]
cmovne edx, eax
mov eax, dword [ebp - 0x10]
mov edi, edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
test byte [0x1001a0b8], 8
je 0x1001029a
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._____ld_n
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov edi, 6
jmp 0x1001029a
mov eax, dword [ebp + 0x10]
call fcn.10002fe0
mov edi, eax
mov eax, dword [ebp + 0xc]
call fcn.10002fe0
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x28], esi
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x24], edx
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x20], esi
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], str.__p___s___s___p___p___lu___p__n
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x100101a7
mov eax, dword [ebx]
call fcn.10002fe0
mov dword [esp + 0xc], str.printer__name:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
mov eax, dword [ebx]
test eax, eax
jne 0x1001022c
jmp 0x100102b0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1001029a
mov eax, dword [ebp - 0x18]
jmp 0x100102c5
mov eax, dword [ebp + 0xc]
call fcn.10002fe0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Cant_open_subkey__s:__ld_n
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1001027e