Function at 0x140077ae0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x120
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, qword [rcx]
xor eax, eax
xor edi, edi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov rax, qword [0x1402e6cf0]
or rbp, 0xffffffffffffffff
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x50], reloc.WS2_32.dll_socket
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x40], 0x20000
mov dword [rsp + 0x48], 0x60000
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x64], reloc.WS2_32.dll_recvfrom
mov dword [rsp + 0x58], 9
test rax, rax
jne 0x140077ba2
xor ecx, ecx
call fcn.140071000
mov qword [0x1402e6cf0], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x58]
lea rdx, [0x1402a9338]
mov rcx, rbx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
je 0x140077bcf
or rax, 0xffffffffffffffff
jmp 0x140077f5b
mov qword [rsp + 0x160], rsi
mov rsi, qword [rsp + 0x30]
nop dword [rax]
mov rbx, rsi
test rsi, rsi
je 0x140077c22
mov eax, dword [rsp + rdi*4 + 0x50]
nop dword [rax]
cmp dword [rbx + 4], eax
je 0x140077c00
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140077bf0
jmp 0x140077c22
test rbx, rbx
je 0x140077c22
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call sub.WS2_32.dll_socket
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140077c35
mov rsi, qword [rsp + 0x30]
inc rdi
cmp rdi, 2
jl 0x140077be0
cmp rbp, 0xffffffffffffffff
je 0x140077f21
mov eax, dword [rbx + 4]
mov dword [r12], eax
cmp dword [rbx + 4], 0x17
jne 0x140077c60
mov edx, 0x29
lea r9, [rsp + 0x44]
mov rcx, rbp
lea r8d, [rdx - 0xe]
mov dword [rsp + 0x20], 4
call sub.WS2_32.dll_setsockopt
xor edx, edx
lea r9, [rsp + 0x38]
mov rcx, rbp
lea r8d, [rdx + 0xe]
mov dword [rsp + 0x20], 4
call sub.WS2_32.dll_setsockopt
cmp dword [rbx + 4], 0x17
jne 0x140077c9f
mov edx, 0x29
lea r9, [rsp + 0x38]
mov rcx, rbp
lea r8d, [rdx - 0x1b]
mov dword [rsp + 0x20], 4
call sub.WS2_32.dll_setsockopt
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rbp
mov dword [rsp + 0x20], 4
call sub.WS2_32.dll_setsockopt
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbp
mov dword [rsp + 0x20], 4
call sub.WS2_32.dll_setsockopt
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, rbp
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x140077f1c
movzx edi, word [r13 + 8]
test di, di
jne 0x140077d4f
cmp word [r13 + 0xa], di
jne 0x140077d4f
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rbp
call sub.WS2_32.dll_bind
test eax, eax
jne 0x140077eeb
mov rax, qword [0x1402e6d00]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140077d42
lea ecx, [rax + 2]
call fcn.140071000
mov qword [0x1402e6d00], rax
mov rcx, rbx
call rax
mov rax, rbp
jmp 0x140077f53
movzx esi, word [r13 + 0xa]
cmp di, si
jne 0x140077e21
movsxd rsi, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x90]
mov r8, rsi
call fcn.1401e75a0
movzx r11d, word [rsp + 0x90]
cmp r11d, 2
je 0x140077dc9
cmp r11d, 0x17
je 0x140077db7
cmp dword [reloc.WS2_32.dll_accept], 2
jg 0x140077dd9
mov r8d, 0x2a
lea r9, str.Unknown_address_family__hu
lea rdx, str....._third_partieswebrtc_tice_addr.c
lea ecx, [r8 - 0x28]
mov dword [rsp + 0x20], r11d
call fcn.1400045f0
jmp 0x140077dd9
movzx ecx, di
call sub.WS2_32.dll_htons
mov word [rsp + 0x92], ax
jmp 0x140077dd9
movzx ecx, di
call sub.WS2_32.dll_htons
mov word [rsp + 0x92], ax
lea rdx, [rsp + 0x90]
mov r8d, esi
mov rcx, rbp
call sub.WS2_32.dll_bind
test eax, eax
jne 0x140077eeb
mov rax, qword [0x1402e6d00]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140077e14
lea ecx, [rax + 2]
call fcn.140071000
mov qword [0x1402e6d00], rax
mov rcx, rbx
call rax
mov rax, rbp
jmp 0x140077f53
movsxd r12, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x90]
mov r8, r12
call fcn.1401e75a0
movzx ebx, si
movzx eax, di
sub ebx, eax
movzx edx, word [r13 + 0xa]
movzx ecx, word [r13 + 8]
call fcn.140077a50
movzx ecx, word [rsp + 0x90]
cmp ecx, 2
je 0x140077ea0
cmp ecx, 0x17
je 0x140077e8e
cmp dword [reloc.WS2_32.dll_accept], 2
jg 0x140077eb0
mov r8d, 0x2a
mov dword [rsp + 0x20], ecx
lea r9, str.Unknown_address_family__hu
lea ecx, [r8 - 0x28]
lea rdx, str....._third_partieswebrtc_tice_addr.c
call fcn.1400045f0
jmp 0x140077eb0
movzx ecx, ax
call sub.WS2_32.dll_htons
mov word [rsp + 0x92], ax
jmp 0x140077eb0
movzx ecx, ax
call sub.WS2_32.dll_htons
mov word [rsp + 0x92], ax
lea rdx, [rsp + 0x90]
mov r8d, r12d
mov rcx, rbp
call sub.WS2_32.dll_bind
test eax, eax
je 0x140077ef2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2740
je 0x140077edf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x271d
jne 0x140077eeb
mov eax, ebx
dec ebx
test eax, eax
jg 0x140077e41
mov rsi, qword [rsp + 0x30]
jmp 0x140077f21
mov rax, qword [0x1402e6d00]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140077f12
lea ecx, [rax + 2]
call fcn.140071000
mov qword [0x1402e6d00], rax
mov rcx, rbx
call rax
mov rax, rbp
jmp 0x140077f53
mov rsi, qword [rsp + 0x30]
mov rax, qword [0x1402e6d00]
test rax, rax
jne 0x140077f3c
lea ecx, [rax + 2]
call fcn.140071000
mov qword [0x1402e6d00], rax
mov rcx, rsi
call rax
cmp rbp, 0xffffffffffffffff
je 0x140077f4f
mov rcx, rbp
call sub.WS2_32.dll_closesocket
or rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x120
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret