Function at 0x1800015f0
Capabilities:
Connect socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rdi
push r12
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xc8
mov rax, qword [0x1800661e0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
cmp byte [rcx + 0x78], 0
mov r12d, r8d
mov r14, rdx
mov rdi, rcx
je 0x180001627
xor al, al
jmp 0x180001929
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb0], r15
call fcn.180001570
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r15d, r15d
mov eax, r15d
xchg dword [rdi + 0x94], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov esi, 1
mov dword [rdi + 0x90], eax
xor eax, eax
lea r8d, [r15 + 6]
mov qword [rdi + 0xa0], rax
mov word [rdi + 0xa8], ax
mov rax, qword [rdi + 0x90]
lea ecx, [rsi + 1]
mov edx, esi
mov word [rdi + 0xa8], 0x199
mov qword [rdi + 0xa0], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x1800017af
mov rcx, r14
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0xb8], r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov r8, r14
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.180004088
mov rcx, r14
mov r13, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov r8, r14
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, r13
mov byte [rbx + r13], r15b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax]
mov rdx, qword [rax + 0x10]
mov rbx, qword [rax + 0x18]
mov qword [rbp - 0x21], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x11], rdx
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rcx
test r13, r13
je 0x18000175d
mov rcx, r13
call fcn.1800046fc
mov eax, 2
movzx ecx, r12w
mov word [rbp + 0xf], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rbp + 0xf]
mov word [rbp + 0x11], ax
mov rax, qword [rbx]
mov r8d, reloc.WS2_32.dll_recv
mov ecx, dword [rax]
mov dword [rbp + 0x13], ecx
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_connect]
mov r13, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rdi + 0x70]
cmp eax, 0xffffffff
jne 0x1800017b6
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x180001919
lea r9, [rbp - 0x39]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rbp - 0x39], 0xfa000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x70]
lea r9, [rbp - 0x39]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rbp - 0x39], 0xfa000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x70]
lea r9, [rbp - 0x2d]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rbp - 0x2d], 0x7530
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x70]
lea r9, [rbp - 0x31]
mov edx, 0xffff
mov r8d, 8
mov dword [rbp - 0x31], esi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x180001899
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x29]
lea r8, [rbp - 1]
mov r9d, recv
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov dword [rbp - 1], esi
mov dword [rbp + 3], 0x2bf20
mov dword [rbp + 7], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xchg dword [rdi + 0x94], esi
mov rcx, qword [rdi + 0x60]
mov dword [rbp - 0x35], r15d
test rcx, rcx
je 0x1800018b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x60], r15
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1800018c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x68], r15
lea rax, [rbp - 0x35]
lea r8, [0x180001950]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call fcn.180004608
lea r8, [0x180001b10]
mov qword [rdi + 0x60], rax
lea rax, [rbp - 0x35]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
mov dword [rbp - 0x35], r15d
call fcn.180004608
mov qword [rdi + 0x68], rax
mov al, 1
mov rsi, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800040a0
add rsp, 0xc8
pop r14
pop r12
pop rdi
pop rbp
ret