Function at 0x4b3080
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 0x4b3383
and edx, 0x4000
mov dword [ebp - 0x1ac], edx
je 0x4b30e2
mov eax, dword [eax]
test eax, eax
je 0x4b33c5
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
cmp edx, 0xffffffff
je 0x4b3308
mov edi, ebx
xor edi, edx
cmp edi, 0x12345678
jne 0x4b3308
cmp dword [eax + 0x18], 1
jne 0x4b3308
mov edi, dword [eax + 4]
test edi, edi
jne 0x4b3308
mov ebx, dword [0x5b1e64]
test ebx, ebx
je 0x4b31d1
mov dword [ebp - 0x1b0], ecx
call fcn.004b5d30
mov dword [esp], 0x38
cmp eax, 1
sbb ebx, ebx
call sub.msvcrt.dll_malloc
not ebx
mov ecx, dword [ebp - 0x1b0]
and ebx, 4
test eax, eax
mov edi, eax
je 0x4b33a1
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 0x4b3220
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4b3198
jmp 0x4b333b
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x4b3196
mov dword [ecx], edi
mov ecx, dword [esi]
add dword [ecx + 0x10], 1
je 0x4b3216
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 [0x5b1e64], 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 0x4b30f0
mov dword [esi], 0
mov eax, 0xfffeffe5
jmp 0x4b31c9
mov eax, dword [esi]
add dword [eax + 0x14], 1
jmp 0x4b31a8
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 0x4b3342
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 0x4b32b4
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 0x4b31c5
add ebx, 1
cmp ebx, 3
jle 0x4b32a4
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
sub esp, 4
call fcn.004b2fc0
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 fcn.004b26f0
mov eax, 0xfffefffb
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, eax
jmp 0x4b319e
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call fcn.004b5a60
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 fcn.004b26f0
mov eax, edi
call fcn.004b2fc0
mov eax, 0xfffefffd
jmp 0x4b31c9
mov dword [esp + 4], str.dnssd_clientstub_DNSService_operation_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, 0xfffefffc
jmp 0x4b31c9
mov dword [esp + 4], str.dnssd_clientstub_ConnectToServer:_malloc_failed
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, 0xfffefffd
mov dword [esi], 0
jmp 0x4b31c9
mov dword [esp + 4], str.dnssd_clientstub_kDNSServiceFlagsShareConnection_used_with_NULL_DNSServiceRef
mov dword [esp], 0x1388
call fcn.004b26f0
mov eax, 0xfffefffc
jmp 0x4b31c9