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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x10]
xor r15d, r15d
test r8, r8
je 0x180009510
mov qword [rbp - 0x78], r15
mov eax, select
mov qword [rbp - 0x70], rax
mov byte [rsp + 0x78], r15b
lea rcx, [rsp + 0x78]
cmp rcx, rdx
je 0x18000943c
cmp qword [rdx + 0x18], 0x10
jb 0x18000942e
mov rdx, qword [rdx]
lea rcx, [rsp + 0x78]
call fcn.1800128c0
mov rax, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
cmp rax, 0x10
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x48], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x50], 1
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
lea rdx, [0x18005d590]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1800096f0
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1800096e6
nop dword [rax + rax]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1800094c8
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800094a0
mov rcx, qword [rsp + 0x38]
jmp 0x1800096e9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x180009510
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000950b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000976c
call fcn.180039690
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x18000972c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800096d9
mov rax, qword [rsi + 8]
mov r8, qword [rax]
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x60], 1
lea rcx, [rbp + 0x1b0]
lea rax, [rbp - 0x60]
mov edx, 4
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 0x180009580
mov rax, qword [rax]
mov qword [rcx], rax
lea rcx, [rbp + 0x3c0]
lea rax, [rbp - 0x60]
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 0x1800095f0
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x44], r15d
lea ecx, [rdi + 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3c0]
lea r8, [rbp + 0x1b0]
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1800096d9
lea rdx, [rbp - 0x60]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x18000969e
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800096d9
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1800096d9
cmp dword [rsp + 0x30], 0
je 0x18000972c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x180009746
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x180009728
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009723
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000976c
call fcn.180039690
xor al, al
jmp 0x180009746
mov dword [rsp + 0x38], r15d
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.180039e30
mov rbx, qword [rsp + 0x728]
add rsp, 0x6e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18003fc9c
int3