Function at 0x1400e33f0
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rbx, r9
mov dword [rsp + 0x50], 0x20
mov edi, r8d
mov dword [rsp + 0x20], 4
mov rsi, rdx
lea r9, [rsp + 0x50]
mov r14, rcx
mov edx, 0xffff
mov rcx, 0xffffffffffffffff
mov r8d, 0x7008
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [rbp + 0x610]
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x78], 1
xorps xmm1, xmm1
mov dword [rsp + 0x70], eax
xor r12d, r12d
mov edx, edi
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x74], r12d
movdqu xmmword [rbp - 0x70], xmm1
call fcn.140058d10
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x60]
mov rcx, rsi
cmovae rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400e35b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x277d
jg 0x1400e357a
je 0x1400e356e
sub edx, 8
je 0x1400e3565
sub edx, 0x271e
je 0x1400e355c
sub edx, 0x16
je 0x1400e355c
cmp edx, 3
jne 0x1400e3590
mov dword [r14], 2
mov qword [r14 + 8], 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400e3538
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e3533
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e385e
call fcn.1401d6ea0
lea r11, [rsp + 0x6d0]
mov rax, r14
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov dword [r14], 4
jmp 0x1400e34f3
mov dword [r14], 6
jmp 0x1400e34f3
mov dword [r14], 7
jmp 0x1400e34f3
sub edx, 0x2af9
je 0x1400e34ec
sub edx, 1
je 0x1400e35a8
cmp edx, 1
je 0x1400e359c
mov dword [r14], 1
jmp 0x1400e34f3
mov dword [r14], 5
jmp 0x1400e34f3
mov dword [r14], 3
jmp 0x1400e34f3
mov rsi, qword [rsp + 0x60]
mov r15d, dword [rbp + 0x610]
test rsi, rsi
je 0x1400e37da
nop dword [rax]
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e37c8
lea r8, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsi + 0x10]
mov rcx, rdi
mov rdx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400e382f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400e37b0
mov r8, qword [rbx + 0x30]
lea rdx, [rbp + 0x1b0]
mov qword [rbp - 0x58], rdi
lea rax, [rbp - 0x60]
mov dword [rbp - 0x60], 1
mov ecx, 4
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400e3651
mov rcx, qword [rax]
lea rax, [rbp - 0x60]
mov qword [rdx], rcx
lea rcx, [rbp + 0x3c0]
mov edx, 4
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400e36c0
mov rax, qword [rax]
lea r9, [rbp + 0x3c0]
mov qword [rcx], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], r8d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1b0]
mov dword [rsp + 0x6c], r12d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1400e37b0
lea rdx, [rbp - 0x60]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1400e376f
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400e37b0
lea rax, [rsp + 0x58]
mov dword [rbp + 0x610], r12d
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x58], 4
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1400e37b0
cmp dword [rbp + 0x610], r12d
je 0x1400e382f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
mov r15d, 1
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400e35d0
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rsp + 0x48]
mov dword [r14], r15d
mov qword [r14 + 8], 0xffffffffffffffff
cmp rdx, 0x10
jb 0x1400e3538
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e3533
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e385e
jmp 0x1400e3533
lea r8, [rsp + 0x5c]
mov dword [rsp + 0x5c], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [r14], r12d
mov qword [r14 + 8], rdi
jmp 0x1400e34fb
call fcn.1401fe6e4
int3