Function at 0x4017b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x456fc0]
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [0x45568c]
imul edx, edx, 0x6e7be
mov ebp, dword [0x455698]
mov ecx, ebp
imul ecx, ecx, 0x5715a
add ecx, edx
mov eax, 0x30f1b28f
imul dword [0x45569c]
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x8aa1b
mov esi, dword [0x4556a4]
sub ecx, eax
add ecx, esi
mov esi, dword [0x455690]
lea ebx, [edx + ecx - 0x205c4]
mov ecx, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
mov edi, dword [0x4556a0]
mov dword [0x455694], ebx
mov dword [esp + 0x10], eax
jle 0x401a6e
mov ecx, dword [0x4556a8]
jmp 0x401840
mov ebx, dword [0x455694]
test eax, eax
je 0x40186d
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [0x455694]
mov ebp, dword [0x455698]
mov edi, dword [0x4556a0]
mov ecx, dword [0x4556a8]
mov esi, dword [0x455690]
mov eax, 0x9e71fdc9
imul edi, edi, 0x53aff
imul esi, esi, 0xdc98b
imul ebp
add edx, ebp
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x944b09c1
imul ecx
add edx, ecx
imul ecx, ecx, 0x205c4
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x3b1784cb
imul ebx
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebp, edi
sub ebp, eax
sub ebp, ecx
mov ecx, dword [0x45568c]
mov eax, 0x1784740b
imul ecx
imul ecx, ecx, 0x8a933
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov eax, 0xcccc28f7
imul ebx
mov ecx, ebx
imul ecx, ecx, 0x205c4
add edx, ebx
sar edx, 0x13
add esi, ecx
mov ecx, dword [esp + 0x2c]
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
push ecx
mov dword [0x455698], ebp
mov word [esp + 0x18], 2
mov dword [0x45569c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [0x455698]
mov esi, dword [str._r_____r____]
imul edx, edx, 0x64985
mov ecx, dword [0x45568c]
imul esi, esi, 0xbae2b
mov dword [esp + 0x18], eax
sub esi, edx
mov eax, 0x57ab2ce3
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push 1
sub esi, eax
push 2
mov dword [0x4556a0], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b44
push 0x10
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
mov eax, 0x948af151
jne 0x401ad4
mov ecx, dword [0x45569c]
mov edi, dword [0x455688]
imul ecx
add edx, ecx
imul ecx, ecx, 0x8aa1b
imul edi, edi, 0x53aff
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
mov ecx, dword [0x45568c]
mov eax, 0x3b1784cb
imul ecx
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
mov ecx, dword [0x4556a4]
mov eax, 0xcccc28f7
imul ecx
add edx, ecx
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
push esi
mov dword [0x4556a4], edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebp, dword [0x455698]
mov esi, dword [0x455690]
mov eax, 0x30f1b28f
imul ebp
mov edi, esi
imul edi, edi, 0x6e7be
sar edx, 0x10
add edi, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, edi
mov edi, dword [0x4556a0]
mov edx, edi
imul edx, edx, 0xaafdf
sub ecx, edx
mov eax, 0x3b1db3af
imul dword [str._r_____r____]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [0x4556a8], ecx
mov dword [esp + 0x10], eax
jl 0x40183a
mov eax, 0x1784740b
imul edi, edi, 0xfff23675
imul esi, esi, 0x205c4
imul dword [0x4556a4]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x3b1db3af
imul dword [0x45569c]
mov eax, dword [0x455688]
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add edi, edx
mov edx, dword [str._r_____r____]
add ecx, edi
sub ecx, esi
pop edi
add ecx, edx
pop esi
add eax, ecx
pop ebp
mov dword [0x455688], eax
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.0042909d
add esp, 0x18
ret
mov edi, dword [0x4556a8]
mov ecx, dword [0x45568c]
imul edi, edi, 0xcecf4
imul ecx, ecx, 0x6e7be
add edi, ecx
mov ecx, dword [0x45569c]
imul ecx
add edx, ecx
mov ecx, dword [0x455694]
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x3b1784cb
imul ecx
mov ecx, dword [0x455690]
sar edx, 0x11
add edi, edx
mov ebx, edx
mov eax, 0xcccc28f7
imul ecx
add edx, ecx
sar edx, 0x13
mov ecx, edx
shr ebx, 0x1f
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x30]
add ebx, edi
sub ebx, ecx
mov dword [str._r_____r____], ebx
mov dword [edx], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.0042909d
add esp, 0x18
ret