Function at 0x405ad0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
push 0
push 1
push 2
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405aff
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x48
ret
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
call fcn.00402610
mov ecx, 0xa
xor eax, eax
mov edi, 0x41e4f8
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, 8
lea esi, [esp + 0x38]
mov edi, 0x41e500
push 0x41e500
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x2c], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x2c], eax
mov esi, 0x1de2
push esi
call edi
lea ecx, [esp + 0x28]
push 0x10
push ecx
push ebx
mov word [esp + 0x36], ax
call ebp
cmp eax, 0xffffffff
jne 0x405b78
inc esi
jmp 0x405b5e
xor edx, edx
mov ebp, 1
mov dword [esp + 0x1c], edx
push 0x41e500
mov dword [esp + 0x24], edx
mov dword [0x41e4f8], esi
mov dword [0x41e4fc], ebp
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov cx, word [0x41e4f8]
mov dword [esp + 0x20], eax
mov eax, dword [0x41e4fc]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x28], cx
call fcn.00407150
add esp, 4
test eax, eax
je 0x405be1
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x48
ret
lea eax, [esp + 0x10]
xor edi, edi
push eax
push ebp
mov dword [esp + 0x18], edi
call fcn.00402660
mov eax, dword [esp + 0x18]
add esp, 8
shl eax, 4
push bind
push ebx
mov dword [eax + 0x41e520], ebp
mov dword [eax + 0x41e524], esi
mov dword [eax + 0x41e528], edi
mov dword [eax + 0x41e52c], edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x405c47
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.mp110008
push edi
call fcn.00407060
add esp, 8
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [0x41e4f8]
push ecx
push str.Start_Listening_at_Port__d_..._n
call fcn.00407e84
mov word [esp + 0x20], bp
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 8
mov word [esp + 0x1a], di
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cf7
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1388
push esi
call fcn.00402690
add esp, 8
test eax, eax
je 0x405cba
push esi
call ebp
jmp 0x405c6b
push 4
push 1
call fcn.00407864
mov edi, eax
add esp, 8
test edi, edi
je 0x405d16
push edi
push 0
mov dword [edi], 0
push 0x405800
mov dword [edi], esi
call fcn.00407d3b
add esp, 0xc
cmp eax, 0xffffffff
je 0x405d38
cmp dword [0x41f810], 1
je 0x405d63
jmp 0x405c6b
push ebx
call ebp
push str.mp110008
push 0
call fcn.00407060
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push esi
call ebp
push ebx
call ebp
push str.mp110008
push 0
call fcn.00407060
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push edi
call fcn.0040726c
add esp, 4
push esi
call ebp
push ebx
call ebp
push str.mp110008
push 0
call fcn.00407060
add esp, 8
mov eax, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push esi
mov dword [0x41f810], 0
call ebp
push ebx
call ebp
push str.mp110008
push 0
call fcn.00407060
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret