Function at 0x40eb90
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7b2f
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x620330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0040b040
mov byte [ebp - 4], 1
cmp byte [0x63021a], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x70], 1
jne 0x40ec5c
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040eae0
cmp dword [ebp - 0x40], 0x10
jb 0x40ec0d
push dword [ebp - 0x54]
call fcn.00446271
add esp, 4
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
jb 0x40ec30
push dword [ebp - 0x6c]
call fcn.00446271
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x40f085
push dword [ebp + 8]
call fcn.00446271
add esp, 4
jmp 0x40f085
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0xdc], 0xf
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
call fcn.00404720
lea eax, [ebp - 0xf0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov ecx, 0x630458
call fcn.0040a650
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x630458]
je 0x40ecb2
mov ebx, dword [eax + 0x28]
cmp dword [ebp - 0xdc], 0x10
jb 0x40ecc9
push dword [ebp - 0xf0]
call fcn.00446271
add esp, 4
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
test ebx, ebx
jne 0x40ed0f
push 0x13
push str.main_link_not_exist
lea ecx, [ebp - 0x6c]
call fcn.00404b60
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040eae0
lea ecx, [ebp - 0x70]
call fcn.00406690
jmp 0x40ec42
lea ecx, [ebx + 0x180]
mov edx, 0x5f426d
call fcn.004115c0
test al, al
je 0x40ed2c
push 0x13
push str.main_link_not_empty
jmp 0x40ecef
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebx + 0x124]
lea esi, [ebp - 0x20]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404720
mov ecx, esi
call fcn.0040a0d0
mov eax, dword [ebp - 0x1c]
add esp, 0x18
sub eax, dword [ebp - 0x20]
sar eax, 2
test eax, eax
je 0x40edb1
push str.ip_link_exist
lea ecx, [ebp - 0x6c]
call fcn.00405990
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040eae0
jmp 0x40f06d
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40ee27
mov byte [ebp - 0x70], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.00405740
push eax
mov edx, str.create_socket_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.004059d0
add esp, 4
lea ecx, [ebp - 0x6c]
push eax
call fcn.004097a0
lea ecx, [ebp - 0xf0]
call fcn.004044c0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.004044c0
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040eae0
jmp 0x40f06d
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x24]
push 4
push ecx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 0x24], 0x40000
call esi
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1001
push 0xffff
push dword [ebp - 0x14]
call esi
push 0x1c8
call fcn.0044623b
mov esi, eax
add esp, 4
mov dword [ebp - 0xd4], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x40ee94
push 0x1c8
push 0
push esi
call fcn.0056fef0
add esp, 8
mov ecx, esi
call fcn.00411fa0
mov esi, eax
jmp 0x40ee96
xor esi, esi
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], 0x40f890
mov dword [esi + 8], 0x40f990
mov dword [esi + 0xc], fcn.00405730
mov dword [esi + 0x10], fcn.0040f9b0
mov dword [esi + 0x14], 0x40fcf0
mov dword [esi + 0x30], eax
mov eax, dword [0x621720]
mov byte [esi + 0x4e], 1
mov dword [esi + 0x58], eax
mov eax, dword [0x62171c]
mov dword [esi + 0x5c], eax
mov eax, dword [0x6301cc]
cmp eax, 0x64
mov dword [ebp - 0xd4], esi
cmovge eax, ecx
lea ecx, [ebp - 0x108]
inc eax
mov dword [0x6301cc], eax
mov dword [esi + 0x11c], eax
call fcn.0041fdf0
lea ecx, [esi + 0x18]
push eax
call fcn.004097a0
lea ecx, [ebp - 0x108]
call fcn.004044c0
mov byte [esi + 0x120], 0
lea ecx, [esi + 0x124]
mov eax, dword [ebx + 0x140]
mov dword [esi + 0x140], eax
lea eax, [ebx + 0x124]
cmp ecx, eax
je 0x40ef42
push 0xffffffffffffffff
push 0
push eax
call fcn.00404720
mov eax, dword [ebx + 0x144]
mov dword [esi + 0x144], eax
call fcn.0041fc50
mov dword [esi + 0x148], eax
mov byte [esi + 0x150], 1
call fcn.00442470
mov dword [esi + 0x64], eax
lea ecx, [esi + 0x168]
mov ax, word [ebx + 0x13c]
mov word [esi + 0x13c], ax
lea eax, [ebx + 0x18]
mov byte [esi + 0x165], 1
cmp ecx, eax
je 0x40ef94
push 0xffffffffffffffff
push 0
push eax
call fcn.00404720
lea ecx, [ebx + 0x180]
lea eax, [esi + 0x18]
cmp ecx, eax
je 0x40efab
push 0xffffffffffffffff
push 0
push eax
call fcn.00404720
mov edx, 0x604282
lea ecx, [ebp - 0xd0]
call fcn.00436c00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x108]
mov edx, dword [esi + 0x11c]
call fcn.00405740
mov esi, eax
push ecx
push 0x5f6768
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.004106b0
push 0xffffffffffffffff
push 0
push esi
push 3
push eax
lea ecx, [ebp - 0xc8]
call fcn.004099b0
lea ecx, [ebp - 0xc8]
cmp ecx, eax
je 0x40f00e
push 0xffffffffffffffff
push 0
push eax
call fcn.00404720
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 5
call fcn.004044c0
lea ecx, [ebp - 0xd0]
call fcn.00436e80
lea eax, [ebp - 0xd4]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00411530
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00406090
lea eax, [ebp - 0x70]
mov byte [ebp - 0x70], 1
push eax
mov ecx, edi
call fcn.0040eae0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x74], 0
je 0x40f062
call fcn.0056c710
lea ecx, [ebp - 0xd0]
call fcn.0040cb60
lea ecx, [ebp - 0x20]
call fcn.00407850
lea ecx, [ebp - 0x70]
call fcn.00406690
lea ecx, [ebp + 8]
call fcn.004044c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056bc07
mov esp, ebp
pop ebp
ret