Function at 0x421000
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51065b
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x56fcd4]
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 - 0x1b0], edi
mov dword [ebp - 0x1b8], edi
push 0x20
mov dword [ebp - 0x1b0], edi
call fcn.004deddf
add esp, 4
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42108c
mov ecx, eax
call fcn.0043af80
mov esi, eax
call fcn.004436b0
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], eax
test esi, esi
jne 0x42150f
mov eax, dword [ebp - 0x1ac]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], esi
jmp 0x42108e
xor eax, eax
mov dword [edi], eax
mov dword [ebp - 4], 1
mov eax, 1
lock xadd dword [0x576418], eax
inc eax
mov esi, 0x57641c
cmp eax, 1
jne 0x4210c3
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [esi], eax
xor esi, esi
mov eax, 0x57641c
lock xadd dword [eax], esi
test esi, esi
jne 0x421520
push 0x64
mov byte [ebp - 4], 2
call fcn.004deddf
add esp, 4
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x421101
push esi
push 0xffffffffffffffff
push edi
mov ecx, eax
call fcn.00425430
mov esi, eax
jmp 0x421103
xor esi, esi
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
call fcn.00413640
mov ecx, dword [edi]
lea eax, [ebp - 0x1a8]
add esp, 8
push esi
push eax
call fcn.0043ad50
mov dword [edi + 8], esi
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 5
push 0
push eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
call fcn.00413620
mov ecx, dword [edi]
lea eax, [ebp - 0x1a8]
add esp, 8
push edi
push 0x40b560
push eax
call fcn.0043c180
mov dword [edi + 0xc], eax
xorps xmm0, xmm0
mov dword [edi + 0x18], 0
lea eax, [edi + 0x50]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 2
mov byte [edi + 0x30], 0
movups xmmword [edi + 0x34], xmm0
movq qword [edi + 0x44], xmm0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x38], 0
mov dword [eax + 4], edi
mov dword [eax + 0x14], 0x51cc4c
mov dword [eax + 0xc], 0x51cc94
mov dword [eax + 0x10], eax
mov dword [eax + 0x18], 0x51cb50
mov esi, dword [edi + 0x1c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1ac], eax
mov dword [edi + 0x10], 0xffffffff
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
test esi, esi
je 0x421229
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x421229
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x421229
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x1ac]
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
lea ecx, [edi + 0x10]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x421253
mov dword [eax + 0x18], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x40], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 6
push 0
lea esi, [edi + 0x6c]
mov dword [ebp - 0x1a8], 0
push eax
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1a4], 0
call fcn.00413600
mov ecx, dword [edi]
lea eax, [ebp - 0x1a8]
add esp, 8
push edi
push 0x40b420
push eax
call fcn.0043c180
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [eax + 4], edi
mov dword [eax + 0x14], 0x51cc4c
mov dword [eax + 0xc], 0x51cc94
mov dword [eax + 0x10], eax
mov dword [eax + 0x18], 0x51cb50
push 0x10
mov byte [ebp - 4], 8
call fcn.004deddf
add esp, 4
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x421317
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_void___struct_asio::detail::socket_ops::noop_deleter_.0
mov dword [eax + 0xc], 0
jmp 0x421319
xor eax, eax
mov dword [esi + 4], 0
mov esi, dword [esi + 8]
mov dword [edi + 0x74], eax
test esi, esi
je 0x42134b
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x42134b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x42134b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xorps xmm0, xmm0
mov byte [ebp - 4], 9
movups xmmword [edi + 0x94], xmm0
movq qword [edi + 0xa4], xmm0
mov dword [edi + 0xac], 0
mov dword [edi + 0x94], 2
mov dword [edi + 0x98], 0
cmp dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1b0], eax
je 0x4213a9
mov esi, 1
call fcn.00443650
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], eax
jmp 0x421454
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x1ac], eax
cmp eax, 0xffffffff
je 0x4213da
xor esi, esi
mov dword [ebp - 0x1a4], 0x56fa24
mov dword [ebp - 0x1a8], esi
jmp 0x421408
call fcn.004436b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1a8], eax
or eax, 0xffffffff
mov dword [ebp - 0x1a4], esi
mov esi, dword [ebp - 0x1b4]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 0xa
cmp eax, 0xffffffff
jne 0x42141d
mov byte [ebp - 4], 9
jmp 0x421454
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, dword [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1dc]
push eax
mov ecx, dword [ecx + 0x18]
call fcn.00448e90
cmp dword [eax], 0
je 0x421460
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 9
call fcn.00429230
mov eax, esi
test eax, eax
jne 0x4214ee
jmp 0x42149d
push dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x1ac]
lea ecx, [edi + 0x18]
push 0
mov dword [ebp - 0x1b4], 0xffffffff
mov dword [edi + 0x10], eax
mov byte [edi + 0x14], 0x20
call fcn.00418220
xor esi, esi
mov dword [ebp - 0x1a4], 0x56fa24
mov dword [ebp - 0x1a8], esi
mov byte [ebp - 4], 9
xorps xmm0, xmm0
mov dword [ebp - 0x1d4], 2
movlpd qword [ebp - 0x1cc], xmm0
movlpd qword [ebp - 0x1c4], xmm0
mov dword [ebp - 0x1d0], 0
movups xmm0, xmmword [ebp - 0x1d4]
mov dword [edi + 0x2c], 2
mov byte [edi + 0x30], 0
movups xmmword [edi + 0x34], xmm0
movq xmm0, qword [ebp - 0x1c4]
movq qword [edi + 0x44], xmm0
mov dword [edi + 0x4c], 0
test esi, esi
jne 0x421542
mov eax, edi
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.004df28f
mov esp, ebp
pop ebp
ret
push str.mutex
lea eax, [ebp - 0x1a8]
push eax
call fcn.0043c050
call fcn.004436b0
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a8]
push str.winsock
push eax
mov dword [ebp - 0x1a8], esi
call fcn.0043c050
push str.open
lea eax, [ebp - 0x1a8]
push eax
call fcn.0043c050
int3