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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10091014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [ebp - 0x220], eax
mov esi, ecx
movups xmmword [ebp - 0x110], xmm0
mov eax, 2
mov dword [ebp - 0x10c], 0xcd8d0767
push 0x508
mov word [ebp - 0x110], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x10e], ax
lea eax, [ebp - 0x110]
push 0x10
push eax
push esi
call dword [0x100942c0]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x224], eax
cmp eax, 0xffffffff
jne 0x1000188d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001870
lea eax, [ebp - 0x100]
mov dword [ebp - 0x218], esi
push eax
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
push 0
mov dword [ebp - 0x100], 0x1e
mov dword [ebp - 0xfc], 0
call ebx
test eax, eax
jg 0x1000188d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffff91
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffff90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], 0x2000205
lea eax, [ebp - 0x74]
push 0
push 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100018d5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x100]
mov dword [ebp - 0x218], esi
push eax
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
mov dword [ebp - 0x100], 0x1e
mov dword [ebp - 0xfc], 0
call ebx
test eax, eax
jg 0x10001929
mov eax, 0xffffff86
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x74]
push 0
push 0xa
push eax
push esi
call edi
cmp eax, 0xffffffff
jne 0x1000195c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffff3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x73], 2
jne 0x10001a37
push 0x7f
lea eax, [ebp - 0xf3]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov word [ebp - 0xf4], 0x401
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.yiyi]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xf3], al
test al, al
jne 0x10001990
mov byte [ebp - 0xee], 4
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.yiyi]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xee], al
test al, al
jne 0x100019b0
lea ecx, [ebp - 0xf4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100019d0
push 0
sub ecx, edx
lea eax, [ebp - 0xf4]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10001a0a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
lea eax, [ebp - 0xf8]
mov word [ebp - 0xf8], 1
push eax
push esi
call edi
cmp eax, 0xffffffff
je 0x100019ef
cmp byte [ebp - 0xf7], 0
jne 0x100019ef
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], 0x1000105
push dword [ebp - 0x220]
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x74]
push 0xa
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10001a9b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffff2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x100]
mov dword [ebp - 0x218], esi
push eax
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
mov dword [ebp - 0x100], 0x1e
mov dword [ebp - 0xfc], 0
call ebx
test eax, eax
jg 0x10001aef
mov eax, 0xffffff73
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
push 0x64
lea eax, [ebp - 0x74]
push 1
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push 0
push 0x14
push eax
push esi
call edi
cmp eax, 0xffffffff
jne 0x10001b2c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x73], 0
je 0x10001b4f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffff0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a41e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1001a41e
mov esp, ebp
pop ebp
ret