Function at 0x40a14f
Capabilities:
Check mutex on windows
Create thread
Initialize winsock library

Disassembly:
push ebp
sub esp, 0x2cc
lea ebp, [esp - 4]
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0x2cc], eax
push 0x330
mov eax, 0x44166e
call fcn.0042baa9
lea eax, [ebp]
push eax
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40a3a2
push 0x10
pop edi
push edi
xor ebx, ebx
lea eax, [ebp + 0x1bc]
push ebx
push eax
call fcn.0042bc20
push edi
lea eax, [ebp + 0x190]
push ebx
push eax
call fcn.0042bc20
add esp, 0x18
push 1
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40a3a2
push 2
pop eax
push ebx
mov word [ebp + 0x1bc], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp + 0x1c0], eax
cmp dword [esi + 0x80], edi
jb 0x40a1ef
mov eax, dword [esi + 0x6c]
jmp 0x40a1f2
lea eax, [esi + 0x6c]
push eax
call fcn.0042c988
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 0x1be], ax
push edi
lea eax, [ebp + 0x1bc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40a3a2
push 5
push dword [ebp - 0x14]
call dword [0x4c6478]
test eax, eax
jne 0x40a3a2
push 0x4446e5
lea ecx, [ebp + 0x1a0]
call fcn.00401f30
mov edi, 0xff
push edi
lea eax, [ebp + 0x1cc]
push eax
mov dword [ebp - 4], ebx
call dword [0x4c647c]
cmp eax, 0xffffffff
lea eax, [ebp + 0x1cc]
jne 0x40a272
push edi
push ebx
push eax
call fcn.0042bc20
add esp, 0xc
jmp 0x40a2dc
push eax
call dword [0x4c6474]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
cmp dword [eax], ebx
je 0x40a2dc
xor edi, edi
cmp dword [ebp - 0x10], ebx
jle 0x40a29c
push 0x2e
push 1
lea ecx, [ebp + 0x1a0]
call fcn.00408b4b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
push 4
push dword [eax + edi]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042c9b0
add esp, 0xc
push dword [ebp - 0x1c]
call dword [0x4c6470]
push eax
lea ecx, [ebp + 0x1a0]
call fcn.004050aa
inc dword [ebp - 0x10]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
shl edi, 2
cmp dword [edi + eax], ebx
jne 0x40a288
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x31
mov dword [esi + 0xdc], eax
lea eax, [ebp - 0x274]
pop ecx
or dword [eax], 0xffffffff
mov dword [eax + 4], ebx
add eax, 8
dec ecx
jns 0x40a2f4
xor eax, eax
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x274]
jmp 0x40a310
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
lea eax, [ebp + eax*4 - 0xe4]
push eax
push ebx
push edi
push 0x40a13b
push ebx
push ebx
mov dword [edi + 4], esi
call fcn.0042ce4c
add esp, 0x18
inc dword [ebp - 0x10]
add edi, 8
cmp dword [ebp - 0x10], 0x32
jl 0x40a30d
cmp byte [esi + 0x48], bl
jne 0x40a37d
lea edi, [esi + 0xbc]
push ebx
push ebx
push dword [ebp - 0x14]
call dword [0x4c646c]
push 0xffffffffffffffff
push dword [esi + 0xdc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00409635
push dword [esi + 0xdc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esi + 0x48], bl
je 0x40a345
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [0x4c6464]
call dword [0x4c6460]
push ebx
push 1
lea ecx, [ebp + 0x1a0]
call fcn.004017f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2cc]
xor ecx, ebp
call fcn.0042ba9a
add ebp, 0x2d0
leave
ret