Function at 0x101a490
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 [0x101f128]
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 0x101a7ba
cmp ebx, esi
je 0x101a7ba
cmp ecx, esi
je 0x101a7ba
push edi
push dword [ebp + 0x14]
push 0x1006f50
call fcn.01019d4d
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 0x101a51c
mov eax, dword [0x101fb34]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], esi
jmp 0x101a52a
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, 0x101fb18
jmp 0x101a5a0
push esi
push esi
push esi
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x101fb78]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x101a583
cmp eax, esi
je 0x101a5a0
push 0x1006ef0
call fcn.01019d33
mov eax, dword [0x101fb34]
cmp eax, 0x186a0
pop ecx
jae 0x101a5a0
add eax, eax
push eax
push 0x1006eb4
mov dword [0x101fb34], eax
call fcn.01019d33
jmp 0x101a59e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006e18
mov dword [ebp - 0x70], eax
call fcn.01019d67
mov dword [ebp - 0x6c], 0x80004005
pop ecx
pop ecx
mov eax, dword [0x101fb78]
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 0x101a53a
mov ebx, 0x101fb60
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 6
jg 0x101a6b3
push dword [ebp - 0x74]
push 0x1006db8
call fcn.01019d33
pop ecx
pop ecx
push 2
push ebx
push esi
call fcn.01019d9e
push 0x10
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x8c]
push dword [0x101fb78]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x101a74e
cmp eax, dword [ebp + 0xc]
jne 0x101a75c
mov eax, dword [0x101fb78]
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 0x101a66d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006d48
mov dword [ebp - 0x70], eax
call fcn.01019d67
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
push dword [ebp - 0x70]
push 0x1006d1c
call fcn.01019d33
pop ecx
pop ecx
lea eax, [ebp - 0x190]
push eax
push dword [0x101fb78]
call fcn.0101a048
test eax, eax
jne 0x101a6b3
cmp dword [ebp + 0x18], esi
jne 0x101a6aa
push 0x1006cc0
call fcn.01019d67
mov eax, dword [ebp - 0x7c]
add eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x70], esi
je 0x101a5cf
cmp dword [ebp - 0x70], 0xffffffff
je 0x101a768
cmp dword [ebp - 0x70], esi
je 0x101a79e
push 0x1006c9c
call fcn.01019d33
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 [0x101fb78]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
push edi
push 0x1006c7c
call fcn.01019d33
cmp edi, esi
pop ecx
pop ecx
je 0x101a784
cmp edi, 0xffffffff
je 0x101a784
push 0x1006c4c
call fcn.01019d33
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0101a099
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0x14]
je 0x101a79e
push dword [ebp + 0x14]
push eax
push 0x1006bf8
call fcn.01019d67
add esp, 0xc
jmp 0x101a61f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006b98
jmp 0x101a774
push 0x1006b38
call fcn.01019d67
jmp 0x101a77a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006ae0
call fcn.01019d67
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
jmp 0x101a7b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1006a70
call fcn.01019d67
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x80004005
mov eax, dword [ebp - 0x78]
push dword [eax + 4]
push dword [ebp - 0x6c]
push 0x1006a10
call fcn.01019d4d
add esp, 0xc
mov eax, dword [ebp - 0x6c]
pop edi
jmp 0x101a7cf
push ecx
push ebx
push eax
push 0x1006998
call fcn.01019d67
add esp, 0x10
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101793c
leave
ret 0x18