Function at 0x101a700
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x1020128]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], 0x10
mov dword [ebp - 0x6c], esi
je 0x101aa2a
cmp ebx, esi
je 0x101aa2a
cmp ecx, esi
je 0x101aa2a
push edi
push dword [ebp + 0x14]
push 0x1006f88
call fcn.01019fbd
pop ecx
pop ecx
push 0x19
pop ecx
xor eax, eax
cmp dword [ebp + 0x18], esi
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
push 8
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x80], esi
jne 0x101a78c
mov eax, dword [0x1020b3c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], esi
jmp 0x101a79a
mov dword [ebp - 0x7c], 0x7a120
mov dword [ebp - 0x74], 4
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x70], esi
mov edi, 0x1020b20
jmp 0x101a810
push esi
push esi
push esi
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x1020b98]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x101a7f3
cmp eax, esi
je 0x101a810
push 0x1006f28
call fcn.01019fa3
mov eax, dword [0x1020b3c]
cmp eax, 0x186a0
pop ecx
jae 0x101a810
add eax, eax
push eax
push 0x1006eec
mov dword [0x1020b3c], eax
call fcn.01019fa3
jmp 0x101a80e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006e50
mov dword [ebp - 0x70], eax
call fcn.01019fd7
mov dword [ebp - 0x6c], 0x80004005
pop ecx
pop ecx
mov eax, dword [0x1020b98]
push edi
push esi
mov dword [ebp - 0x18c], eax
push esi
lea eax, [ebp - 0x190]
push eax
push esi
mov dword [ebp - 0x190], 1
call ebx
test eax, eax
jne 0x101a7aa
mov ebx, 0x1020b80
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 6
jg 0x101a923
push dword [ebp - 0x74]
push 0x1006df0
call fcn.01019fa3
pop ecx
pop ecx
push 2
push ebx
push esi
call fcn.0101a00e
push 0x10
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x8c]
push dword [0x1020b98]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x101a9be
cmp eax, dword [ebp + 0xc]
jne 0x101a9cc
mov eax, dword [0x1020b98]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
lea eax, [ebp - 0x190]
push eax
push esi
mov dword [ebp - 0x190], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp - 0x70], eax
jne 0x101a8dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006d80
mov dword [ebp - 0x70], eax
call fcn.01019fd7
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
push dword [ebp - 0x70]
push 0x1006d54
call fcn.01019fa3
pop ecx
pop ecx
lea eax, [ebp - 0x190]
push eax
push dword [0x1020b98]
call fcn.0101a2b8
test eax, eax
jne 0x101a923
cmp dword [ebp + 0x18], esi
jne 0x101a91a
push 0x1006cf8
call fcn.01019fd7
mov eax, dword [ebp - 0x7c]
add eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x70], esi
je 0x101a83f
cmp dword [ebp - 0x70], 0xffffffff
je 0x101a9d8
cmp dword [ebp - 0x70], esi
je 0x101aa0e
push 0x1006cd4
call fcn.01019fa3
mov edi, dword [ebp - 0x84]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x84]
lea eax, [ebp - 0x68]
push esi
push 0x64
push eax
push dword [0x1020b98]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
push edi
push 0x1006cb4
call fcn.01019fa3
cmp edi, esi
pop ecx
pop ecx
je 0x101a9f4
cmp edi, 0xffffffff
je 0x101a9f4
push 0x1006c84
call fcn.01019fa3
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0101a309
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0x14]
je 0x101aa0e
push dword [ebp + 0x14]
push eax
push 0x1006c30
call fcn.01019fd7
add esp, 0xc
jmp 0x101a88f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006bd0
jmp 0x101a9e4
push 0x1006b70
call fcn.01019fd7
jmp 0x101a9ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006b18
call fcn.01019fd7
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
jmp 0x101aa24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006aa8
call fcn.01019fd7
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
push dword [ebp - 0x6c]
push 0x1006a48
call fcn.01019fbd
add esp, 0xc
mov eax, dword [ebp - 0x6c]
pop edi
jmp 0x101aa3f
push ecx
push ebx
push eax
push 0x10069d0
call fcn.01019fd7
add esp, 0x10
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01017bb1
leave
ret 0x18