Function at 0x140049010
Capabilities:
Connect socket
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
xor r15d, r15d
lea r14, [0x1400f9108]
mov rdi, r9
mov rbx, rcx
movabs r12, 0x4d54ee85da812030
cmp rcx, 0xffffffffffffffff
jne 0x1400490aa
mov rdx, qword [0x1400f9110]
add rdx, r12
mov dword [rsp + 0x34], r15d
cmp rdx, 1
jbe 0x14004907a
mov rax, qword [0x1400f9108]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
jmp 0x14004907c
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 0x1400490bd
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
setne dl
call fcn.140048d60
mov rsi, qword [0x1400f9110]
mov dword [rsp + 0x34], r15d
lea rax, [rsi + r12]
cmp rax, 1
jbe 0x1400490ee
mov rax, qword [0x1400f9108]
mov edx, 0x2734
mov rcx, r14
call qword [rax + 0x30]
mov rsi, qword [0x1400f9110]
jmp 0x1400490f0
mov al, 1
movzx eax, al
lea rdx, [rsp + 0x68]
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 + 0x78], xmm1
movups xmmword [rsp + 0x68], xmm0
call fcn.1400468c0
test al, al
jne 0x1400491a0
lea rax, [rsi + r12]
mov dword [rsp + 0x34], r15d
cmp rax, 1
jbe 0x14004915a
mov rax, qword [0x1400f9108]
mov edx, 0x2733
mov rcx, r14
call qword [rax + 0x30]
mov rsi, qword [0x1400f9110]
jmp 0x14004915c
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.1400468c0
test al, al
je 0x14004930f
cmp rbx, 0xffffffffffffffff
jne 0x1400491e3
lea rax, [rsi + r12]
mov dword [rsp + 0x34], r15d
cmp rax, 1
jbe 0x1400491d4
mov rax, qword [0x1400f9108]
mov edx, 0x2719
mov rcx, r14
call qword [rax + 0x30]
mov dword [rsp + 0x30], 0x2719
jmp 0x1400492eb
mov al, 1
mov dword [rsp + 0x30], 0x2719
jmp 0x1400492eb
lea ecx, [rbx + 1]
mov qword [rbp + 0x198], rbx
lea r9, [rbp - 0x80]
mov dword [rbp + 0x190], 1
lea r8, [rbp + 0x190]
mov qword [rbp - 0x78], rbx
xor edx, edx
mov dword [rbp - 0x80], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1400492b0
xorps xmm0, xmm0
mov qword [rsp + 0x60], r15
movups xmmword [rdi], xmm0
lea rax, [rsp + 0x48]
mov edx, 0xffff
movsd xmm0, qword [rsp + 0x60]
lea r9, [rbp + 0x3d0]
mov r8d, 0x1007
movsd qword [rdi + 0x10], xmm0
mov rcx, rbx
mov dword [rbp + 0x3d0], r15d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.140048d60
cmp ebx, 0xffffffff
je 0x14004930f
mov rcx, qword [0x1400f9110]
mov ebx, dword [rbp + 0x3d0]
add rcx, r12
mov dword [rsp + 0x34], r15d
cmp rcx, 1
jbe 0x1400492e2
mov rax, qword [0x1400f9108]
mov edx, ebx
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1400492e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1400f9110]
mov ebx, eax
add rdx, r12
mov dword [rsp + 0x34], r15d
cmp rdx, 1
jbe 0x1400492e2
mov rcx, qword [0x1400f9108]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, r14
call r8
jmp 0x1400492e7
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
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret