Function at 0x1800f6d60
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, gethostbyname
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [rdx + 0x38]
xor r12d, r12d
or esi, 0xffffffff
test rax, rax
mov rdi, rdx
mov rbp, rcx
cmovne r12, rax
mov eax, dword [rdx]
dec eax
cmp eax, 7
ja case.default.0x1800f6dbd
lea r14, sym.AliAuthSDK.dll_CB9L_7.qqAbQQMYOd__cGhb1_j__94QEyzIa__9fXt
lea r13d, [rsi + 3]
nop
cdqe
mov ecx, dword [r14 + rax*4 + 0xf729c]
add rcx, r14
jmp rcx
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800f70ad
cmp byte [rbx], 0
je 0x1800f6de4
movzx eax, byte [rbx]
cmp al, 0x3a
je 0x1800f6de4
cmp al, 0x2f
je 0x1800f6de4
inc rbx
cmp byte [rbx], 0
jne 0x1800f6dd1
movsx eax, byte [rbx]
mov dword [rsp + 0x68], eax
cmp eax, 0x3a
je 0x1800f6df5
cmp eax, 0x2f
jne 0x1800f6e3d
mov byte [rbx], 0
cmp dword [rsp + 0x68], 0x3a
jne 0x1800f6e3d
cmp byte [rbx + 1], 0
lea rax, [rbx + 1]
je 0x1800f6e22
nop dword [rax]
cmp byte [rax], 0x2f
je 0x1800f6e1f
inc rax
cmp byte [rax], 0
jne 0x1800f6e10
jmp 0x1800f6e22
mov byte [rax], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800f6e30
call fcn.18000bff0
lea rcx, [rbx + 1]
call fcn.180014e20
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], 0
je 0x1800f7075
mov dword [rdi], r13d
jmp 0x1800f7049
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x1c]
call fcn.180102390
test eax, eax
jle case.default.0x1800f6dbd
mov dword [rdi], 3
jmp 0x1800f7049
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je case.default.0x1800f6dbd
lea rdx, [rdi + 0x20]
call fcn.180101ed0
test eax, eax
jle case.default.0x1800f6dbd
mov dword [rdi], 4
jmp 0x1800f7049
xor eax, eax
mov qword [rdi + 0x24], rax
mov qword [rdi + 0x2c], rax
movzx ecx, word [rdi + 0x20]
mov word [rdi + 0x24], r13w
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movzx ecx, byte [rdi + 0x1c]
shl ecx, 8
mov word [rdi + 0x26], ax
movzx eax, byte [rdi + 0x1d]
or ecx, eax
movzx eax, byte [rdi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x1f]
shl ecx, 8
or ecx, eax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, 1
mov ecx, r13d
lea r8d, [rdx + 5]
mov dword [rdi + 0x28], eax
mov dword [rdi], 4
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp eax, 0xffffffff
je 0x1800f70d2
mov dword [rbp + 0x28], eax
mov dword [rdi], 8
jmp 0x1800f7049
cmp dword [rdi + 0x18], 0
je 0x1800f6f2b
mov ecx, dword [rbp + 0x28]
mov edx, 1
call fcn.180102330
test eax, eax
je 0x1800f7141
mov dword [rdi], 5
movsxd rcx, dword [rbp + 0x28]
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x68], eax
test eax, eax
jns 0x1800f7049
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1802d3928]
mov edx, 4
mov ecx, r13d
mov r8d, eax
mov dword [rsp + 0x20], 0xe2
call fcn.180004810
mov r11, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea r9, [0x1802d3940]
lea rdx, [0x1802d3944]
mov ecx, 4
mov qword [rsp + 0x20], r11
call fcn.180004bf0
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d3950]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 6]
mov dword [rsp + 0x20], 0xe5
call fcn.180004810
jmp case.default.0x1800f6dbd
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.180001850
movsxd rcx, dword [rbp + 0x28]
lea rdx, [rdi + 0x24]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x24], 0
mov esi, eax
test eax, eax
jns 0x1800f7043
mov ecx, eax
call fcn.1800f4ca0
test eax, eax
je 0x1800f718b
mov edx, ntohs
mov rcx, rbp
call fcn.180001870
mov dword [rdi], 7
mov dword [rbp + 0x24], r13d
jmp case.default.0x1800f6dbd
mov ecx, dword [rbp + 0x28]
call fcn.180102140
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x1800f71f5
mov dword [rdi], 6
test r12, r12
je 0x1800f7063
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r12
mov esi, eax
test eax, eax
je 0x1800f7283
mov eax, dword [rdi]
dec eax
cmp eax, 7
jbe 0x1800f6db0
jmp case.default.0x1800f6dbd
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d38a8]
mov dword [rsp + 0x20], 0xa4
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 1]
call fcn.180004810
mov r8, qword [rdi + 8]
lea rdx, [0x1802d38c0]
mov ecx, r13d
call fcn.180004bf0
jmp case.default.0x1800f6dbd
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d3890]
mov dword [rsp + 0x20], Ordinal_143
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 3]
call fcn.180004810
jmp case.default.0x1800f6dbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1802d38c8]
mov edx, 4
mov ecx, r13d
mov r8d, eax
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_200
call fcn.180004810
mov r11, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea r9, [0x1802d38e0]
lea rdx, [0x1802d38e4]
mov ecx, 4
mov qword [rsp + 0x20], r11
call fcn.180004bf0
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d38f0]
lea ecx, [rdx - 0x53]
lea r8d, [rdx + 3]
mov dword [rsp + 0x20], 0xcb
call fcn.180004810
jmp case.default.0x1800f6dbd
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d3908]
mov dword [rsp + 0x20], 0xd5
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xb]
call fcn.180004810
mov r11, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea r9, [0x1802d38ec]
lea rdx, [0x1802d3920]
mov ecx, 4
mov qword [rsp + 0x20], r11
call fcn.180004bf0
jmp case.default.0x1800f6dbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1802d3968]
mov edx, r13d
mov ecx, r13d
mov r8d, eax
mov dword [rsp + 0x20], 0xf6
call fcn.180004810
mov r11, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea r9, [0x1802d394c]
lea rdx, [0x1802d3980]
mov ecx, 4
mov qword [rsp + 0x20], r11
call fcn.180004bf0
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d3988]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xc]
mov dword [rsp + 0x20], 0xf9
call fcn.180004810
jmp case.default.0x1800f6dbd
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.180001850
mov r8d, dword [rsp + 0x68]
lea r9, [0x1802d39a0]
mov edx, r13d
mov ecx, r13d
mov dword [rsp + 0x20], 0x104
call fcn.180004810
mov r11, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea r9, [0x1802d39b8]
lea rdx, [0x1802d39bc]
mov ecx, 4
mov qword [rsp + 0x20], r11
call fcn.180004bf0
mov edx, reloc.WS2_32.dll_WSAStartup
lea r9, [0x1802d39c8]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 0x107
call fcn.180004810
xor esi, esi
jmp case.default.0x1800f6dbd
mov esi, 1
test r12, r12
je 0x1800f7281
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r12
jmp 0x1800f7283
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret