Function at 0x463df0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, 1
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
xor eax, eax
push esi
mov esi, dword [ecx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edi
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [0x69dfc4]
or ebx, 0xffffffff
mov edx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x50], 0x17
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 0x20000
mov dword [esp + 0x2c], 0x60000
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x11
mov dword [esp + 0x30], 9
cmp eax, edi
jne 0x463ea7
push edi
call fcn.0045e0d0
mov dword [0x69dfc4], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x67e894
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, edi
jne 0x46415b
lea ebx, [ebx]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x463f0e
mov eax, dword [esp + edi*4 + 0x50]
lea esp, [esp]
cmp dword [esi + 4], eax
je 0x463eee
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x463ee0
jmp 0x463f0e
test esi, esi
je 0x463f0e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call sub.WS2_32.dll_socket
mov dword [esp + 0xc], eax
mov ebx, eax
cmp eax, 0xffffffff
jne 0x463f1d
inc edi
cmp edi, 2
jl 0x463ed0
cmp ebx, 0xffffffff
je 0x464134
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov edi, 0x17
mov dword [ecx], eax
cmp dword [esi + 4], edi
jne 0x463f41
push 4
lea edx, [esp + 0x24]
push edx
push 0x1b
push 0x29
push ebx
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [esp + 0x20]
push eax
push 0xe
push 0
push ebx
call sub.WS2_32.dll_setsockopt
cmp dword [esi + 4], edi
jne 0x463f68
push 4
lea ecx, [esp + 0x20]
push ecx
push 0xe
push 0x29
push ebx
call sub.WS2_32.dll_setsockopt
push 4
lea edx, [esp + 0x2c]
push edx
push 0x1002
push 0xffff
push ebx
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [esp + 0x30]
push eax
push 0x1001
push 0xffff
push ebx
call sub.WS2_32.dll_setsockopt
lea ecx, [esp + 0x24]
push ecx
push 0x8004667e
push ebx
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x464134
mov edx, dword [esp + 0x14]
movzx edi, word [edx + 4]
test di, di
jne 0x46400c
mov eax, edx
cmp word [eax + 6], di
jne 0x46400c
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
push ecx
push edx
push ebx
call sub.WS2_32.dll_bind
test eax, eax
jne 0x464134
mov eax, dword [0x69dfcc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x463ff2
push 2
call fcn.0045e0d0
mov dword [0x69dfcc], eax
push esi
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
mov eax, edx
movzx ebx, word [eax + 6]
cmp di, bx
jne 0x464082
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
push ebx
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.005bfdd0
add esp, 0xc
mov edx, edi
lea esi, [esp + 0x58]
call fcn.00495f40
mov ecx, dword [esp + 0xc]
push ebx
mov eax, esi
push eax
push ecx
call sub.WS2_32.dll_bind
test eax, eax
jne 0x464130
mov eax, dword [0x69dfcc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x464066
push 2
call fcn.0045e0d0
mov dword [0x69dfcc], eax
push esi
call eax
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
push eax
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x60]
push eax
call fcn.005bfdd0
movzx esi, bx
movzx ecx, di
add esp, 0xc
sub esi, ecx
mov ecx, dword [esp + 0x14]
mov ax, word [ecx + 6]
mov cx, word [ecx + 4]
call fcn.00463d70
movzx ecx, word [esp + 0x58]
movzx edx, ax
mov eax, ecx
sub eax, 2
je 0x4640ea
sub eax, 0x15
je 0x4640ea
cmp dword [0x69aaa4], 2
jg 0x4640f5
push ecx
push str.Unknown_address_family__hu
push 0x2a
push str....._third_partieswebrtc_tice_addr.c
push 2
call fcn.00401310
add esp, 0x14
jmp 0x4640f5
push edx
call sub.WS2_32.dll_htons
mov word [esp + 0x5a], ax
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
push edx
lea eax, [esp + 0x5c]
push eax
push edi
call sub.WS2_32.dll_bind
test eax, eax
je 0x464173
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2740
je 0x464125
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x271d
jne 0x464130
mov ecx, esi
dec esi
test ecx, ecx
jg 0x4640a3
mov ebx, dword [esp + 0xc]
mov eax, dword [0x69dfcc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x46414d
push 2
call fcn.0045e0d0
mov dword [0x69dfcc], eax
push esi
call eax
cmp ebx, 0xffffffff
je 0x46415b
push ebx
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
mov eax, dword [0x69dfcc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x46418c
push 2
call fcn.0045e0d0
mov dword [0x69dfcc], eax
push esi
call eax
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret