Function at 0x460e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
call fcn.00473800
and eax, 0x15
je 0x460e5d
mov dword [ebp - 8], str.Standard_TCP_IP_Port
jmp 0x460e79
call fcn.00473800
and eax, 0x80f800
je 0x460e72
mov dword [ebp - 8], 0x4e3248
jmp 0x460e79
xor eax, eax
jmp 0x46111c
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.004609e0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
jmp 0x460ea0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jge 0x460fe3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 8]
push edx
call fcn.0048a3e0
add esp, 8
test eax, eax
jne 0x460fde
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
push 0x4c82e8
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x418]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x460fde
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x52c], 0x104
lea edx, [ebp - 0x52c]
push edx
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460fd1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x528]
push eax
call fcn.0048a3e0
add esp, 8
test eax, eax
jne 0x460fd1
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x460fa0
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00489ae0
add esp, 8
jmp 0x460fca
push 0x4c82f0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00489af0
add esp, 8
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00489af0
add esp, 8
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x460e97
cmp dword [ebp - 0xc], 0
je 0x461119
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
lea ecx, [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x534]
push edx
push 0
push 0
push 5
push 0
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x461119
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x461119
mov eax, dword [ebp - 0x534]
push eax
call fcn.0048a9a4
add esp, 4
mov dword [ebp - 0x530], eax
cmp dword [ebp - 0x530], 0
je 0x461119
lea ecx, [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x534]
push edx
mov eax, dword [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x530]
push ecx
push 5
push 0
push 2
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x46110a
mov dword [ebp - 0x540], 0
jmp 0x4610ae
mov edx, dword [ebp - 0x540]
add edx, 1
mov dword [ebp - 0x540], edx
mov eax, dword [ebp - 0x540]
cmp eax, dword [ebp - 0x53c]
jae 0x46110a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x540]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x530]
mov ecx, dword [eax + edx + 4]
push ecx
call fcn.0048a3e0
add esp, 8
test eax, eax
jne 0x461108
mov edx, dword [ebp - 0x540]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x530]
mov ecx, dword [eax + edx]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00489ae0
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x46110a
jmp 0x46109f
mov eax, dword [ebp - 0x530]
push eax
call fcn.00488f35
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret