Function at 0x10002559
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, dword [ebp + 0x10]
mov edx, eax
shr edx, 0x10
or dx, dx
je 0x1000257a
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x10002784
cmp ax, 1
jne 0x10002773
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 0
jl 0x10002784
mov eax, dword [ebp - 4]
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002771
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x34]
push eax
call fcn.10001000
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 8
jl 0x10002768
mov dword [ebp - 4], eax
add eax, dword [ebp - 0xc]
and byte [eax], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
cmp edx, 0x3e9
jne 0x1000264e
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 4], eax
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002768
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100013bb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
and byte [eax], 0
push dword [ebp - 0x10]
pop dword [0x1000b00c]
jmp 0x10002768
cmp edx, 0x3ea
jne 0x1000269a
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 4], eax
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002768
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100013bb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
and byte [eax], 0
push dword [ebp - 0x10]
pop dword [0x1000b004]
jmp 0x10002768
cmp edx, 0x3eb
jne 0x100026e6
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 4], eax
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002768
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100013bb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
and byte [eax], 0
push dword [ebp - 0x10]
pop dword [0x1000b008]
jmp 0x10002768
cmp edx, 0x3ec
jne 0x1000272b
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 4], eax
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002768
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100013bb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
and byte [eax], 0
push dword [ebp - 0x10]
pop dword [0x1000b010]
jmp 0x10002768
cmp edx, 0x3ed
jne 0x10002768
mov eax, dword [ebp - 4]
lea eax, [eax + 1]
push eax
push 0
call fcn.1000132a
or eax, eax
je 0x10002768
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100013bb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
and byte [eax], 0
push dword [ebp - 0x10]
pop dword [0x1000b014]
lea eax, [ebp - 0xc]
push eax
call fcn.100012fb
jmp 0x10002784
cmp ax, 0x20
jne 0x10002784
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10002382
leave
ret 0xc