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

Disassembly:
sub esp, 0x18
mov eax, dword [0x456fc0]
mov ecx, dword [0x45569c]
mov dword [esp + 0x14], eax
mov eax, dword [0x45568c]
push ebx
imul eax, eax, 0x217
push ebp
mov ebp, dword [0x455698]
push esi
mov esi, ebp
imul esi, esi, 0x1ed
add esi, eax
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x92
sub esi, eax
mov eax, dword [esp + 0x30]
push edi
add esi, dword [0x4556a4]
test eax, eax
mov edi, dword [0x455690]
lea ebx, [edx + esi - 0xb8]
mov esi, dword [0x4556a0]
mov dword [0x455694], ebx
mov dword [esp + 0x10], 0
jle 0x401a79
mov ecx, dword [0x4556a8]
jmp 0x401843
mov ebx, dword [0x455694]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401874
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [0x455694]
mov ebp, dword [0x455698]
mov esi, dword [0x4556a0]
mov ecx, dword [0x4556a8]
mov edi, dword [0x455690]
mov eax, 0x3d3fa421
imul esi, esi, 0x14f
imul edi, edi, 0x217
imul ecx
imul ecx, ecx, 0xb8
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x6d978b8f
imul ebp
sar edx, 7
add esi, edx
mov ebp, edx
mov eax, 0xe070381d
imul ebx
add edx, ebx
sar edx, 7
shr ebp, 0x1f
add ebp, esi
sub ebp, ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebp, ecx
mov ecx, dword [0x45568c]
mov edx, ecx
imul edx, edx, 0x23c
add edi, edx
mov eax, 0x709ad4e5
imul ebx
imul ebx, ebx, 0xb8
sar edx, 8
mov esi, edx
add edi, edx
mov eax, 0x42776e9b
imul ecx
mov ecx, dword [esp + 0x2c]
sar edx, 7
mov eax, edx
shr esi, 0x1f
shr eax, 0x1f
add esi, edi
add eax, edx
sub esi, eax
add esi, ebx
push ecx
mov dword [0x455698], ebp
mov word [esp + 0x18], 2
mov dword [0x45569c], esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [0x45568c]
mov esi, dword [str._r_____r____]
mov dword [esp + 0x18], eax
imul esi, esi, 0x1d3
mov eax, 0x8c55841d
imul ecx
add edx, ecx
mov ecx, dword [0x455698]
sar edx, 8
imul ecx, ecx, 0x59
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0
sub esi, eax
push 1
add esi, ecx
push 2
mov dword [0x4556a0], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b4e
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
mov eax, 0x709ad4e5
jne 0x401add
mov ecx, dword [0x4556a4]
imul ecx
mov ecx, dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xc2c05bdf
imul ecx
imul ecx, ecx, 0x92
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x14f
mov ebx, eax
sub ebx, edi
add ebx, edx
add ebx, ecx
mov ecx, dword [0x45568c]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
push esi
mov dword [0x4556a4], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [0x455690]
mov esi, dword [0x4556a0]
mov ebp, dword [0x455698]
mov eax, 0x3949660b
imul dword [str._r_____r____]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, edi
imul ebx, ebx, 0x217
mov edx, esi
imul edx, edx, 0x14a
sub ebx, ecx
sub ebx, edx
mov eax, 0xc3a13de7
imul ebp
mov eax, dword [esp + 0x10]
add edx, ebp
sar edx, 8
mov ecx, edx
add ebx, edx
mov edx, dword [esp + 0x34]
shr ecx, 0x1f
add ecx, ebx
inc eax
cmp eax, edx
mov dword [0x4556a8], ecx
mov dword [esp + 0x10], eax
jl 0x40183d
mov ecx, dword [0x45569c]
mov eax, 0x3949660b
imul esi, esi, 0x217
imul edi, edi, 0xb8
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x42776e9b
imul dword [0x4556a4]
sar edx, 7
mov eax, edx
shr eax, 0x1f
sub ecx, esi
add eax, edx
mov edx, dword [str._r_____r____]
sub ecx, eax
mov eax, dword [0x455688]
sub ecx, edi
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.004291fd
add esp, 0x18
ret
mov ecx, dword [0x455690]
imul ecx
mov ecx, dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xc2c05bdf
imul ecx
mov eax, dword [0x4556a8]
sar edx, 7
imul eax, eax, 0x12b
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45568c]
imul edx, edx, 0x217
mov ebx, ecx
mov ecx, dword [0x455694]
sub ebx, edi
add ebx, edx
add ebx, eax
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
add ebx, edx
mov edx, dword [esp + 0x30]
shr ecx, 0x1f
add ecx, ebx
mov dword [str._r_____r____], ecx
mov dword [edx], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004291fd
add esp, 0x18
ret