Function at 0x418fc0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ea83
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1d8], edi
push 0
push 0x5707b4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0040a4a0
mov dword [ebp - 4], 0
call fcn.00415370
mov esi, eax
mov dword [ebp - 0x1e8], esi
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push 0xc
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.UDPBroadcast
mov byte [ecx], 0
call fcn.0040a4a0
lea eax, [ebp - 0x1e0]
mov byte [ebp - 4], 2
push eax
sub esp, 0x18
mov ecx, esp
push 0x13
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.FindServerBroadcast
mov byte [ecx], 0
call fcn.0040a4a0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00414860
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push 0xc
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.UDPBroadcast
mov byte [ecx], 0
call fcn.0040a4a0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
sub esp, 0x18
mov ecx, esp
push 8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.ServerId
mov byte [ecx], 0
call fcn.0040a4a0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00414a30
cmp dword [ebp - 0x1e0], 0
je 0x4196d5
lea eax, [edi + 0x1c]
mov edi, dword [eax]
mov ecx, eax
mov byte [ebp - 4], 4
push dword [edi + 4]
call fcn.0041a810
mov ecx, dword [ebp - 0x1d8]
mov byte [ebp - 4], 1
mov eax, dword [ecx + 0x1c]
mov dword [eax + 4], edi
mov eax, dword [ecx + 0x1c]
mov dword [eax], edi
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], edi
mov edi, ecx
mov dword [edi + 0x20], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
call eax
push 0x11
push 2
push 2
mov dword [ebp - 0x1dc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [edi + 0x18], eax
test eax, eax
je 0x4196ce
cmp eax, 0xffffffff
je 0x4196ce
push dword [ebp - 0x1dc]
mov eax, 2
mov word [ebp - 0x80], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
mov word [ebp - 0x7e], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push 0x10
push eax
push dword [edi + 0x18]
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
js 0x4196d5
cmp dword [edi + 4], 2
jne 0x4191d5
lea eax, [edi + 0xc]
mov dword [edi + 0x10], 1
push eax
push 0
push edi
push 0x418e00
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
test eax, eax
je 0x4191d5
mov dword [edi + 4], 0
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1e4], 0
call fcn.0040fa30
push 1
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x70]
push ecx
push 0x57200c
push eax
call fcn.0040e870
mov ecx, dword [ebp - 0x1d8]
add esp, 0xc
call fcn.004097a0
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 1
call fcn.00410250
lea eax, [ebp - 0x1e4]
push eax
push 0
call fcn.00415130
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0040f8c0
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x130], 0
add esp, 0x10
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
cmp eax, ecx
je 0x41926d
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.0040a4a0
push dword [ebp - 0x1dc]
lea eax, [ebp - 0x2b]
mov byte [ebp - 4], 6
push eax
call fcn.0040f8c0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x118], 0
add esp, 8
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp eax, ecx
je 0x4192b4
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.0040a4a0
lea eax, [ebp - 0x43]
mov byte [ebp - 4], 7
push 1
push eax
call fcn.0040f8c0
lea ecx, [ebp - 0x43]
mov dword [ebp - 0x100], 0
add esp, 8
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
cmp eax, ecx
je 0x4192f7
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x110]
call fcn.0040a4a0
push 7
push str._cmd_:
push 0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 8
call fcn.0040a590
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 8
push str.__port_:
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 9
call fcn.0040a340
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xd0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.0040e6c0
add esp, 0xc
push 0xb
push str.__version_:
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.0040a340
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.0040e6c0
add esp, 0xc
push 0xd
push str.__serverId_:_
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040a340
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040a340
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x572028
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xf
call fcn.0040a340
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x17c], xmm0
mov byte [eax], 0
lea ecx, [ebp - 0x98]
call fcn.00408f00
lea ecx, [ebp - 0xb0]
call fcn.00408f00
lea ecx, [ebp - 0x1bc]
call fcn.00408f00
lea ecx, [ebp - 0xc8]
call fcn.00408f00
lea ecx, [ebp - 0x1d4]
call fcn.00408f00
lea ecx, [ebp - 0xe0]
call fcn.00408f00
lea ecx, [ebp - 0xf8]
call fcn.00408f00
lea ecx, [ebp - 0x110]
call fcn.00408f00
lea ecx, [ebp - 0x128]
call fcn.00408f00
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x1a
call fcn.00408f00
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x200]
call fcn.0040b5a0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp dword [ebp - 0x1ec], 0x10
lea eax, [ebp - 0x200]
push dword [ebp - 0x1f0]
cmovae eax, dword [ebp - 0x200]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x174]
call fcn.0040a4a0
mov ax, word [ebp + 8]
mov ecx, edi
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x174]
push eax
push 0
push 0x410bcb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414040
mov edx, dword [ebp - 0x190]
cmp edx, 0x10
jb 0x419658
mov ecx, dword [ebp - 0x1a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41964e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419769
push edx
push ecx
call fcn.005189ee
add esp, 8
lea ecx, [ebp - 0x174]
call fcn.00410420
mov edx, dword [ebp - 0x1ec]
mov byte [ebp - 4], 0x1a
cmp edx, 0x10
jb 0x4196a1
mov ecx, dword [ebp - 0x200]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419697
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41976e
push edx
push ecx
call fcn.005189ee
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 0x7d0
call dword [eax + 8]
mov ecx, edi
call fcn.00418ca0
mov ecx, edi
call fcn.00419780
lea ecx, [ebp - 0x18c]
call fcn.00408f00
mov esi, dword [ebp - 0x1e8]
jmp 0x4196d5
mov dword [edi + 0x18], 0
test esi, esi
je 0x41971c
push 0x5c8668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5c8684]
test eax, eax
je 0x419711
sub eax, 1
mov dword [0x5c8684], eax
jne 0x419711
mov ecx, dword [0x5c8680]
test ecx, ecx
je 0x419711
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x5c8680], 0
push 0x5c8668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x41974c
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419773
push edx
push ecx
call fcn.005189ee
add esp, 8
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.005189ad
mov esp, ebp
pop ebp
ret 4
call fcn.00545078
call fcn.00545078
call fcn.00545078
int3