Function at 0x140066cb0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov esi, r9d
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov r14, qword [rcx]
mov dword [rbp - 0xc], 1
lea r8, [rbp - 0xc]
mov rcx, r14
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140066d1c
mov r8d, dword [r15 + 0x80]
mov rcx, r14
mov rdx, r15
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x140066d2e
call fcn.140039c00
shl rax, 0x20
or rax, 2
jmp 0x140066d30
call fcn.140039c00
shl rax, 0x20
or rax, 2
jmp 0x140066df8
xor eax, eax
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
mov rcx, r14
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140066d5f
xor eax, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
jne 0x140066d75
jmp 0x140066d95
call fcn.140039c00
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140066d95
test rax, rax
jne 0x140066d95
mov eax, ecx
and eax, 3
lea rdx, [0x1400a3c14]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
movzx eax, byte [rcx + 0x10]
jmp 0x140066dd7
test rcx, rcx
jne 0x140066ded
jmp 0x140066df8
mov rax, rcx
shr rax, 0x20
cmp eax, 0x2733
je 0x140066ddb
mov rax, rcx
jmp 0x140066df8
mov rax, rcx
shr rax, 0x20
cmp eax, 0x28
ja case.default.0x140066dcd
lea rdx, [0x1400a3c24]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
xor eax, eax
jmp 0x140066dd7
movzx eax, byte [rcx + 0xf]
cmp al, 0xd
jne 0x140066daa
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
call fcn.140085020
mov rcx, qword [rbp - 8]
mov rsi, rax
call fcn.140003fe0
mov rax, rsi
add rsp, 0x38
add esp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov al, 0x25
jmp 0x140066dd7
mov al, 0x23
jmp 0x140066dd7
mov al, 0x24
jmp 0x140066dd7
mov al, 0x1b
jmp 0x140066dd7
mov al, 0x22
jmp 0x140066dd7
mov al, 0x10
jmp 0x140066dd7
mov al, 0xe
jmp 0x140066dd7
mov al, 0x21
jmp 0x140066dd7
mov al, 0xb
jmp 0x140066dd7
mov al, 4
jmp 0x140066dd7
mov al, 0x28
jmp 0x140066dd7
mov al, 0xc
jmp 0x140066dd7
mov al, 9
jmp 0x140066dd7
mov al, 0x19
jmp 0x140066dd7
mov al, 0x18
jmp 0x140066dd7
mov al, 2
jmp 0x140066dd7
mov al, 0xf
jmp 0x140066dd7
mov al, 3
jmp 0x140066dd7
invalid
mov dh, byte [rax - 0x4f7914f9]
add ebx, ebp
invalid
mov al, 7
jmp 0x140066dd7
mov al, 1
jmp 0x140066dd7
mov al, 0x1f
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x11
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x29
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x14
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 5
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x15
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0xd
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 6
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x12
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0xa
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 8
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x1e
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x20
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x16
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x27
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x13
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x17
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x1c
jmp 0x140066dd7
invalid
invalid
invalid
mov al, 0x1d
jmp 0x140066dd7
mov al, 0x26
jmp 0x140066dd7
mov al, 0x1a
jmp 0x140066dd7