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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400221d8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdx, str.CTcpSocket::Connect
lea rcx, [0x14001dcbc]
call fcn.140005ba0
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0xd0]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0xd0]
add rax, 0x30
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x1c]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x38], 0xca
mov rax, qword [rsp + 0xd0]
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 + 0xd0]
mov qword [rcx + 0xb0], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0xb0], 0xffffffffffffffff
jne 0x140005ed1
xor al, al
jmp 0x140006309
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xd8]
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 + 0xd8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
inc eax
cdqe
mov rcx, rax
call fcn.14000cb60
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0xd8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x80]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.14000cb68
cmp qword [rsp + 0x58], 0
jne 0x140005fe6
xor al, al
jmp 0x140006309
mov eax, 2
mov word [rsp + 0x68], ax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, word [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x6a], ax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x6c], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x68]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000611d
xor al, al
jmp 0x140006309
mov dword [rsp + 0x78], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x78]
mov r8d, 0x1001
mov edx, 0xffff
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x78], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x78]
mov r8d, 0x1002
mov edx, 0xffff
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x54], 0x7530
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1006
mov edx, 0xffff
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x88]
mov r8d, 8
mov edx, 0xffff
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140006271
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x9c], 0x2bf20
mov dword [rsp + 0xa0], 0x1388
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x98]
mov edx, 0x98000004
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rax, qword [rsp + 0xd0]
add rax, 0x20
mov ecx, 1
xchg dword [rax], ecx
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd0]
lea r8, [0x140006324]
xor edx, edx
xor ecx, ecx
call fcn.14000d5a8
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 0xa0], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd0]
lea r8, [0x1400065ac]
xor edx, edx
xor ecx, ecx
call fcn.14000d5a8
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 0xa8], rax
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14000cb80
add rsp, 0xc0
pop rdi
ret