Function at 0x10061980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1418]
mov eax, 0x1418
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e6eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10144930]
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.100c7d20
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
jne 0x10061a2d
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp]
call fcn.10044070
jmp 0x10061c5c
push 0x800
push ebx
lea ecx, [ebp + 0x80c]
push ecx
call fcn.100c7d20
mov edx, dword [ebp + 0x1428]
push edx
push str.InstallingWSPFoundPrinter_d
lea edx, [ebp + 0x80c]
call fcn.10005c50
add esp, 0x14
mov eax, dword [ebp - 0x20]
push eax
lea ebx, [ebp + 0x80c]
lea eax, [ebp]
call fcn.10044090
test eax, eax
je 0x10061a81
push str.Fail____registry_init_in_CCI3DeviceIO::WriteFoundPrinterData.
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
test esi, esi
je 0x10061ab3
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061a90
sub eax, edx
sar eax, 1
je 0x10061ab3
push str.DeviceID
push 0
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.1000c780
test edi, edi
je 0x10061ae3
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061ac0
sub eax, edx
sar eax, 1
je 0x10061ae3
push str.ExtDeviceID
push 0
lea edx, [ebp]
push edx
mov ecx, edi
call fcn.1000c780
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x10061b13
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061af0
sub eax, esi
sar eax, 1
je 0x10061b13
push str.DevicePath
push 0
lea eax, [ebp]
push eax
mov ecx, edx
call fcn.1000c780
mov edi, dword [ebp - 0x18]
cmp edi, 0xffffffff
je 0x10061beb
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 0x10061beb
cmp dword [ebp - 0x24], 0xffffffff
je 0x10061beb
push 0x200
push eax
lea ecx, [ebp + 0x1214]
push ecx
call fcn.100c7d20
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 0x10061ba4
push 0xff
push 0x10109b60
push 0x100
lea edx, [ebp + 0x1214]
push edx
call fcn.100c6041
add esp, 0x10
push 0x208
push 0
lea eax, [ebp + 0x100c]
push eax
call fcn.100c7d20
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp + 0x1214]
push edx
push str._s_03d
lea edx, [ebp + 0x100c]
call fcn.10044050
add esp, 0x18
push str.Port
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x100c]
call fcn.1000c780
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.10044220
add esp, 0x14
test eax, eax
jne 0x10061c13
add dword [ebp - 0x14], 1
jmp 0x10061c1a
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
push 4
push 4
push str.Total
push esi
lea ecx, [ebp - 0x18]
mov edx, str.InstallingWSPFoundPrinter
call fcn.100443e0
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp + 4], 0
je 0x10061c5c
mov eax, dword [ebp]
test eax, eax
je 0x10061c5c
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.100c59be
add ebp, 0x1418
mov esp, ebp
pop ebp
ret 0x10