Function at 0x4803a4
Capabilities:
Resolve function by parsing pe exports
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, edx
push edi
xor edi, edi
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x18], edi
mov ebp, edi
mov dword [esp + 0x10], edi
inc ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov ebx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
test eax, eax
jne 0x480491
lea ecx, [esp + 0x10]
call fcn.00480cb5
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x74]
jne 0x480402
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4803fd
cmp dword [esi + 0x70], edi
je 0x480421
jmp 0x480402
cmp dword [esi + 0x70], ebx
jne 0x480409
xor ecx, ecx
lea ebx, [ecx + 1]
jmp 0x480421
shl eax, 4
push eax
push dword [esi + 0x70]
push ecx
call fcn.00642a20
add esp, 0xc
test eax, eax
push 1
pop ecx
cmovne ebx, ecx
cmp dword [esi + 0x24], edi
je 0x480469
lea ecx, [esp + 0x14]
call fcn.00480e1e
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x7c]
jne 0x48048e
test ebp, ebp
je 0x48045f
cmp dword [esi + 0x78], edi
je 0x48048e
shl eax, 2
push eax
push dword [esi + 0x78]
push ebp
call fcn.00642a20
add esp, 0xc
test eax, eax
push 1
pop ecx
cmovne ebx, ecx
jmp 0x48046c
xor ecx, ecx
inc ecx
cmp dword [esi + 0x78], edi
jne 0x480491
jmp 0x48046c
xor ecx, ecx
inc ecx
test ebx, ebx
jne 0x480491
push ecx
push dword [esp + 0x14]
call fcn.005e7dd0
xor ecx, ecx
inc ecx
push ecx
push ebp
call fcn.005e7dd0
add esp, 0x10
xor eax, eax
jmp 0x48073b
xor ecx, ecx
inc ecx
cmp dword [esi + 0x70], edi
je 0x4804a4
push ecx
push dword [esi + 0x70]
call fcn.005e7dd0
pop ecx
pop ecx
mov dword [esi + 0x70], edi
cmp dword [esi + 0x78], edi
je 0x4804ba
xor eax, eax
inc eax
push eax
push dword [esi + 0x78]
call fcn.005e7dd0
pop ecx
pop ecx
mov dword [esi + 0x78], edi
cmp dword [esi + 0x28], edi
je 0x4804ef
mov ebx, edi
cmp dword [esi + 0x74], edi
jle 0x4804de
mov eax, dword [esi + 0x28]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x4804d8
mov ecx, dword [esi + 0x10]
call fcn.0048183b
inc ebx
cmp ebx, dword [esi + 0x74]
jl 0x4804c6
xor eax, eax
inc eax
push eax
push dword [esi + 0x28]
call fcn.005e7dd0
pop ecx
pop ecx
mov dword [esi + 0x28], edi
cmp dword [esp + 0x20], edi
jne 0x480487
movzx eax, word [esi + 0x3c]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push eax
call ebx
movzx eax, word [esi + 0x3c]
push eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4806ed
cmp word [esi + 0x44], di
je 0x4806e1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x70], eax
test ecx, ecx
jle 0x4806ed
xor eax, eax
mov ebx, 0x9c
push ebx
inc eax
push 0x71f9b0
push eax
mov eax, ecx
shl eax, 2
push eax
call fcn.005e7f10
add esp, 0x10
mov dword [esi + 0x28], eax
test eax, eax
je 0x480743
mov ebx, edi
cmp dword [esi + 0x74], edi
jle 0x4806ed
mov dword [esp + 0x10], edi
movzx eax, word [esi + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0x10]
push esi
push edi
push 0x480346
mov word [edx + ecx + 2], ax
xor eax, eax
mov ecx, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esi + 0x70]
add eax, edx
xor edx, edx
push eax
call fcn.0047f1f2
mov ecx, dword [esi + 0x28]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x480683
mov ecx, dword [ecx + 0x18]
call fcn.00481286
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x44]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x18], str.ILibMulticastSocket_v4
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x70]
add eax, dword [esp + 0x10]
push eax
mov ecx, dword [ecx + ebx*4]
call fcn.0047f3dd
mov ecx, dword [esi + 0x70]
add ecx, dword [esp + 0x14]
push 0x10
pop eax
push 0x1c
cmp word [ecx], 0x17
pop edx
cmove eax, edx
push eax
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [eax + ebx*4]
add ecx, 0x5c
call section..text
mov eax, dword [esi + 0x28]
add esp, 0xc
mov eax, dword [eax + ebx*4]
push 4
mov ecx, dword [eax + 0x34]
lea eax, [esi + 0x34]
push eax
push 0xa
push edi
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4806cd
push 4
lea eax, [esi + 0x38]
push eax
push 0xb
push edi
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4806b9
push 4
lea eax, [esi + 0x38]
push eax
push 0xb
push edi
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
test eax, eax
jne 0x480694
mov eax, dword [esi + 0x70]
xor edx, edx
mov ecx, dword [esp + 0x14]
push edi
mov word [ecx + eax + 2], dx
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push 4
lea eax, [esp + 0x40]
push eax
push 0x9800000c
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
add dword [esp + 0x10], 0x10
inc ebx
cmp ebx, dword [esi + 0x74]
jl 0x480568
jmp 0x4806ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xac
mov edx, 0x71faa0
xor ecx, ecx
call fcn.00488a50
add esp, 0xc
push 0xfd
jmp 0x480771
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xab
mov edx, 0x71fa7c
jmp 0x4806a5
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaa
mov edx, 0x71fa58
jmp 0x4806a5
xor ecx, ecx
inc ecx
push ecx
push eax
call fcn.005e7dd0
pop ecx
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x480728
test ebp, ebp
je 0x480738
cmp word [esi + 0x54], di
je 0x480728
cmp dword [esi + 0x24], edi
je 0x480728
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebp
test eax, eax
jle 0x480738
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x54]
mov ecx, dword [esi + 0x24]
push dword [eax + edi*4]
call fcn.0047f418
inc edi
pop ecx
cmp edi, dword [esi + 0x7c]
jl 0x48070e
jmp 0x480738
test ebp, ebp
je 0x480738
xor eax, eax
inc eax
push eax
push ebp
call fcn.005e7dd0
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x71f9d4
push esi
push ebx
xor ecx, ecx
call fcn.00488a50
push ebx
push 0x71f9f8
push 0x71fa1c
call fcn.00401109
add esp, 0x18
push esi
call fcn.005c3000
int3