Function at 0x10023a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041e60
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
push str.GetPrinterData2kHelper_____Start
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], eax
call fcn.10027780
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x10023a9f
push 0x57
push str.GetPrinterData2kHelper_____End__d_
call fcn.10027780
add esp, 8
lea eax, [ebx + 0x57]
jmp 0x10023d61
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
xor edx, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x7c], ebx
push ebx
push esi
mov byte [ebp - 4], 3
call fcn.10023060
add esp, 8
cmp eax, 1
jne 0x10023b5c
push ebx
push str.GetPrinterData2kHelper_____End__d_
call fcn.10027780
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.10022f30
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10023b16
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1002a9de
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x10023b38
mov eax, dword [ebp - 0x48]
push eax
call fcn.1002a9de
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x10023b55
mov edx, dword [ebp - 0x64]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
jmp 0x10023d61
push 0x2f
push str.SYSTEMCurrentControlSetControlPrintPrinters
lea ecx, [ebp - 0x64]
call fcn.10001820
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10023b70
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.10001820
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10023b90
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.10001820
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x10023bb9
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x6c]
push ecx
push 0x20019
push ebx
push eax
push SysStringLen
call esi
test eax, eax
jne 0x10023cbc
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x10023be4
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x74]
push edx
push 0x20019
push ebx
push eax
mov eax, dword [ebp - 0x6c]
push eax
call esi
test eax, eax
jne 0x10023cbc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10023c08
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
push ebx
push eax
push edx
call esi
test eax, eax
jne 0x10023cbc
mov edx, dword [ebp - 0x80]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x68]
push ebx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push edx
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
call edi
mov ecx, dword [ebp - 0x70]
inc ecx
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10023cb5
mov ecx, dword [ebp - 0x80]
lea edx, [ebp - 0x70]
push edx
mov edx, dword [ebp - 0x68]
push esi
lea eax, [ebp - 0x78]
push eax
push ebx
push ecx
push edx
call edi
mov edi, eax
cmp edi, ebx
jne 0x10023c9c
mov eax, dword [ebp - 0x70]
cmp byte [esi + eax - 1], bl
je 0x10023c7f
inc eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x88]
mov dword [ecx], esi
mov dword [edx], eax
jmp 0x10023cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10023cc4
mov edi, 8
jmp 0x10023cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10023cd7
push eax
call esi
mov dword [ebp - 0x68], ebx
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x10023ce4
push eax
call esi
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
je 0x10023cf1
push eax
call esi
mov dword [ebp - 0x6c], ebx
push edi
push str.GetPrinterData2kHelper_____End__d_
call fcn.10027780
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.10022f30
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10023d1d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1002a9de
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x10023d3e
mov edx, dword [ebp - 0x48]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x10023d5f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1002a9de
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret