Function at 0x4bb900
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1bc
test eax, eax
je 0x4bbc03
and edx, 0x4000
mov dword [ebp - 0x1ac], edx
je 0x4bb962
mov eax, dword [eax]
test eax, eax
je 0x4bbc45
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
cmp edx, 0xffffffff
je 0x4bbb88
mov edi, ebx
xor edi, edx
cmp edi, 0x12345678
jne 0x4bbb88
cmp dword [eax + 0x18], 1
jne 0x4bbb88
mov edi, dword [eax + 4]
test edi, edi
jne 0x4bbb88
mov ebx, dword [0x5bcda4]
test ebx, ebx
je 0x4bba51
mov dword [ebp - 0x1b0], ecx
call dbg.IsSystemServiceDisabled
mov dword [esp], 0x38
cmp eax, 1
sbb ebx, ebx
call sym._malloc
not ebx
mov ecx, dword [ebp - 0x1b0]
and ebx, 4
test eax, eax
mov edi, eax
je 0x4bbc21
mov dword [eax], 0
mov edx, dword [ebp - 0x1ac]
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xedcba987
mov dword [eax + 0x18], ecx
test edx, edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], 0
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x30], eax
je 0x4bbaa0
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4bba18
jmp 0x4bbbbb
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x4bba16
mov dword [ecx], edi
mov ecx, dword [esi]
add dword [ecx + 0x10], 1
je 0x4bba96
mov eax, dword [esi]
mov dword [edi + 4], eax
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ebx
mov dword [esi], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1b0], ecx
mov dword [0x5bcda4], 1
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1b0]
sub esp, 8
test eax, eax
je 0x4bb970
mov dword [esi], 0
mov eax, 0xfffeffe5
jmp 0x4bba49
mov eax, dword [esi]
add dword [eax + 0x14], 1
jmp 0x4bba28
mov dword [esi], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
sub esp, 0xc
xor ecx, 0x12345678
cmp eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
je 0x4bbbc2
mov eax, 2
mov word [ebp - 0x1a8], ax
mov dword [esp], str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
sub esp, 4
mov dword [ebp - 0x1a4], eax
mov dword [esp], 0x14ea
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a6], ax
lea eax, [ebp - 0x1a8]
sub esp, 4
mov dword [ebp - 0x1ac], eax
jmp 0x4bbb34
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov eax, dword [ebp - 0x1ac]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
je 0x4bba45
add ebx, 1
cmp ebx, 3
jle 0x4bbb24
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
sub esp, 4
call sym._FreeDNSServiceOp
lea esp, [ebp - 0xc]
mov eax, 0xfffeffe5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.dnssd_clientstub_kDNSServiceFlagsShareConnection_used_with_invalid_DNSServiceRef__p__08X__08X
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffb
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, eax
jmp 0x4bba1e
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov esi, eax
call ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.dnssd_clientstub_ConnectToServer:_socket_failed__d__s
mov dword [esp], 0x1388
mov dword [esp + 8], eax
call dbg.syslog
mov eax, edi
call sym._FreeDNSServiceOp
mov eax, 0xfffefffd
jmp 0x4bba49
mov dword [esp + 4], str.dnssd_clientstub_DNSService_operation_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffc
jmp 0x4bba49
mov dword [esp + 4], str.dnssd_clientstub_ConnectToServer:_malloc_failed
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffd
mov dword [esi], 0
jmp 0x4bba49
mov dword [esp + 4], str.dnssd_clientstub_kDNSServiceFlagsShareConnection_used_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call dbg.syslog
mov eax, 0xfffefffc
jmp 0x4bba49