Function at 0x4bc0f0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x4c
mov edi, dword [eax + 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], 0xfffeffff
mov dword [ebp - 0x3c], 1
test eax, eax
je 0x4bc2d4
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x4bc330
mov ecx, edx
xor ecx, eax
cmp ecx, 0x12345678
jne 0x4bc330
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4bc467
mov dword [ebp - 0x2c], 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
je 0x4bc2f0
xor ecx, ecx
mov edx, 2
mov word [ebp - 0x28], dx
mov word [ebp - 0x26], cx
mov dword [esp], str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp + 8], 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_bind]
mov edx, dword [ebp - 0x44]
sub esp, 0xc
test eax, eax
js 0x4bc360
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
js 0x4bc270
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 8
test eax, eax
js 0x4bc4a0
movzx eax, word [ebp - 0x26]
add edi, 0x1c
mov dword [esp], esi
mov byte [esi + 0x1c], al
movzx eax, ah
mov byte [esi + 0x1d], al
call dbg.ConvertHeaderBytes
mov eax, dword [ebx + 8]
mov ecx, edi
mov edx, esi
call dbg.write_all
test eax, eax
js 0x4bc3a4
mov edi, 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0x10
call sym._wait_for_daemon.constprop.10
test eax, eax
mov dword [ebp - 0x30], eax
je 0x4bc3d0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4bc2ad
mov dword [esp], esi
call sym._free
mov eax, dword [ebp - 0x30]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.TCP_getsockname
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:__s_failed__d___s_
mov dword [esp], 0x1388
mov dword [esp + 0xc], eax
call dbg.syslog
mov edi, 0xffffffff
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x4bc2c1
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp edi, 0xffffffff
je 0x4bc257
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
jmp 0x4bc257
mov eax, dword [esi + 0xc]
and eax, 0xfffffff7
sub eax, 2
cmp eax, 1
setbe al
movzx eax, al
mov dword [ebp - 0x3c], eax
jmp 0x4bc119
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.TCP_socket
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:__s_failed__d___s_
mov dword [esp], 0x1388
mov dword [esp + 0xc], eax
call dbg.syslog
jmp 0x4bc2a8
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:_invalid_DNSServiceRef__p__08X__08X
mov dword [esp], 0x1388
call dbg.syslog
lea esp, [ebp - 0xc]
mov eax, 0xfffefffb
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.TCP_bind
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:__s_failed__d___s_
mov dword [esp], 0x1388
mov dword [esp + 0xc], eax
call dbg.syslog
jmp 0x4bc2a8
mov dword [ebp - 0x40], 0xffffffff
mov dword [esp + 0xc], edi
mov eax, dword [ebx + 8]
mov edi, 0xffffffff
mov dword [esp + 4], str.dnssd_clientstub_deliver_request_ERROR:_write_all__d___lu_bytes__failed
mov dword [esp], 0x3e8
mov dword [esp + 8], eax
call dbg.syslog
jmp 0x4bc250
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_accept]
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x4bc4f0
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
cmp dword [ebx + 0x18], 0x10
jne 0x4bc420
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0xffffffff
jmp 0x4bc250
mov eax, edi
call sym._wait_for_daemon.constprop.10
mov dword [ebp - 0x40], 0xffffffff
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x4bc250
mov ecx, 4
mov eax, edi
lea edx, [ebp - 0x30]
call dbg.read_all
test eax, eax
js 0x4bc4e0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
mov dword [ebp - 0x30], eax
jmp 0x4bc250
mov dword [esp], esi
add edi, 0x1c
call dbg.ConvertHeaderBytes
mov eax, dword [ebx + 8]
mov ecx, edi
mov edx, esi
call dbg.write_all
test eax, eax
js 0x4bc39d
cmp dword [ebx + 0x18], 0x10
mov edi, dword [ebx + 8]
jne 0x4bc420
mov dword [ebp - 0x40], 0xffffffff
jmp 0x4bc236
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.TCP_listen
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:__s_failed__d___s_
mov dword [esp], 0x1388
mov dword [esp + 0xc], eax
call dbg.syslog
jmp 0x4bc2a8
mov dword [ebp - 0x30], 0xfffeffe5
jmp 0x4bc250
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
mov dword [esp], eax
call dbg.win32_strerror
mov dword [ebp - 0x44], eax
call ebx
mov edx, dword [ebp - 0x44]
mov dword [esp + 8], str.accept
mov dword [esp + 4], str.dnssd_clientstub_deliver_request:__s_failed__d___s_
mov dword [esp], 0x1388
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call dbg.syslog
jmp 0x4bc250