Function at 0x408d00
Capabilities:
Create tcp socket
Create thread
Set socket configuration

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx]
push edi
cmp eax, 0xffffffff
jne 0x408f28
xor edi, edi
mov ebp, 1
push edi
push ebp
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [esp + 0x10]
push 4
push eax
push 0x80
mov word [esp + 0x1c], di
mov word [esp + 0x1e], di
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 0xffff
push esi
call edi
lea ecx, [esp + 0x14]
push 4
push ecx
push 8
push 0xffff
push esi
mov dword [esp + 0x28], ebp
call edi
lea edx, [esp + 0x14]
push 4
push edx
push ebp
push 6
push esi
call edi
mov eax, dword [esp + 0x2c]
mov edi, 2
cmp eax, edi
jne 0x408e8c
mov eax, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x1a], edx
mov word [esp + 0x18], di
mov cx, word [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1e], edx
push ecx
mov dword [esp + 0x26], edx
mov dword [esp + 0x20], eax
mov word [esp + 0x2a], dx
call dword [sym.imp.WSOCK32.dll_htons]
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408dd7
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x18
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x408df9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x18
push ebx
push 0
push 0x4090d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408e23
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x18
mov ecx, 0x40fe08
mov dword [ebx + 8], eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
call fcn.004090c0
push 0x1c
mov edi, eax
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x18], ecx
mov dword [edx], esi
mov dword [edx + 4], 0xffffffff
mov dword [edx + 8], 2
mov dword [edx + 0x14], eax
mov ecx, 0x40fe08
jmp 0x408ef4
cmp eax, ebp
jne 0x408f26
mov ecx, 0x40fdb8
mov dword [ebx], esi
mov dword [ebx + 4], ebp
call fcn.004090c0
push 0x1c
mov edi, eax
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x18], ecx
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], 1
mov dword [edx + 0x14], eax
mov ecx, 0x40fdb8
call fcn.00409c00
push ebx
push 0
push 0x4091f0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408f23
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x18
mov dword [ebx + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18