Function at 0x140016a00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
jmp 0x140016a00
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rdi, rsp
mov ecx, WSASetLastError
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c0]
mov rax, qword [0x1400c53c0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rdx, str.CTcpSocket::Connect
lea rcx, [0x1400a4424]
call fcn.1400018d9
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x1c0]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, qword [rsp + 0x1c0]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x1c0]
add rax, 0x30
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140029760
mov rax, qword [rsp + 0x1c0]
add rax, 0x1c
mov rcx, qword [rsp + 0x1c0]
add rcx, 0x30
mov r8d, 8
mov rdx, rax
call fcn.140027230
mov rax, qword [rsp + 0x1c0]
mov byte [rax + 0x38], 0xca
mov rax, qword [rsp + 0x1c0]
mov byte [rax + 0x39], 1
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x1c0]
mov qword [rcx + 0xb0], rax
mov rax, qword [rsp + 0x1c0]
cmp qword [rax + 0xb0], 0xffffffffffffffff
jne 0x140016b1e
xor al, al
jmp 0x140016e80
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x1c8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
inc eax
cdqe
mov rcx, rax
call fcn.140026db0
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x1c8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x1c8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x198]
call fcn.140026ed0
cmp qword [rsp + 0x50], 0
jne 0x140016c24
xor al, al
jmp 0x140016e80
mov eax, 2
mov word [rsp + 0x78], ax
movzx ecx, word [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x7a], ax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x7c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x78]
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140016c7f
xor al, al
jmp 0x140016e80
mov dword [rsp + 0xa4], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa4]
mov r8d, 0x1001
mov edx, 0xffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xa4], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa4]
mov r8d, 0x1002
mov edx, 0xffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xc4], 0x7530
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xc4]
mov r8d, 0x1006
mov edx, 0xffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xe4], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xe4]
mov r8d, 8
mov edx, 0xffff
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140016de8
mov dword [rsp + 0x128], 1
mov dword [rsp + 0x12c], 0x2bf20
mov dword [rsp + 0x130], 0x1388
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x104]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x128]
mov edx, 0x98000004
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rax, qword [rsp + 0x1c0]
add rax, 0x20
mov ecx, 1
xchg dword [rax], ecx
mov dword [rsp + 0x154], 0
lea rax, [rsp + 0x154]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x1c0]
lea r8, [0x1400014e7]
xor edx, edx
xor ecx, ecx
call fcn.14002cb60
mov rcx, qword [rsp + 0x1c0]
mov qword [rcx + 0xa0], rax
lea rax, [rsp + 0x174]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x1c0]
lea r8, [0x1400013e3]
xor edx, edx
xor ecx, ecx
call fcn.14002cb60
mov rcx, qword [rsp + 0x1c0]
mov qword [rcx + 0xa8], rax
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400a4a60]
call fcn.1400290a0
mov rax, rdi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14002a4b0
add rsp, 0x1b0
pop rdi
ret