Function at 0x14029d1e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x88
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, qword [rbp + 0x7f]
mov r15, r9
mov r14, qword [0x14062e6a8]
mov r10d, r8d
mov dword [rbp - 9], r8d
mov ebx, edx
mov rdi, rcx
test rcx, rcx
jne 0x14029d238
mov r9, r12
mov r8, r15
mov edx, r10d
mov ecx, ebx
call fcn.14029ea00
jmp 0x14029d74f
cmp ebx, 0x61726376
jne 0x14029d260
test r10d, r10d
setne al
mov byte [rcx + 0x132], al
mov rcx, qword [r14 + 0x80]
call qword [sym.imp.WS2_32.dll_WSASetEvent]
xor eax, eax
jmp 0x14029d74f
cmp ebx, 0x6d617872
jne 0x14029d276
mov dword [rcx + 0x1e0], r10d
xor eax, eax
jmp 0x14029d74f
cmp ebx, 0x6d617873
jne 0x14029d28c
mov dword [rcx + 0x138], r10d
xor eax, eax
jmp 0x14029d74f
cmp ebx, 0x6e69646c
jne 0x14029d2a7
mov dword [rcx + 0x294], r10d
call fcn.14029b9e0
xor eax, eax
jmp 0x14029d74f
mov qword [rsp + 0x80], rsi
cmp ebx, 0x706f6c6c
je 0x14029d727
cmp ebx, 0x706f6c6e
je 0x14029d72e
cmp ebx, 0x7363626b
jne 0x14029d2f6
movzx eax, byte [rcx + 0x134]
xor esi, esi
test r10d, r10d
setne sil
cmp eax, esi
je 0x14029d2ef
test r10d, r10d
setne al
mov byte [rcx + 0x134], al
xor eax, eax
jmp 0x14029d747
cmp ebx, 0x7370616d
jne 0x14029d30c
mov byte [rcx + 0x133], r10b
xor eax, eax
jmp 0x14029d747
cmp byte [rcx + 0x2ea], 0
je 0x14029d326
mov dword [rcx + 0x28], 0xfffffff5
mov eax, 0xfffffff5
jmp 0x14029d747
cmp ebx, 0x6b656570
jne 0x14029d389
cmp dword [rcx + 0x1c], 1
jne 0x14029d4f9
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x14029d4f9
mov edx, listen
lea rcx, [rbp + 7]
call fcn.140295260
movzx eax, byte [rbp - 9]
xor esi, esi
mov dword [rbp + 7], eax
test eax, eax
je 0x14029d36d
mov eax, dword [r15]
mov dword [rbp + 0xb], eax
mov eax, dword [r12]
mov dword [rbp + 0xf], eax
jmp 0x14029d371
mov qword [rbp + 0xb], rsi
mov rcx, qword [rdi + 0x10]
lea r8, [rbp + 7]
mov r9d, listen
mov edx, 0x98000004
jmp 0x14029d616
cmp ebx, 0x6e62696f
jne 0x14029d3cb
cmp dword [rcx + 0x1c], 1
jne 0x14029d65f
mov rcx, qword [rcx + 0x10]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov dword [rbp - 0x11], r10d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov dword [rdi + 0x28], eax
jmp 0x14029d747
cmp ebx, 0x6e646c79
jne 0x14029d415
cmp dword [rcx + 0x1c], 1
jne 0x14029d65f
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 9]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov dword [rdi + 0x28], eax
jmp 0x14029d747
cmp ebx, 0x70646576
je 0x14029d6f7
cmp ebx, 0x706c6174
je 0x14029d6f7
cmp ebx, 0x706c6f73
je 0x14029d6f7
cmp ebx, 0x70717565
jne 0x14029d4a2
cmp byte [rcx + 0x26], 0
jne 0x14029d465
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x14029d465
cmp byte [rcx + 0x132], 0
je 0x14029d465
mov dword [rcx + 0x318], r10d
xor eax, eax
jmp 0x14029d747
add rcx, 0x2d8
call fcn.14029bad0
mov r9, qword [r14 + 0x68]
mov r8d, dword [r14 + 0x64]
mov edx, dword [rbp - 9]
mov rcx, qword [rdi + 0x320]
call fcn.1402a2ab0
lea rcx, [rdi + 0x2d8]
mov qword [rdi + 0x320], rax
call fcn.14029bd50
xor eax, eax
jmp 0x14029d747
cmp ebx, 0x70757368
jne 0x14029d54d
cmp qword [rcx + 0x2b0], 0
je 0x14029d4d4
mov rax, qword [rcx + 0x2a8]
mov r9, r12
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [rcx + 0x2b0]
test eax, eax
jne 0x14029d546
lea rcx, [rdi + 0x2d8]
call fcn.14029bad0
mov r8d, dword [rbp - 9]
cmp r8d, 0x4f0
jle 0x14029d503
lea rcx, [rdi + 0x2d8]
call fcn.14029bd50
mov eax, 0xffffffff
jmp 0x14029d747
mov rcx, qword [rdi + 0x320]
mov r9, r12
mov rdx, r15
call fcn.1402a25f0
lea rcx, [rdi + 0x2d8]
call fcn.14029bd50
cmp qword [rdi + 0x2a0], 0
je 0x14029d546
test byte [rdi + 0x288], 2
je 0x14029d546
mov r8, qword [rdi + 0x298]
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x2a0]
xor eax, eax
jmp 0x14029d747
cmp ebx, 0x72616472
jne 0x14029d58f
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 9]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov dword [rdi + 0x28], eax
jmp 0x14029d747
lea eax, [rdx - 0x72627566]
test eax, 0xfeffffff
je 0x14029d669
cmp ebx, 0x736f6c69
jne 0x14029d5ee
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x11]
mov eax, 1
mov word [rbp - 0xf], r10w
mov edx, 0xffff
mov word [rbp - 0x11], ax
mov dword [rsp + 0x20], 4
lea r8d, [rax + 0x7f]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov dword [rdi + 0x28], eax
jmp 0x14029d747
cmp ebx, 0x75637274
jne 0x14029d65f
cmp dword [rcx + 0x1c], 2
jne 0x14029d65f
mov rcx, qword [rcx + 0x10]
lea r8, [rbp - 0xd]
xor esi, esi
mov byte [rbp - 0xd], r10b
mov dword [rbp - 0x11], esi
mov edx, 0x9800000c
lea r9d, [rsi + 1]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov ebx, eax
test eax, eax
jne 0x14029d648
mov dword [rdi + 0x28], esi
mov eax, esi
jmp 0x14029d747
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov dword [rdi + 0x28], eax
jmp 0x14029d747
mov eax, 0xfffffff6
jmp 0x14029d747
mov rcx, qword [rcx + 0x10]
lea rax, [rbp - 0x11]
xor esi, esi
mov dword [rbp - 0x11], 4
cmp ebx, 0x72627566
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
mov edx, 0xffff
sete sil
add esi, 0x1001
mov r8d, esi
call qword [sym.imp.WS2_32.dll_getsockopt]
mov rcx, qword [rdi + 0x10]
lea r9, [rbp - 9]
mov r8d, esi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, ebx
call fcn.14029fbb0
mov rcx, qword [rdi + 0x10]
lea r9, [rbp + 3]
mov dword [rdi + 0x28], eax
mov r8d, esi
lea rax, [rbp - 0x11]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rdi + 0x28]
jmp 0x14029d747
add rcx, 0x2d8
call fcn.14029bad0
mov r8d, dword [rbp - 9]
mov edx, ebx
mov rcx, qword [rdi + 0x320]
call fcn.1402a27a0
lea rcx, [rdi + 0x2d8]
mov ebx, eax
call fcn.14029bd50
mov eax, ebx
jmp 0x14029d747
imul r10d, r10d, 0x3e8
xor esi, esi
mov qword [rbp + 7], rdi
lea r8, [rbp + 7]
mov qword [rbp + 0xf], rsi
mov edx, r10d
mov rcx, r14
call fcn.14029f3a0
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140284180
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret