Function at 0x1000fe70
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 esi, dword [ebp + 0x20]
mov dword [ebp - 0x10], 0
test byte [0x1001a0b8], 8
jne 0x10010080
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test ebx, ebx
je 0x10010060
cmp dword [0x10021004], ebx
jb 0x10010060
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 0x10010070
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 0x1000ff8f
test byte [0x1001a0b8], 8
jne 0x100100e0
mov eax, dword [ebx]
test eax, eax
je 0x1000ffa0
lea edx, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x10010120
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 dword [sym.imp.advapi32.dll_RegOpenKeyA]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000ffa0
test byte [0x1001a0b8], 4
jne 0x10010140
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 + 0x1c]
mov dword [esi], eax
mov eax, dword [ebx]
test eax, eax
je 0x10010138
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], esi
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, 0xea
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x18
mov esi, eax
or esi, 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 0x1000ff8f
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._____ld_n
mov dword [esp + 8], str.GetPrinterDataExA
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 0x1000ff8f
mov eax, dword [ebp + 0x10]
call fcn.10002de0
mov edi, eax
mov eax, dword [ebp + 0xc]
call fcn.10002de0
mov dword [esp + 0x28], esi
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
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.GetPrinterDataExA
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000fe9a
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.GetPrinterDataExA
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
mov eax, dword [ebx]
test eax, eax
jne 0x1000ff1f
jmp 0x1000ffa0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000ff8f
mov eax, dword [ebp - 0x18]
jmp 0x1000ffb2
mov eax, dword [ebp + 0xc]
call fcn.10002de0
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.GetPrinterDataExA
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000ff73