Function at 0x4c6db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1418]
mov eax, 0x1418
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51ba48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1420]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], edx
mov esi, dword [ebp + 0x1424]
mov edi, dword [ebp + 0x142c]
mov eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0xffffffff
xor ebx, ebx
mov dword [ebp], ebx
mov byte [ebp + 4], bl
mov dword [ebp + 8], ebx
push 0x800
push ebx
lea eax, [ebp + 0xc]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
jne 0x4c6e5d
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp]
call fcn.00491f30
jmp 0x4c708e
push 0x800
push ebx
lea ecx, [ebp + 0x80c]
push ecx
call fcn.004fd670
mov edx, dword [ebp + 0x1428]
push edx
push str.InstallingWSPFoundPrinter_d
lea edx, [ebp + 0x80c]
call fcn.00404380
add esp, 0x14
mov eax, dword [ebp - 0x20]
push eax
lea ebx, [ebp + 0x80c]
lea eax, [ebp]
call fcn.00491f50
test eax, eax
je 0x4c6eb1
push str.Fail____registry_init_in_CCI3DeviceIO::WriteFoundPrinterData.
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
test esi, esi
je 0x4c6ee3
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c6ec0
sub eax, edx
sar eax, 1
je 0x4c6ee3
push 0x546bf8
push 0
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.00419d10
test edi, edi
je 0x4c6f13
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c6ef0
sub eax, edx
sar eax, 1
je 0x4c6f13
push str.ExtDeviceID
push 0
lea edx, [ebp]
push edx
mov ecx, edi
call fcn.00419d10
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4c6f43
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c6f20
sub eax, esi
sar eax, 1
je 0x4c6f43
push str.DevicePath
push 0
lea eax, [ebp]
push eax
mov ecx, edx
call fcn.00419d10
mov edi, dword [ebp - 0x18]
cmp edi, 0xffffffff
je 0x4c701b
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
push str.Port_Number
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x4c701b
cmp dword [ebp - 0x24], 0xffffffff
je 0x4c701b
push 0x200
push eax
lea ecx, [ebp + 0x1214]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x1c], 0x200
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x1214]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push str.Base_Name
push edi
call esi
test eax, eax
je 0x4c6fd4
push 0xff
push 0x53e208
push pe_nt_image_headers32
lea edx, [ebp + 0x1214]
push edx
call fcn.004fa71b
add esp, 0x10
push 0x208
push 0
lea eax, [ebp + 0x100c]
push eax
call fcn.004fd670
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp + 0x1214]
push edx
push str._s_03d
lea edx, [ebp + 0x100c]
call fcn.00450c20
add esp, 0x18
push str.Port
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x100c]
call fcn.00419d10
push 4
push 4
lea ecx, [ebp - 0x14]
push ecx
push str.Total
mov esi, dword [ebp - 0x20]
push esi
mov edx, str.InstallingWSPFoundPrinter
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x4c7043
add dword [ebp - 0x14], 1
jmp 0x4c704a
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
push 0
push 4
push 4
push str.Total
push esi
lea ecx, [ebp - 0x18]
mov edx, str.InstallingWSPFoundPrinter
call fcn.004924c0
add esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp + 4], 0
je 0x4c708e
mov eax, dword [ebp]
test eax, eax
je 0x4c708e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1414]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1418
mov esp, ebp
pop ebp
ret 0x10