Function at 0x14000e070
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx + 0x48]
mov rsi, rcx
test rax, rax
jne 0x14000e088
add rsp, 0x50
pop rsi
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
xor r12d, r12d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov r15, qword [rax + 0x68]
mov qword [rcx + 0x48], r12
mov r14, r15
test r15, r15
je 0x14000e782
lea r13, [0x140000000]
nop dword [rax]
mov rax, qword [r14 + 0x68]
mov rbx, r14
cmp rax, r15
mov r14, r12
cmovne r14, rax
mov eax, dword [rbx + 8]
add eax, 0xfffffffe
cmp eax, 0xf
ja case.0x14000e0fd.6
cdqe
mov ecx, dword [r13 + rax*4 + 0xe7bc]
add rcx, r13
jmp rcx
mov rdx, qword [rbx]
mov eax, dword [rdx + 0x10]
cmp eax, 7
je 0x14000e14b
cmp eax, 0xc
je 0x14000e13b
cmp eax, 0xe
jne case.0x14000e0fd.6
mov r8, rbx
mov rcx, rsi
cmp dword [rdx + 0x120], r12d
jne 0x14000e131
call fcn.140010790
jmp case.0x14000e0fd.6
call fcn.140010d50
jmp case.0x14000e0fd.6
mov r8, rbx
mov rcx, rsi
call fcn.140017b30
jmp case.0x14000e0fd.6
mov r8, rbx
mov rcx, rsi
call fcn.14001abd0
jmp case.0x14000e0fd.6
mov rdi, qword [rbx + 0x80]
mov eax, dword [rdi + 0x10]
cmp eax, 7
je 0x14000e237
cmp eax, 0xc
je 0x14000e224
cmp eax, 0xe
jne case.0x14000e0fd.6
mov rax, qword [rbx + 0x60]
sub qword [rdi + 0x60], rax
sub dword [rdi + 0x7c], 1
jne 0x14000e1aa
mov eax, dword [rdi + 0x58]
test al, 1
jne 0x14000e1aa
test al, 0x40
je 0x14000e1aa
and eax, 0xffffffbf
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x14000e1aa
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x70], r12
je 0x14000e1df
mov ecx, dword [rbx + 0x40]
call qword [0x140096998]
mov ecx, eax
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rdi + 0x100]
dec eax
mov dword [rdi + 0x100], eax
cmp qword [rdi + 0x108], r12
je 0x14000e2e2
test eax, eax
jne 0x14000e2e2
mov eax, dword [rdi + 0x58]
test al, 8
jne 0x14000e2e2
or eax, 8
mov dword [rdi + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rdi + 0x50], rax
mov qword [rsi + 0x50], rdi
jmp 0x14000e2e2
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140017e40
jmp case.0x14000e0fd.6
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14001afb0
jmp case.0x14000e0fd.6
mov rdi, qword [rbx]
mov eax, dword [rdi + 0x10]
cmp eax, 7
je 0x14000e27b
cmp eax, 0xc
je 0x14000e268
cmp eax, 0xe
je 0x14000e7b0
jmp case.0x14000e0fd.6
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140017f80
jmp case.0x14000e0fd.6
mov eax, dword [rdi + 0x58]
test al, 1
je 0x14000e288
add dword [rdi + 0x78], 0xffffffff
jmp 0x14000e2f7
cmp dword [rbx + 0x40], r12d
jl 0x14000e2b5
mov rax, qword [rdi + 0x138]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x100]
mov qword [rdi + 0x138], rbx
test rax, rax
je 0x14000e2e2
xor edx, edx
mov rcx, rdi
call rax
jmp 0x14000e2e2
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14000e2d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov eax, dword [rdi + 0x58]
test al, 1
jne 0x14000e2e2
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14001a4c0
mov ecx, dword [rdi + 0x78]
dec ecx
mov dword [rdi + 0x78], ecx
mov eax, dword [rdi + 0x58]
test al, 1
je case.0x14000e0fd.6
test ecx, ecx
jne case.0x14000e0fd.6
test al, 8
jne case.0x14000e0fd.6
or eax, 8
mov dword [rdi + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rdi + 0x50], rax
mov qword [rsi + 0x50], rdi
jmp case.0x14000e0fd.6
mov rdi, qword [rbx + 0x78]
mov eax, dword [rdi + 0x10]
cmp eax, 7
je 0x14000e41c
cmp eax, 0xc
je 0x14000e33f
cmp eax, 0xe
je 0x14000e7b6
jmp case.0x14000e0fd.6
sub dword [rdi + 0x7c], 1
jne 0x14000e361
mov eax, dword [rdi + 0x58]
test al, 1
jne 0x14000e361
test al, 0x40
je 0x14000e361
and eax, 0xffffffbf
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x14000e361
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov rcx, qword [rbx + 0x18]
mov ebp, r12d
mov rax, qword [rbx + 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
mov ecx, dword [rbx + 0x40]
test ecx, ecx
js 0x14000e401
mov rcx, qword [rdi + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], r12d
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000e3f9
or dword [rdi + 0x58], 0x19000
mov ecx, r12d
mov dword [rdi + 0x100], r12d
mov dword [rdi + 0x88], recv
mov qword [rdi + 0xc0], r12
mov qword [rdi + 0xf0], r12
mov qword [rdi + 0xf8], 0xffffffffffffffff
mov qword [rdi + 0x80], rdi
inc dword [rsi + 0xa8]
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14000e2e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000e406
call fcn.14001cd00
mov ecx, eax
mov ebp, eax
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14000e2e2
sub dword [rdi + 0x7c], 1
jne 0x14000e43e
mov eax, dword [rdi + 0x58]
test al, 1
jne 0x14000e43e
test al, 0x40
je 0x14000e43e
and eax, 0xffffffbf
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x14000e43e
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x70], r12
je 0x14000e2e2
mov ecx, dword [rbx + 0x40]
mov ebp, r12d
test ecx, ecx
js 0x14000e486
mov rcx, rdi
call fcn.140019c20
mov ecx, r12d
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14000e2e2
call qword [0x140096998]
mov ecx, eax
mov ebp, eax
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14000e2e2
mov rdx, qword [rbx + 0x70]
mov r8, rbx
mov rcx, rsi
call fcn.14001b130
jmp case.0x14000e0fd.6
mov rdx, qword [rbx]
mov r8, rbx
mov rcx, rsi
call fcn.140019590
jmp case.0x14000e0fd.6
mov rdi, qword [rbx + 0x70]
mov rax, qword [rbx + 0x60]
sub qword [rdi + 0x60], rax
dec qword [rdi + 0x68]
sub dword [rdi + 0x7c], 1
jne 0x14000e4fb
mov eax, dword [rdi + 0x58]
test al, 1
jne 0x14000e4fb
test al, 0x40
je 0x14000e4fb
and eax, 0xffffffbf
mov dword [rdi + 0x58], eax
test al, 0x20
je 0x14000e4fb
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x14000e2e2
mov ecx, dword [rbx + 0x40]
mov eax, r12d
test ecx, ecx
jns 0x14000e52e
call fcn.14001cd00
mov ecx, eax
call fcn.140018f20
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14000e2e2
mov rcx, qword [rbx]
mov eax, dword [rcx + 0x58]
mov byte [rcx + 0xd8], r12b
test al, 1
je 0x14000e572
test al, 8
jne case.0x14000e0fd.6
or eax, 8
mov dword [rcx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rcx + 0x50], rax
mov qword [rsi + 0x50], rcx
jmp case.0x14000e0fd.6
mov rax, qword [rcx + 0xd0]
test rax, rax
je case.0x14000e0fd.6
call rax
jmp case.0x14000e0fd.6
mov rbx, qword [rbx]
mov edx, r12d
xchg dword [rbx + 0x100], edx
cmp edx, dword [rbx + 0x68]
jne 0x14000e5a0
mov rcx, rbx
call qword [rbx + 0x60]
mov ecx, dword [rbx + 0x58]
bt ecx, 8
jae 0x14000e5b4
mov rcx, rbx
call fcn.14000dc00
mov ecx, dword [rbx + 0x58]
mov eax, ecx
and al, 9
cmp al, 1
jne case.0x14000e0fd.6
or ecx, 8
mov dword [rbx + 0x58], ecx
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
jmp case.0x14000e0fd.6
mov rdi, qword [rbx]
test dword [rdi + 0x58], 0x2000000
jne 0x14000e5f6
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14001b510
jmp case.0x14000e0fd.6
lea rax, [rdi + 0xb8]
cmp rbx, rax
jne 0x14000e612
movzx eax, byte [rdi + 0x19a]
mov byte [rdi + 0x198], r12b
jmp 0x14000e630
lea rax, [rdi + 0x128]
cmp rbx, rax
jne case.0x14000e0fd.6
movzx eax, byte [rdi + 0x19b]
mov byte [rdi + 0x199], r12b
mov ecx, dword [rbx + 0x40]
movzx edx, byte [rdi + 0x19c]
test ecx, ecx
jns 0x14000e65d
test dl, dl
je 0x14000e679
call qword [0x140096998]
mov ecx, eax
mov byte [rdi + 0x19c], r12b
call fcn.140018f20
mov edx, eax
xor r8d, r8d
jmp 0x14000e673
mov r8d, dword [rbx + 0x48]
movzx eax, al
not eax
and r8d, eax
movzx eax, dl
and r8d, eax
je 0x14000e679
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x60]
movzx edx, byte [rdi + 0x198]
movzx r8d, byte [rdi + 0x199]
mov ecx, edx
or ecx, r8d
not ecx
test byte [rdi + 0x19c], cl
je 0x14000e6a7
mov rdx, rdi
mov rcx, rsi
call fcn.14001ba00
jmp case.0x14000e0fd.6
mov eax, dword [rdi + 0x58]
test al, 1
je case.0x14000e0fd.6
test dl, dl
jne case.0x14000e0fd.6
test r8b, r8b
jmp 0x14000e2f7
mov rbx, qword [rbx]
mov eax, dword [rbx + 0x58]
mov byte [rbx + 0x100], r12b
test al, 1
je 0x14000e6f2
test al, 8
jne case.0x14000e0fd.6
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
jmp case.0x14000e0fd.6
mov rcx, qword [rbx + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x14000e713
call qword [sym.imp.KERNEL32.dll_UnregisterWait]
mov eax, dword [rbx + 0x58]
mov qword [rbx + 0xf0], 0xffffffffffffffff
test al, 0x40
je 0x14000e728
and eax, 0xffffffbf
mov dword [rbx + 0x58], eax
test al, 0x20
je 0x14000e728
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov rcx, qword [rbx + 0xf8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14000e744
mov edx, dword [rsp + 0x60]
jmp 0x14000e754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018f20
movsxd rdx, eax
mov rax, qword [rbx + 0x60]
test rax, rax
je case.0x14000e0fd.6
mov r8d, dword [rbx + 0xe8]
mov rcx, rbx
call rax
jmp case.0x14000e0fd.6
mov r8, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call fcn.14001baf0
test r14, r14
jne 0x14000e0d0
mov r14, qword [rsp + 0x38]
mov eax, 1
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rsi
ret
call fcn.1400134d0
int3
call fcn.1400134d0
int3