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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x442230]
mov ecx, dword [0x4410cc]
push ebx
mov dword [esp + 0x1c], eax
push ebp
push esi
mov esi, dword [0x4410b4]
mov eax, 0x88a76c3f
imul esi
add edx, esi
sar edx, 0x11
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x197ad0b7
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x10
push edi
add ebx, edx
mov edi, edx
mov eax, 0x3307af59
imul ecx
mov ecx, dword [esp + 0x38]
sar edx, 0x11
shr edi, 0x1f
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, ebx
sub edi, eax
xor eax, eax
test ecx, ecx
mov dword [0x4410c0], edi
mov dword [esp + 0x10], eax
jle 0x407984
mov ecx, dword [0x4410d4]
lea esp, [esp]
test eax, eax
je 0x4077d1
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x4410c0]
mov esi, dword [0x4410b4]
mov ecx, dword [0x4410d4]
mov ebx, dword [0x4410d0]
mov eax, 0x61f4f3e1
imul ebx
sar edx, 0x11
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0x3307af59
imul dword [0x4410bc]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov ebp, eax
mov eax, 0x1984ece9
imul ebx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov dword [0x4410c4], eax
mov eax, 0x88a76c3f
imul esi
add edx, esi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x61f4f3e1
imul edi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x402d6015
imul ecx
sar edx, 0xe
mov ecx, edx
sub edi, esi
add edi, edx
mov edx, dword [esp + 0x30]
shr ecx, 0x1f
add ecx, edi
push edx
mov word [esp + 0x1c], 2
mov dword [0x4410c8], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [str._r_____r____]
mov dword [esp + 0x1c], eax
mov eax, 0x197ad0b7
imul ecx
mov ecx, dword [0x4410cc]
mov eax, ecx
imul eax, eax, 0xa0887
sar edx, 0x10
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, eax
mov eax, 0x40499437
imul ecx
sar edx, 0xe
mov ecx, edx
push 0
shr ecx, 0x1f
add esi, edx
push 1
add ecx, esi
push 2
mov dword [0x4410cc], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079e4
push 0x10
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40799a
mov ecx, dword [0x4410c8]
mov eax, 0x3307af59
imul ecx
imul ecx, ecx, 0xff4b
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4410c4]
mov edi, eax
mov eax, 0x1984ece9
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
sub edi, ecx
push esi
mov dword [0x4410d0], edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [0x4410c0]
mov esi, dword [0x4410b4]
mov ecx, dword [0x4410bc]
imul ecx, ecx, 0xa0c15
mov eax, 0x3307af59
imul esi
mov eax, dword [esp + 0x10]
mov ebx, edi
imul ebx, ebx, 0x53a0f
sub ebx, ecx
sar edx, 0x11
mov ecx, edx
add ebx, edx
mov edx, dword [esp + 0x38]
shr ecx, 0x1f
add ecx, ebx
inc eax
cmp eax, edx
mov dword [0x4410d4], ecx
mov dword [esp + 0x10], eax
jl 0x4077b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
call fcn.00419f5d
add esp, 0x1c
ret
mov ecx, dword [0x4410bc]
mov eax, 0x61f4f3e1
imul ecx
mov ecx, dword [0x4410b8]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xa0c15
cdq
idiv ecx
mov ebx, eax
mov eax, 0x1984ece9
imul ecx
sar edx, 0x10
sub ebx, edi
mov ecx, edx
add ebx, edx
mov edx, dword [esp + 0x34]
shr ecx, 0x1f
add ecx, ebx
mov dword [str._r_____r____], ecx
mov dword [edx], esi
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00419f5d
add esp, 0x1c
ret