Function at 0x4bfd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a667b
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
mov eax, dword [0x608554]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push str.CBaseDlgPrinterSelectDirect::IsPortLinkedWithIPAddress
lea ecx, [ebp - 0xa70]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bfe3e
test byte [ecx + 0x1c], 1
je 0x4bfe02
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d6d08
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1f
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x4bfe3e
test byte [ecx + 0x1c], 1
je 0x4bfe3e
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5d6d08
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x20
call fcn.00430170
add esp, 0x14
xor edi, edi
lea eax, [ebp - 0xa38]
push 0x618
push edi
push eax
mov dword [ebp - 0xa78], edi
mov dword [ebp - 0xa74], edi
mov dword [ebp - 0xa7c], edi
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00571c00
add esp, 0x24
test esi, esi
je 0x4c00d8
test ebx, ebx
je 0x4c00d8
push esi
push str.Standard_TCP_IP_PortPorts_
push str.SystemCurrentControlSetControlPrintMonitors_
push 0x5d09a4
push 0xffffffffffffffff
lea eax, [ebp - 0xa38]
push 0x30c
push eax
call fcn.00437f50
push str.IPAddress
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
add esp, 0x28
lea eax, [ebp - 0xa7c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xa38]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c003d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0xa78], 1
push eax
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa74], 0x208
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa7c]
call esi
test eax, eax
jne 0x4bff61
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bff50
sub ecx, edx
sar ecx, 1
jne 0x4bffb8
push str.HostName
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005746e6
add esp, 0xc
mov dword [ebp - 0xa78], 1
lea eax, [ebp - 0xa74]
mov dword [ebp - 0xa74], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa78]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa7c]
call esi
test eax, eax
jne 0x4bffe0
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00574f99
add esp, 8
test eax, eax
jne 0x4c002f
push dword [ebp - 0xa7c]
lea edi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c008e
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x4c002f
test byte [eax + 0x1c], 2
je 0x4c002f
cmp dword [0x608f68], 8
lea ecx, [ebp - 0xa70]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5d6d08
push esi
mov ecx, 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
push dword [ebp - 0xa7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c008e
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4c0094
test byte [ecx + 0x1c], 2
je 0x4c0094
cmp dword [0x608f68], 8
lea ecx, [ebp - 0xa70]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5d6d08
push esi
mov ecx, 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
mov ecx, dword [0x608f30]
mov byte [ebp - 0xa6c], 1
cmp ecx, 0x608f30
je 0x4c00da
test byte [ecx + 0x1c], 1
je 0x4c00da
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d6d08
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.004018a0
add esp, 0x10
jmp 0x4c00da
xor edi, edi
lea ecx, [ebp - 0xa70]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret 8