Function at 0x4e9400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [0x693538]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
test al, 1
jne 0x4e9467
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov dword [ebp - 0x24], 0x693528
call edi
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.004a8700
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e94a2
or esi, eax
jmp 0x4e94ed
mov eax, dword [0x693538]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e94dc
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x693528
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4e9510
cmp byte [ebp - 0x28], 0
je 0x4e9510
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e952b
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e956b
push 0
call edi
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e956b
lea ecx, [ebp - 0x48]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x10
mov eax, 2
movdqu xmmword [ebp - 0x20], xmm0
push 0x7f000001
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x1e], ax
cmp esi, 0xffffffff
jne 0x4e95ab
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e9617
push 0
call edi
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e9612
lea ecx, [ebp - 0x48]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004e2dc0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e962b
cmp byte [ebp - 0x28], 0
je 0x4e962b
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
cmp eax, 0xffffffff
jne 0x4e95e4
cmp byte [ebp - 0x28], 0
je 0x4e95e4
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
push 0
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0x1c], eax
jne 0x4e9646
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
cmp esi, 0xffffffff
jne 0x4e965a
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e96c5
push 0
call edi
lea eax, [ebp - 0x2c]
push eax
push SysReAllocString
push esi
call dword [sym.imp.WS2_32.dll_listen]
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e96c0
lea ecx, [ebp - 0x48]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
push 0
call edi
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.004a8700
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4e96d9
or edi, eax
jmp 0x4e9724
cmp eax, 0xffffffff
jne 0x4e9692
cmp byte [ebp - 0x28], 0
je 0x4e9692
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
mov eax, dword [0x693538]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
test al, 1
jne 0x4e9713
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0x693528
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x4e9753
cmp byte [ebp - 0x28], 0
je 0x4e9744
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e97ac
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e97a7
lea ecx, [ebp - 0x48]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
cmp esi, 0xffffffff
jne 0x4e97c0
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
or esi, esi
jmp 0x4e9809
cmp eax, 0xffffffff
jne 0x4e9791
cmp byte [ebp - 0x28], 0
je 0x4e9791
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push esi
mov dword [ebp - 0x64], 0
call dword [sym.imp.WS2_32.dll_accept]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4e97f2
or esi, eax
jmp 0x4e9809
lea ecx, [ebp - 0x48]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x4e9829
cmp byte [ebp - 0x28], 0
je 0x4e9829
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
mov dword [ebp - 0x38], 1
cmp edi, 0xffffffff
jne 0x4e9844
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e988e
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.004a8700
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e988c
lea ecx, [ebp - 0x60]
call fcn.0048ba00
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
je 0x4e98a2
cmp byte [ebp - 0x28], 0
je 0x4e98a2
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
mov dword [ebp - 0x34], 1
cmp edi, 0xffffffff
jne 0x4e98bd
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e98fe
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e98fe
lea ecx, [ebp - 0x60]
call fcn.0048ba00
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], 1
cmp esi, 0xffffffff
jne 0x4e9919
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e9963
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.004a8700
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x4e9961
lea ecx, [ebp - 0x60]
call fcn.0048ba00
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
je 0x4e9977
cmp byte [ebp - 0x28], 0
je 0x4e9977
push 0x616930
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cef0
mov dword [ebp - 0x34], 1
cmp esi, 0xffffffff
jne 0x4e9992
push 0x2719
lea ecx, [ebp - 0x2c]
call fcn.0048fde0
jmp 0x4e99c4
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x34]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4e99c4
lea ecx, [ebp - 0x60]
call fcn.0048ba00
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov byte [ebp - 4], 1
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.004c9500
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004c9500
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.004c9500
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret