Function at 0x140005580
Capabilities:
Act as tcp client
Check for time delay via queryperformancecounter
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x140030198]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
mov r13, r9
mov ebp, r8d
mov r12, rdx
mov rsi, rcx
call qword [rax]
mov rcx, qword [rsi + 0x148]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
mov r15d, 2
lea edx, [r14 + 1]
lea r8d, [r14 + 6]
mov ecx, r15d
mov dword [rsi + 0x150], r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x378], rax
cmp rax, 0xffffffffffffffff
jne 0x1400055f7
xor al, al
jmp 0x14000585e
mov rcx, r12
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r12
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.140011eb0
mov rcx, r12
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r12
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.140011b00
test rbx, rbx
je 0x140005810
movzx ecx, bp
mov word [rsp + 0x70], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
lea rcx, [rsi + 0x138]
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsi + 0x378]
lea rdx, [rsp + 0x70]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140005810
lea rcx, [rsi + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x140]
mov rcx, qword [rsi + 0x378]
pxor xmm0, xmm0
pxor xmm1, xmm1
sub rax, qword [rsi + 0x138]
lea r9, [rsp + 0x50]
mov edx, 0xffff
cvtsi2sd xmm0, qword [rsi + 0x130]
mov r8d, 8
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
divsd xmm0, qword [0x14002a408]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
movsd qword [rsi + 0x128], xmm1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400057aa
mov rcx, qword [rsi + 0x378]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x60]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], 0x2bf20
mov dword [rsp + 0x68], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rcx, [rsi + 0x160]
mov r8, r13
mov edx, 0xff
call fcn.140012210
lea rcx, [rsi + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsi + 0x160]
lea rcx, [rsi + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [rsi + 0x360], eax
call fcn.140011b20
movsxd r11, dword [rsi + 0x360]
lea eax, [r11 + 4]
mov rcx, r11
mov dword [rsi + 0x364], eax
call fcn.140011eb0
mov qword [rsi + 0x368], rax
test rax, rax
jne 0x140005814
xor al, al
jmp 0x14000584e
lea rax, [rsp + 0x54]
lea r8, [0x140005880]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsi + 0x150], 1
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x20], r14d
call fcn.1400124e4
mov qword [rsi + 0x370], rax
mov al, 1
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140011ae0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret