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

Disassembly:
sub esp, 0x18
mov eax, dword [0x456fc0]
mov ecx, dword [0x45569c]
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [0x455698]
push esi
mov esi, dword [0x45568c]
imul esi, esi, 0x140f
mov eax, ebp
imul eax, eax, 0x12b9
add esi, eax
mov eax, 0x903bb8bb
imul ecx
add edx, ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x736
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 - 0x5cc]
mov esi, dword [0x4556a0]
mov dword [0x455694], ebx
mov dword [esp + 0x10], 0
jle 0x401a69
mov ecx, dword [0x4556a8]
jmp 0x401834
mov ebx, dword [0x455694]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401865
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, 0xcc33a611
imul esi, esi, 0xe33
imul edi, edi, 0x16cb
imul ecx
add edx, ecx
imul ecx, ecx, 0x5cc
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x5da803a9
imul ebp
sar edx, 0xa
add esi, edx
mov ebp, edx
mov eax, 0x4700d503
imul ebx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebp, 0x1f
add ebp, esi
sub ebp, eax
sub ebp, ecx
mov ecx, dword [0x45568c]
mov edx, ecx
imul edx, edx, 0x15c4
add edi, edx
mov eax, 0x6342662b
imul ebx
imul ebx, ebx, 0x5cc
sar edx, 0xb
mov esi, edx
add edi, edx
mov eax, 0x6d62dd3b
imul ecx
mov ecx, dword [esp + 0x2c]
sar edx, 0xb
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, 0x11d7
mov eax, 0x1cb32649
imul ecx
mov ecx, dword [0x455698]
sar edx, 9
imul ecx, ecx, 0x509
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 0x401b36
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [0x45569c]
cmp eax, 0xffffffff
mov eax, 0x59da2e6b
jne 0x401acd
imul ecx
imul ecx, ecx, 0x736
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a4]
mov edi, eax
mov eax, 0x9cbd99d5
imul edx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0xe33
mov ebx, eax
sub ebx, edi
add ebx, edx
add ebx, ecx
mov ecx, dword [0x45568c]
mov eax, 0x4700d503
imul ecx
sar edx, 9
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 ebp, dword [0x455698]
mov edi, dword [0x455690]
mov eax, 0x5e17e411
imul dword [str._r_____r____]
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x903bb8bb
imul ebp
mov esi, edi
imul esi, esi, 0x140f
mov eax, dword [esp + 0x10]
add edx, ebp
sub esi, ecx
sar edx, 0xb
add esi, edx
mov ecx, edx
shr ecx, 0x1f
add ecx, esi
mov esi, dword [0x4556a0]
mov edx, esi
imul edx, edx, 0xd02
sub ecx, edx
mov edx, dword [esp + 0x34]
inc eax
cmp eax, edx
mov dword [0x4556a8], ecx
mov dword [esp + 0x10], eax
jl 0x40182e
mov ecx, dword [0x45569c]
mov eax, 0x5e17e411
imul esi, esi, 0x16cb
imul edi, edi, 0x5cc
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x6d62dd3b
imul dword [0x4556a4]
sar edx, 0xb
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.0042904d
add esp, 0x18
ret
imul ecx
mov ecx, dword [0x455690]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x9cbd99d5
imul ecx
mov eax, dword [0x4556a8]
sar edx, 0xb
imul eax, eax, 0xaef
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45568c]
imul edx, edx, 0x140f
mov ebx, ecx
mov ecx, dword [0x455694]
sub ebx, edi
add ebx, edx
add ebx, eax
mov eax, 0x4700d503
imul ecx
sar edx, 9
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.0042904d
add esp, 0x18
ret