Function at 0x140006826
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
push rax
mov rbp, rsp
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
imul eax, dword [0x140295124], 0x952371a0
imul ecx, dword [0x140295128], 0xe0cc1914
add eax, ecx
add eax, 0xe7a2b06d
lea rax, [rax*4 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1400fe1d0
sub rsp, rax
mov r9, rsp
imul eax, dword [0x14029512c], 0xa112c9ed
imul ecx, dword [0x140295130], 0xd6ec207a
add eax, ecx
add eax, 0x381ba
lea rax, [rax*4 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1400fe1d0
sub rsp, rax
mov r12, rsp
mov rax, qword [0x140295138]
mov rcx, qword [0x140295140]
shrd rcx, rax, 0x28
movabs rax, 0x624cba440372cd9c
xor rax, rcx
cmp rdi, rax
je 0x140006a91
test r8b, r8b
je 0x140006a58
mov al, byte [0x140295148]
mov cl, byte [0x140295149]
shr cl, 3
shl al, 5
or al, cl
xor al, 0x2b
and al, byte [rbx]
mov cl, byte [0x14029514a]
mov dl, byte [0x14029514b]
shr dl, 6
shl cl, 2
or cl, dl
xor cl, 0x60
cmp al, cl
je 0x140006a58
movzx eax, word [0x14029514c]
movzx ecx, word [0x14029514e]
shrd cx, ax, 2
mov eax, ecx
xor eax, 0x1f04
mov word [r9], ax
movzx eax, word [0x140295150]
movzx ecx, word [0x140295152]
shrd cx, ax, 0xf
mov eax, ecx
xor eax, 0x8c9
imul ecx, dword [0x140295154], 0xdb51d656
mov word [r9 + 2], ax
imul eax, dword [0x140295158], 0x5f6465c9
lea edx, [rcx + rax]
add edx, 0x3363335f
mov eax, dword [0x14029515c]
mov ecx, dword [0x140295160]
shrd ecx, eax, 7
mov r8d, ecx
xor r8d, 0xb5cece21
mov eax, dword [0x140295164]
mov ecx, dword [0x140295168]
shrd ecx, eax, 0x1e
xor ecx, 0x5e1ec695
sub rsp, 0x30
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
imul ecx, dword [0x14029516c], 0x4ace8b45
imul edx, dword [0x140295170], 0xaa939b8
add ecx, edx
add ecx, 0xa1e19a23
cmp eax, ecx
je 0x140006a58
sub rsp, 0x20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
movabs rcx, 0x27ea7c92594bdc89
imul rcx, qword [0x140295178]
movabs rdx, 0xfd655984a0fe689a
imul rdx, qword [0x140295180]
add rdx, rcx
movabs rcx, 0x1356cde63e091000
add rcx, rdx
and rcx, qword [0x140294740]
mov rdx, qword [0x140295188]
mov r8, qword [0x140295190]
shrd r8, rdx, 0x16
movabs rdx, 0x4a6809b17d1ae597
xor rdx, r8
cmp rcx, rdx
je 0x140006a58
mov edx, eax
mov rax, qword [0x140294738]
lea rcx, [0x140294738]
sub rsp, 0x20
call qword [rax + 0x30]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x20
mov ecx, dword [0x140295198]
mov edx, dword [0x14029519c]
shrd edx, ecx, 0x1b
xor edx, 0x62d92808
cmp eax, edx
jne 0x140006aa4
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
xor eax, eax
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, eax
sub rsp, 0x20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
mov r15d, eax
movabs rcx, 0x444e23a0bd635b97
imul rcx, qword [0x1402951a0]
movabs rdx, 0xccbb746d087659cb
imul rdx, qword [0x1402951a8]
add rdx, rcx
movabs rcx, 0xf638bfd7fff0d628
add rcx, rdx
and rcx, qword [0x140294740]
mov rdx, qword [0x1402951b0]
mov r8, qword [0x1402951b8]
shrd r8, rdx, 0x24
movabs rdx, 0xea34cc5ba729954
xor rdx, r8
cmp rcx, rdx
jne 0x140006b3b
imul ecx, dword [0x1402951c0], 0x6030559e
imul edx, dword [0x1402951c4], 0x7bf6f9d1
add ecx, edx
add ecx, 0x849f7a7a
cmp eax, ecx
setne al
jmp 0x140006b57
mov rax, qword [0x140294738]
lea rcx, [0x140294738]
sub rsp, 0x20
mov edx, r15d
call qword [rax + 0x30]
add rsp, 0x20
mov rcx, qword [0x1402951c8]
mov rdx, qword [0x1402951d0]
shrd rdx, rcx, 0x1e
movabs rcx, 0x15380943fb3b126
xor rcx, rdx
movabs rdx, 0xf4955a2f5c1f03d2
imul rdx, qword [0x1402951d8]
movabs r8, 0x1ee8120e238188f1
imul r8, qword [0x1402951e0]
add r8, rdx
movabs rdx, 0x29913fa31889a485
add rdx, r8
test al, al
mov rax, rdx
cmovne rax, rcx
mov dword [rsi], r15d
imul ecx, dword [0x1402951e8], 0xfffa8e1b
imul edx, dword [0x1402951ec], 0xf096fc04
add ecx, edx
add ecx, 0x44ac35b2
mov dword [rsi + 4], ecx
lea r13, [0x140294738]
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], rax
mov rdx, qword [0x140294740]
mov rcx, qword [0x1402951f0]
mov r8, qword [0x1402951f8]
shrd r8, rcx, 0x11
movabs rcx, 0x58a21ef63d1c4ed1
xor rcx, r8
and rcx, rdx
movabs r8, 0xa2ef3a154c5dedbd
imul r8, qword [0x140295200]
movabs r9, 0x696aa1d8574501ec
imul r9, qword [0x140295208]
add r9, r8
movabs r8, 0x6f57b6900410b30b
add r8, r9
cmp rcx, r8
je 0x140006c8d
mov rax, qword [0x140294738]
imul edx, dword [0x140295210], 0x5af88a45
imul r8d, dword [0x140295214], 0x37106544
lea rcx, [0x140294738]
add edx, r8d
add edx, 0xf5ae84ea
sub rsp, 0x20
call qword [rax + 0x30]
add rsp, 0x20
mov rax, qword [rsi + 0x10]
mov r15d, dword [rsi]
mov rdx, qword [0x140294740]
mov r8, qword [0x140295218]
mov r9, qword [0x140295220]
shrd r9, r8, 0x29
movabs r8, 0xe46e709860b13b51
xor r8, r9
cmp rax, r8
je 0x140006d5d
mov r8d, dword [0x140295228]
mov r9d, dword [0x14029522c]
shrd r9d, r8d, 0x19
xor r9d, 0x149526ab
cmp r15d, r9d
jne 0x140006d5d
mov r8, qword [0x140295230]
mov r9, qword [0x140295238]
shrd r9, r8, 2
movabs r10, 0x97679cf2fd4d8b54
xor r10, r9
lea r8, [0x140294738]
mov r9, r8
cmp rax, r10
je 0x140006d0c
mov r9, qword [rsi + 8]
mov r10, qword [0x140295240]
mov r11, qword [0x140295248]
shrd r11, r10, 1
movabs r10, 0x9b83db857f3651a5
xor r10, r11
cmp r9, r8
sete r8b
cmp qword [r9 + 8], rdx
sete r9b
cmp rdx, r10
mov r10d, 0
mov r10b, r8b
mov r8d, 0
mov r8b, r9b
cmove r8d, r10d
test r8b, r8b
jne 0x140006ec5
mov r8, qword [0x140295250]
mov r9, qword [0x140295258]
shrd r9, r8, 0x11
movabs r8, 0x3e52f3f9f9d418b
xor r8, r9
and rdx, r8
movabs r8, 0x495bd3efa931e837
imul r8, qword [0x140295260]
movabs r9, 0x34467ff3cd080fe9
imul r9, qword [0x140295268]
add r9, r8
movabs r8, 0x8cd6fce831cb7454
add r8, r9
mov ecx, r15d
cmp rdx, r8
je 0x140006df6
mov rax, qword [0x140294738]
lea rcx, [0x140294738]
mov edx, dword [0x140295270]
mov r8d, dword [0x140295274]
shrd r8d, edx, 0x17
mov edx, r8d
xor edx, 0xfb265f80
sub rsp, 0x20
call qword [rax + 0x30]
add rsp, 0x20
mov rax, qword [rsi + 0x10]
mov ecx, dword [rsi]
mov rdx, qword [0x140295278]
mov r8, qword [0x140295280]
shrd r8, rdx, 0x34
movabs rdx, 0x33d6c971c48959c2
xor rdx, r8
cmp rax, rdx
je 0x140006fdb
mov edx, dword [0x140295288]
mov r8d, dword [0x14029528c]
shrd r8d, edx, 0x1d
xor r8d, 0xd41427ab
cmp ecx, r8d
jne 0x140006fdb
mov rcx, qword [0x140295290]
mov rdx, qword [0x140295298]
shrd rdx, rcx, 0x20
movabs r8, 0x5f16d1a9f6ea342f
xor r8, rdx
mov rcx, r13
cmp rax, r8
je 0x140006e6d
mov rcx, qword [rsi + 8]
mov rax, qword [0x140294740]
mov rdx, qword [0x1402952a0]
mov r8, qword [0x1402952a8]
shrd r8, rdx, 0x26
movabs rdx, 0xba019e0dc9da1168
xor rdx, r8
cmp rcx, r13
sete r8b
cmp qword [rcx + 8], rax
sete cl
cmp rax, rdx
mov eax, 0
mov al, r8b
mov edx, 0
mov dl, cl
cmove edx, eax
mov ecx, edx
mov eax, r14d
cmp dl, 1
jne 0x140006a93
mov r8, r12
mov eax, dword [0x1402952b0]
mov ecx, dword [0x1402952b4]
shrd ecx, eax, 0x19
xor ecx, 0x34cd0e2e
mov dword [r12], ecx
mov eax, dword [0x1402952b8]
mov ecx, dword [0x1402952bc]
shrd ecx, eax, 0x13
mov edx, ecx
xor edx, 0xa1242e3
sub rsp, 0x20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x20
movzx eax, byte [0x1402952c0]
movzx ecx, byte [0x1402952c1]
imul eax, eax, 0x2b
imul ecx, ecx, 0xffffffe6
add cl, al
add cl, 0xeb
and byte [rbx], cl
sub rsp, 0x20
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x20
mov edi, eax
imul eax, dword [0x1402952c4], 0x612cf37c
imul ecx, dword [0x1402952c8], 0x654ec7b1
add eax, ecx
add eax, 0x19c23343
cmp edi, eax
je 0x140006a83
sub rsp, 0x20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
mov rcx, qword [0x1402952d0]
mov rdx, qword [0x1402952d8]
shrd rdx, rcx, 0xf
mov ebx, eax
movabs rcx, 0x843f7368b380d35a
xor rcx, rdx
and rcx, qword [0x140294740]
mov rdx, qword [0x1402952e0]
mov r8, qword [0x1402952e8]
shrd r8, rdx, 7
movabs rdx, 0x3268f6e8df3e9694
xor rdx, r8
cmp rcx, rdx
jne 0x140006fe3
imul ecx, dword [0x1402952f0], 0x1f18e0ce
imul edx, dword [0x1402952f4], 0x8f1ac7f0
add ecx, edx
add ecx, 0x8552cd8a
cmp eax, ecx
setne al
jmp 0x140006ffe
mov eax, r14d
jmp 0x140006a93
mov rax, qword [0x140294738]
lea rcx, [0x140294738]
sub rsp, 0x20
mov edx, ebx
call qword [rax + 0x30]
add rsp, 0x20
movabs rcx, 0x42beae7217108e6c
imul rcx, qword [0x1402952f8]
movabs rdx, 0x1f23df073b2e6b0e
imul rdx, qword [0x140295300]
add rdx, rcx
movabs rcx, 0x6fba7bfc12c18fc9
add rcx, rdx
mov rdx, qword [0x140295308]
mov r8, qword [0x140295310]
shrd r8, rdx, 0x1f
movabs rdx, 0xe4b343f85028abf2
xor rdx, r8
test al, al
cmovne rdx, rcx
mov dword [rsi], ebx
mov eax, dword [0x140295318]
mov ecx, dword [0x14029531c]
shrd ecx, eax, 0xe
xor ecx, 0x7db2cbe0
mov dword [rsi + 4], ecx
lea rax, [0x140294738]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
mov eax, edi
jmp 0x140006a93