Function at 0x10010180
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cd842
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x10157aa0]
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 - 0xb8], ecx
mov dword [ecx], vtable.ToraBase::Channel.0
mov byte [ecx + 0xc], 0
mov dword [ebp - 0xdc], ecx
mov byte [ecx + 0xd], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
lea eax, [ecx + 0x14]
mov dword [ecx], vtable.ToraBase::InformChannel.0
mov dword [eax + 4], 0
mov dword [eax], vtable.ToraBase::TcpSocket.0
mov byte [eax + 8], 0
mov dword [eax + 0x28], 0
mov byte [eax + 0x2c], 0
mov dword [ebp - 0xcc], eax
mov dword [eax + 0x4c], 0
lea edi, [ecx + 0x64]
mov dword [edi + 4], 0
mov dword [edi], vtable.ToraBase::TcpSocket.0
mov byte [edi + 8], 0
mov dword [edi + 0x28], 0
mov byte [edi + 0x2c], 0
mov dword [edi + 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov byte [ecx + 0xc], 1
mov dword [ecx + 0x4b8], 0
mov dword [ecx + 0x4bc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], vtable.ToraBase::TcpSocket.0
mov byte [ebp - 0xa8], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x64], 0
push 6
push 1
push 2
mov byte [ebp - 4], 3
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 0xc4]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xc4], 1
call esi
push 4
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 1
push eax
push 1
push 6
push dword [ebp - 0xac]
call esi
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x60], xmm0
push 0
mov word [ebp - 0x60], ax
call dword [sym.imp.WSOCK32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x5e], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push 0x10
push eax
push dword [ebp - 0xac]
call dword [sym.imp.WSOCK32.dll_bind]
push 5
push dword [ebp - 0xac]
call dword [sym.imp.WSOCK32.dll_listen]
lea ecx, [ebp - 0xb0]
call fcn.10013a80
xor ecx, ecx
jmp 0x10010340
mov al, byte [ebp + ecx - 0xa8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x51], al
test al, al
jne 0x10010340
mov eax, dword [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0xd8], eax
mov eax, dword [edi]
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x18]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 1
push eax
push 0x8004667e
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edi, edi
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0
push eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
jns 0x100103f2
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
call dword [eax + 0xc]
mov dword [ebp - 0xb4], 0
jmp 0x1001041a
jne 0x10010400
mov dword [ebp - 0xb4], 0
jmp 0x1001041a
push 0
push 0
push dword [ebp - 0xac]
call dword [sym.imp.WSOCK32.dll_accept]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x10010428
push 1
call edi
inc esi
cmp esi, 5
jl 0x100103a0
mov esi, dword [ebp - 0xcc]
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 1
push eax
push 0x8004667e
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, dword [ebp - 0xac]
mov esi, dword [sym.imp.WSOCK32.dll_closesocket]
test eax, eax
je 0x10010476
push eax
call esi
xor eax, eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], vtable.ToraBase::BaseSocket.0
test eax, eax
je 0x10010487
push eax
call esi
mov eax, dword [ebp - 0xb8]
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.100bb5b4
mov esp, ebp
pop ebp
ret 4