Function at 0x464630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
mov edi, dword [esp + 0x50]
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], 1
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464850
xor eax, eax
mov dword [esp + 0x14], eax
push 0x7f000001
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htonl]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ebx
mov word [esp + 0x2a], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x46483c
push 0x10
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x46483c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x46483c
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x46483c
push 0
push 1
push 2
call esi
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x46483c
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x46483c
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x46483c
push edi
push 0x57c074
lea edx, [esp + 0x2c]
push 0xc
push edx
call fcn.00465130
lea eax, [esp + 0x34]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x464768
mov ecx, dword [edi]
sub eax, edx
push 0
mov esi, eax
push esi
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x46483c
mov eax, dword [edi + 4]
push 0
push 0xc
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x46483c
cmp esi, 4
push ebp
mov eax, esi
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
jb 0x4647d4
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4647d8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4647c0
test eax, eax
je 0x464835
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x464827
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x464835
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x464827
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x464835
movzx ebp, byte [ecx]
movzx esi, byte [edx]
sub esi, ebp
jne 0x464827
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x464835
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x464835
test esi, esi
mov eax, 1
jg 0x464837
or eax, 0xffffffff
jmp 0x464837
xor eax, eax
test eax, eax
pop ebp
je 0x464865
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
mov edx, dword [edi]
push edx
call esi
mov eax, dword [edi + 4]
push eax
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044e502
add esp, 0x34
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e502
add esp, 0x34
ret