Function at 0x4ae570
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6019e4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, ecx
push 0x78
mov dword [esp + 0x10], edi
call fcn.0058db11
mov esi, eax
add esp, 4
test esi, esi
je 0x4ae67d
push 0x78
push 0
push esi
call fcn.00587250
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], 0x4ae560
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 0x4ae6c9
movups xmm0, xmmword [edx]
movups xmmword [esi + 0x3c], xmm0
cmp word [esi + 0x3e], 0
jne 0x4ae652
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x3e], ax
push esi
push 0
push 0x4adef0
lea eax, [esp + 0x1c]
xor edx, edx
push 1
push eax
mov ecx, edi
call fcn.004acca0
add esp, 0x14
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4ae690
push esi
call fcn.0058c812
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005852a8
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 0x4ae7ba
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 0x4ae7e1
cmp dword [ebp + 0x10], 0
je 0x4ae75f
push esi
push 0
push 0x4adf20
lea eax, [esp + 0x2c]
xor edx, edx
push 1
push eax
mov ecx, edi
call fcn.004acca0
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4ae75f
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 0x4ae723
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 0x4ae808
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 0x4ae82f
xor edx, edx
mov ecx, esi
call fcn.004adf80
mov edi, dword [edi + 0x2f0]
mov ecx, edi
call fcn.004b3590
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 0x4ae791
mov dword [ecx + 8], eax
cmp dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
jne 0x4ae79d
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.005852a8
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x140
mov edx, 0x623d90
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xfd
call fcn.005885bd
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x141
mov edx, 0x623db4
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xfd
call fcn.005885bd
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x156
mov edx, 0x623dd8
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xfd
call fcn.005885bd
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x157
mov edx, 0x623dfc
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xfd
call fcn.005885bd
int3