Function at 0x10007bc0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Start tcp server

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21cc
call fcn.10075d90
mov eax, dword [0x10091628]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21b4]
push eax
push 0x202
mov dword [ebp - 0x21c4], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10007c13
push str.WSAStartup_failed_n
call fcn.1000afe0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x21c8], esi
cmp esi, 0xffffffff
jne 0x10007c57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, 2
push 0
movlpd qword [ebp - 0x200c], xmm0
mov word [ebp - 0x2014], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0xef1b
mov dword [ebp - 0x2010], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2012], ax
lea eax, [ebp - 0x2014]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10007cb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Bind_failed_with_error:__ld_n
jmp 0x10007cd8
push str.bind_success__n
call fcn.1000afe0
add esp, 4
push 4
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10007cfd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Listen_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b41
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x21b8]
mov dword [ebp - 0x21b8], 0x10
push eax
lea eax, [ebp - 0x2024]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov dword [ebp - 0x21bc], ebx
cmp ebx, 0xffffffff
je 0x10007e1e
nop
mov eax, dword [edi + 0x10]
push 0
mov dword [ebp - 0x21c0], eax
lea eax, [ebp - 0x21c0]
push 4
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x10007e99
push 0
push 2
lea eax, [ebp - 0x21cc]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jne 0x10007e77
mov esi, dword [ebp - 0x21c0]
xor ebx, ebx
test esi, esi
jle 0x10007ddc
nop dword [eax + eax]
mov eax, dword [ebp - 0x21c4]
mov edi, 0x2000
cmp esi, edi
mov ecx, eax
cmovl edi, esi
cmp dword [eax + 0x14], 0x10
jb 0x10007d9a
mov ecx, dword [eax]
lea eax, [ecx + ebx]
push edi
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x2004]
push 0
push edi
mov edi, dword [ebp - 0x21bc]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10007e50
sub esi, eax
add ebx, eax
test esi, esi
jg 0x10007d80
mov edi, dword [ebp - 0x21c4]
push dword [ebp - 0x21bc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0x21c8]
lea eax, [ebp - 0x21b8]
push eax
lea eax, [ebp - 0x2024]
mov dword [ebp - 0x21b8], 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov dword [ebp - 0x21bc], eax
cmp ebx, 0xffffffff
jne 0x10007d30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Accept_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.10075b41
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed_with_error:__ld_n
call fcn.1000afe0
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 8
push edi
call ebx
push dword [ebp - 0x21c8]
call ebx
jmp 0x10007e39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
push esi
call ebx
jmp 0x10007e39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed_with_error:__ld_n
call fcn.1000afe0
add esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
push esi
call ebx
jmp 0x10007e39