Function at 0x140018fc0
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor r15d, r15d
lea r14, [0x14024a328]
mov rdi, r9
mov rsi, rcx
movabs r12, 0x4d54ee85da812030
cmp rcx, 0xffffffffffffffff
jne 0x140019064
mov rcx, qword [0x14024a330]
add rcx, r12
mov dword [rsp + 0x34], r15d
cmp rcx, 1
jbe 0x140019034
mov rax, qword [0x14024a328]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
jmp 0x140019036
mov al, 1
movzx eax, al
mov dword [rsp + 0x30], 0x2719
add rax, 2
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movsd xmm1, qword [rsp + 0x40]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x140019077
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
setne dl
call fcn.140018cd0
mov rbx, qword [0x14024a330]
mov dword [rsp + 0x34], r15d
lea rax, [rbx + r12]
cmp rax, 1
jbe 0x1400190a8
mov rax, qword [0x14024a328]
mov edx, 0x2734
mov rcx, r14
call qword [rax + 0x30]
mov rbx, qword [0x14024a330]
jmp 0x1400190aa
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x50]
add rax, 2
mov dword [rsp + 0x30], 0x2734
mov qword [rsp + 0x40], rax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.1400175a0
test al, al
jne 0x14001915a
lea rax, [rbx + r12]
mov dword [rsp + 0x34], r15d
cmp rax, 1
jbe 0x140019114
mov rax, qword [0x14024a328]
mov edx, 0x2733
mov rcx, r14
call qword [rax + 0x30]
mov rbx, qword [0x14024a330]
jmp 0x140019116
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x50]
add rax, 2
mov dword [rsp + 0x30], 0x2733
mov qword [rsp + 0x40], rax
mov rcx, rdi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r14
movups xmm0, xmmword [rsp + 0x30]
movsd qword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x50], xmm0
call fcn.1400175a0
test al, al
je 0x140019289
cmp rsi, 0xffffffffffffffff
jne 0x14001919d
lea rax, [rbx + r12]
mov dword [rsp + 0x34], r15d
cmp rax, 1
jbe 0x14001918e
mov rax, qword [0x14024a328]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
mov dword [rsp + 0x30], 0x2719
jmp 0x140019265
mov al, 1
mov dword [rsp + 0x30], 0x2719
jmp 0x140019265
lea ecx, [rsi + 1]
mov qword [rbp + 0x188], rsi
lea r9, [rsp + 0x70]
mov dword [rbp + 0x180], 1
lea r8, [rbp + 0x180]
mov qword [rsp + 0x78], rsi
xor edx, edx
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
mov rcx, rdi
mov ebx, eax
sets dl
call fcn.140018cd0
test ebx, ebx
js 0x140019289
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x4c], 4
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.140018cd0
cmp ebx, 0xffffffff
je 0x140019289
mov rcx, qword [0x14024a330]
mov ebx, dword [rsp + 0x48]
add rcx, r12
mov dword [rsp + 0x34], r15d
cmp rcx, 1
jbe 0x14001925c
mov rax, qword [0x14024a328]
mov edx, ebx
mov rcx, r14
call qword [rax + 0x30]
jmp 0x140019261
test ebx, ebx
setne al
mov dword [rsp + 0x30], ebx
movzx eax, al
mov qword [rsp + 0x38], r14
add rax, 2
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movsd xmm1, qword [rsp + 0x40]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14015ade0
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret