Function at 0x4ade00
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, ecx
push 0x78
mov dword [esp + 0x10], edi
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4adf0d
push 0x78
push 0
push esi
call fcn.005869c0
add esp, 0xc
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
xorps xmm0, xmm0
mov word [esp + 0x16], ax
mov eax, 0x17
movaps xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov word [esp + 0x22], ax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], str.ILibMulticastSocket
mov dword [esi + 8], 0x4addf0
mov dword [esi + 0xc], edi
mov word [esi + 0x34], cx
mov dword [esi + 0x2c], 4
mov dword [esi + 0x30], 1
mov dword [esi + 0x38], 0x4012a0
mov dword [esi + 0x24], eax
test edx, edx
je 0x4adf59
movups xmm0, xmmword [edx]
movups xmmword [esi + 0x3c], xmm0
cmp word [esi + 0x3e], 0
jne 0x4adee2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x3e], ax
push esi
push 0
push 0x4ad780
lea eax, [esp + 0x1c]
xor edx, edx
push 1
push eax
mov ecx, edi
call fcn.004ac530
add esp, 0x14
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4adf20
push esi
call fcn.0058bf82
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [esi + 0x2c]
push ecx
push 0xa
push 0
push dword [eax + 0x2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4ae04a
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x30]
push 4
push ecx
push 0xb
push 0
push dword [eax + 0x2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4ae071
cmp dword [ebp + 0x10], 0
je 0x4adfef
push esi
push 0
push 0x4ad7b0
lea eax, [esp + 0x2c]
xor edx, edx
push 1
push eax
mov ecx, edi
call fcn.004ac530
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4adfef
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x5c], xmm0
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
cmp word [esi + 0x4e], 0
jne 0x4adfb3
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x4e], ax
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x2c]
push 4
push ecx
push 0xa
push 0x29
push dword [eax + 0x2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4ae098
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x30]
push 4
push ecx
push 0xb
push 0x29
push dword [eax + 0x2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4ae0bf
xor edx, edx
mov ecx, esi
call fcn.004ad810
mov edi, dword [edi + 0x2f0]
mov ecx, edi
call fcn.004b2df0
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4ae021
mov dword [ecx + 8], eax
cmp dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
jne 0x4ae02d
mov dword [edi + 0xc], eax
inc dword [edi + 4]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xc], eax
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x140
mov edx, 0x61c130
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xfd
call fcn.00587d2d
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x141
mov edx, 0x61c154
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xfd
call fcn.00587d2d
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x156
mov edx, 0x61c178
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xfd
call fcn.00587d2d
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x157
mov edx, 0x61c19c
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xfd
call fcn.00587d2d
int3