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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14006c020]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
movzx r12d, r9b
mov rbx, rcx
mov r14, qword [rbp + 0x640]
mov qword [rsp + 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
xor r13d, r13d
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 1
lea rcx, [rsp + 0x48]
call fcn.140007310
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
lea r8, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140012f50
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140012eed
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ee8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013311
call fcn.1400260b0
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], r13
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140012f19
cmp rcx, r14
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140026090
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140013231
mov r15, qword [rbp + 0x648]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012fb6
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001321f
test r12b, r12b
je 0x140012fe2
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140012ffb
mov qword [rsp + 0x70], rbx
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rdi + 4], 0x17
jne 0x140013025
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140013280
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001320d
mov rax, qword [r15 + 0x10]
mov r8, qword [rax]
mov rax, qword [r15 + 8]
mov r9, qword [rax]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x50], 1
lea rcx, [rbp + 0x1c0]
lea rax, [rbp - 0x50]
mov edx, 4
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400130a0
mov rax, qword [rax]
mov qword [rcx], rax
lea rcx, [rbp + 0x3d0]
lea rax, [rbp - 0x50]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140013110
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rsp + 0x78], r9d
mov dword [rsp + 0x7c], r8d
lea ecx, [rbx + 1]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3d0]
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_select]
movsxd rsi, eax
test eax, eax
jns 0x1400131a8
call fcn.140031d98
cmp dword [rax], 4
je 0x140013172
test rsi, rsi
jle 0x14001320d
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1400131d2
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001320d
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14001320d
cmp dword [rsp + 0x44], 0
je 0x140013280
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140012f70
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140012eed
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ee8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013311
jmp 0x140012ee8
mov dword [rsp + 0x70], r13d
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400132dd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400132d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013311
call fcn.1400260b0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140013309
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, rbx
jmp 0x140012f20
call fcn.14002f770
int3