Function at 0x40aba0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202a0
call fcn.004bf520
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1ffff
xor esi, esi
lea eax, [ebp - 0x20003]
push esi
push eax
mov edi, ecx
mov byte [ebp - 0x20004], 0
call fcn.004bfd10
lea ecx, [ebp - 0x20084]
push 0x80
push ecx
mov dword [ebp - 0x20290], esi
mov dword [ebp - 0x20298], 0x80
mov dword [ebp - 0x20188], esi
call fcn.004010f5
mov dx, word [0x58a210]
push 0x40a140
mov word [ebp - 0x20084], dx
call fcn.0040123a
add esp, 0x18
lea esp, [esp]
push 0x58a100
push edi
push 2
call fcn.0040100a
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x20298]
push eax
lea ecx, [ebp - 0x20084]
push ecx
push 2
push 0x20000
lea edx, [ebp - 0x20004]
push edx
push ebx
call fcn.00401172
add esp, 0x18
mov dword [ebp - 0x20294], eax
call fcn.0040a160
cmp eax, dword [0x58a28c]
jl 0x40ac82
cmp dword [0x58a204], esi
je 0x40acaa
push eax
push str.New_connection_denied:_connection_limit_reached___d__n
call fcn.004010eb
add esp, 8
jmp 0x40acaa
lea eax, [ebp - 0x20084]
push eax
call fcn.0040110e
add esp, 4
test eax, eax
jne 0x40acc5
cmp dword [0x58a204], esi
je 0x40acaa
push str.New_connection_denied:_not_allowed_n
call fcn.004010eb
add esp, 4
push esi
push 0x20000
lea ecx, [ebp - 0x20004]
push ecx
push ebx
call fcn.00401028
add esp, 0x10
jmp 0x40ac32
mov edx, dword [ebp - 0x20298]
inc dword [0x58a81c]
push edx
lea eax, [ebp - 0x20084]
push eax
push ebx
call fcn.00401177
lea ecx, [ebp - 0x20004]
push 0x20000
push ecx
call fcn.004010f5
mov eax, dword [0x58a294]
add esp, 0x14
cmp eax, esi
je 0x40ad39
mov dword [ebp - 0x2029c], esi
mov dword [ebp - 0x202a0], ebx
push eax
cmp dword [0x58a21c], esi
je 0x40ad25
lea edx, [ebp - 0x202a0]
push edx
call fcn.00401140
add esp, 8
jmp 0x40ac20
lea eax, [ebp - 0x202a0]
push eax
call fcn.004011fe
add esp, 8
jmp 0x40ac20
mov dword [ebp - 0x20184], ebx
mov dword [ebp - 0x20188], 1
xor eax, eax
jmp 0x40ad50
cmp dword [ebp + eax*4 - 0x20184], esi
je 0x40ad5f
inc eax
cmp eax, 1
jb 0x40ad50
cmp eax, 1
jne 0x40ad74
mov dword [ebp - 0x20180], esi
mov dword [ebp - 0x20188], 2
cmp dword [0x58a208], 1
mov ecx, 0x41
lea esi, [ebp - 0x20188]
lea edi, [ebp - 0x2028c]
rep movsd dword es:[edi], dword [esi]
jle 0x40ad9d
push str.udp_selecting_n
call fcn.00401113
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x2028c]
push ecx
lea eax, [ebx + 1]
push eax
call fcn.00416360
add esp, 0x14
lea edx, [ebp - 0x2028c]
push edx
push 0
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40ae68
push 0x20000
lea eax, [ebp - 0x20004]
push eax
push 0
call fcn.00401226
add esp, 0xc
mov dword [ebp - 0x20294], eax
test eax, eax
js 0x40aecc
je 0x40aee9
cmp dword [0x58a24c], 0
je 0x40ae27
push 0x58a818
lea ecx, [ebp - 0x20290]
push ecx
lea edx, [ebp - 0x20294]
push edx
lea eax, [ebp - 0x20004]
push eax
call fcn.0040122b
mov eax, dword [ebp - 0x20294]
add esp, 0x10
cmp dword [0x58a224], 0
jne 0x40ae4b
mov ecx, dword [ebp - 0x20290]
push 0
push eax
test ecx, ecx
jne 0x40ae43
lea ecx, [ebp - 0x20004]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x20290]
test eax, eax
je 0x40ae68
push eax
call fcn.004be321
add esp, 4
mov dword [ebp - 0x20290], 0
lea edx, [ebp - 0x2028c]
push edx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40aeb3
push 0
push 0x20000
lea eax, [ebp - 0x20004]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20294], eax
test eax, eax
js 0x40aefc
cmp dword [0x58a220], 0
jne 0x40aeb3
push eax
lea ecx, [ebp - 0x20004]
push ecx
push 1
call fcn.00401050
add esp, 0xc
lea edx, [ebp - 0x20004]
push 0x20000
push edx
call fcn.004010f5
add esp, 8
jmp 0x40ad74
call fcn.004bdedf
mov eax, dword [eax]
push eax
call fcn.004bf45d
push eax
push str._s._n
call fcn.004010eb
add esp, 0xc
jmp 0x40af1c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00415fb0
push eax
push str._s._n
call fcn.004010eb
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004bf32e
mov esp, ebp
pop ebp
ret