Function at 0x467230
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Start tcp server

Disassembly:
sub esp, 0x7e8
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x7e4], eax
mov eax, dword [esp + 0x7f0]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll__errno]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
call edi
mov ecx, dword [esp + 0x7fc]
mov dword [eax], 0
xor eax, eax
cmp ecx, 0xffffffff
mov dword [0x5711e8], 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jne 0x467299
mov eax, dword [0x54c0e8]
cmp eax, ecx
je 0x467299
mov ecx, eax
mov dword [esp + 0x7fc], ecx
push 0
push 0x64
lea edx, [esp + 0x3f4]
push edx
push ecx
call sub.WSOCK32.dll_recv
push 0
push 1
push 2
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x4672ee
call edi
mov eax, dword [eax]
pop edi
mov dword [0x5711ec], eax
mov eax, 0xfffff768
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
xor eax, eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call sub.WSOCK32.dll_bind
push 5
push esi
call sub.WSOCK32.dll_listen
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call sub.WSOCK32.dll_getsockname
test eax, eax
jge 0x467365
call edi
mov ecx, dword [eax]
push esi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
pop edi
mov eax, 0xfffff95c
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edx, dword [esp + 0x1a]
push ebx
push edx
call sub.WSOCK32.dll_ntohs
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
movzx eax, ax
movzx edi, ax
mov esi, edi
shr esi, 8
push esi
lea eax, [esp + 0x50]
push 0x525c04
push eax
call ebx
shl esi, 8
sub edi, esi
push edi
lea ecx, [esp + 0x54]
push 0x525c04
push ecx
call ebx
mov ax, word [0x53bc6c]
mov edx, dword [str.PORT]
add esp, 0x18
mov word [esp + 0x1c0], ax
mov dword [esp + 0x1bc], edx
xor eax, eax
mov cl, byte [eax + 0x571200]
mov byte [esp + eax + 0x54], cl
add eax, 1
test cl, cl
jne 0x4673c0
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4673d8
mov bx, word [0x539598]
lea eax, [esp + 0x4c]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4673f2
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467406
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x467425
lea eax, [esp + 0x44]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x467438
lea edi, [esp + 0x54]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x467450
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x467470
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x54]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467493
lea edi, [esp + 0x1bc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4674a8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1bc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4674d0
mov ebx, dword [esp + 0x800]
sub eax, edx
lea ecx, [esp + 0x1bc]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x46752a
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, 0xffffffb3
pop edi
sub eax, esi
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edi, ebx
call fcn.00464e80
mov esi, eax
test esi, esi
jle 0x46756b
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push eax
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, esi
pop edi
neg eax
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov dx, word [0x53bc7c]
mov ecx, dword [0x53bc78]
mov eax, dword [esp + 0x7f8]
mov word [esp + 0x8c], dx
lea edx, [esp + 0x2f0]
mov dword [esp + 0x88], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x467597
lea eax, [esp + 0x2f0]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4675b0
lea edi, [esp + 0x88]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4675c5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x88]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4675f0
sub eax, edx
cmp byte [esp + eax + 0x87], 0x2f
jne 0x467622
lea eax, [esp + 0x88]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467610
sub eax, edx
mov byte [esp + eax + 0x87], cl
lea eax, [esp + 0x88]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x467630
mov cx, word [0x53bc0c]
mov dl, byte [0x53bc0e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467657
sub eax, edx
lea ecx, [esp + 0x88]
call fcn.00464cf0
mov esi, eax
test esi, esi
jle 0x4676aa
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, 0xffffffeb
pop edi
sub eax, esi
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
push 2
lea edx, [esp + 0x40]
push 3
push edx
call fcn.00464d30
add esp, 0xc
test eax, eax
jge 0x4676f3
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
pop ebx
pop edi
mov eax, 0xffffe188
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov al, byte [esp + 0x3c]
cmp al, 0x35
jne 0x467742
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
lea eax, [esp + 0x3c]
push eax
mov dword [0x5711ec], edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov esi, eax
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, 0xfffff448
pop edi
sub eax, esi
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
cmp al, 0x34
jne 0x467763
pop ebx
pop edi
mov eax, 0x270f
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
push edi
call sub.WSOCK32.dll_accept
push edi
mov esi, eax
call sub.WSOCK32.dll_closesocket
test esi, esi
ja 0x4677b4
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push edi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
pop ebx
pop edi
mov eax, 0xfffff830
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
lea edx, [esp + 0x18]
push edx
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jge 0x4677f8
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push esi
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
pop ebx
pop edi
mov eax, 0xffffe250
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edi, ebx
call fcn.00464e80
mov edi, eax
test edi, edi
jle 0x467835
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push esi
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, edi
pop edi
neg eax
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edx, dword [esp + 0x14]
push edx
mov edi, 0x5642f8
mov ecx, esi
call fcn.00465050
mov edi, eax
add esp, 4
test edi, edi
jle 0x467881
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push esi
mov dword [0x5711ec], eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffff7
pop ebx
sub eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edi, ebx
call fcn.00464e80
mov edi, eax
call dword [sym.imp.MSVCR80.dll__errno]
test edi, edi
push esi
jle 0x4678be
mov ecx, dword [eax]
mov dword [0x5711ec], ecx
call sub.WSOCK32.dll_closesocket
pop ebx
mov eax, edi
pop edi
neg eax
pop esi
mov ecx, dword [esp + 0x7e4]
xor ecx, esp
call fcn.00523ce0
add esp, 0x7e8
ret
mov edx, dword [eax]
mov dword [0x5711ec], edx
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x7f0]
pop ebx
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00523ce0
add esp, 0x7e8
ret