Function at 0x180015350
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rbp + 0x118], rax
mov r14, rcx
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x80
call fcn.180038c70
mov ecx, 0x18
call fcn.180037f00
mov qword [rsp + 0x40], rax
lea r13, vtable.HH::ActionParam.0
mov rcx, qword [r14 + 0x30]
lea r8, [rsp + 0x40]
xor r12d, r12d
mov rbx, rax
mov qword [rax + 8], rcx
mov r15d, r12d
mov qword [rax], r13
mov dword [rax + 0x10], 1
mov rcx, qword [r14 + 0x40]
mov rdx, qword [rcx + 8]
mov rcx, qword [0x18006b810]
mov edx, dword [rdx + 8]
call fcn.180005880
test al, al
je 0x180015416
mov rdx, qword [rsp + 0x40]
mov r9d, 0x4e20
mov qword [rsp + 0x28], rbx
mov r8d, 0x1f6
mov byte [rsp + 0x20], r12b
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 0x88]
call fcn.180013aa0
mov r15d, eax
mov rdx, qword [r14 + 0x40]
lea rcx, [rbp]
mov eax, 0x2c
mov r8d, 0x35c
cmp dword [rdx + 0x358], r12d
cmove r8d, eax
add r8, rdx
lea edx, [rax - 0x2a]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [r8]
lea r8, [r8 + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [r8 - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [r8 - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [r8 - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [r8 - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [r8 - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [r8 - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [r8 - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180015440
movzx eax, word [r8]
mov esi, 6
mov word [rcx], ax
lea r8, [0x18005fc98]
movzx r9d, word [rbp + 0x100]
lea rcx, [rbp + 0x110]
mov edx, esi
call fcn.180001fa0
xorps xmm0, xmm0
mov qword [rsp + 0x38], r12
xorps xmm1, xmm1
mov qword [rsp + 0x48], r12
lea r9, [rsp + 0x38]
mov dword [rsp + 0x50], 1
lea r8, [rsp + 0x48]
mov dword [rsp + 0x54], esi
lea rdx, [rbp + 0x110]
lea rcx, [rbp]
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x180015672
mov rbx, qword [rsp + 0x38]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x258], rdi
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov edi, dword [rbx + 0x10]
call fcn.180038e30
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx ecx, word [rbp - 0x80]
lea edx, [rsi - 5]
mov r8d, esi
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov rcx, rax
mov qword [r14 + 0x30], rax
lea r8d, [rsi - 5]
mov dword [rsp + 0x20], 4
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14 + 0x30]
lea rdx, [rbp - 0x80]
mov r8d, edi
call qword [sym.imp.WS2_32.dll_connect]
mov rdi, qword [rsp + 0x258]
test eax, eax
jne 0x1800155f2
mov r8, qword [r14 + 0x40]
mov ecx, dword [r8 + 0x358]
test ecx, ecx
je 0x18001564f
sub ecx, 1
je 0x1800155d8
cmp ecx, 1
jne 0x180015677
mov rdx, qword [r14 + 0x30]
lea r9, [r8 + 0x2c]
add r8, 0x35c
lea rcx, [rsp + 0x30]
call fcn.18000d200
cmp eax, 0xc8
mov esi, recv
cmove esi, r12d
jmp 0x18001564b
mov rdx, qword [r14 + 0x30]
add r8, 0x2c
call fcn.18000cf30
test eax, eax
mov esi, recv
cmove esi, r12d
jmp 0x18001564b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov edx, recv
cmp eax, 0x274c
jg 0x180015630
je 0x180015629
test eax, eax
je 0x180015624
cmp eax, 0x2741
je 0x18001563d
add eax, 0xffffd8bc
cmp eax, 2
ja 0x180015649
mov edx, 5
jmp 0x180015649
mov edx, r12d
jmp 0x180015649
mov edx, 2
jmp 0x180015649
sub ecx, 0x274d
je 0x180015644
cmp ecx, 4
jne 0x180015649
mov edx, 4
jmp 0x180015649
mov edx, 3
mov esi, edx
test esi, esi
jne 0x180015677
mov rcx, r14
call fcn.180015730
test al, al
je 0x18001566b
mov rcx, r14
call fcn.1800159c0
mov esi, eax
test eax, eax
je 0x18001568e
jmp 0x180015677
mov esi, 8
jmp 0x180015677
mov esi, 4
mov rcx, qword [r14 + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x18001568e
call fcn.180014d00
mov qword [r14 + 0x30], 0xffffffffffffffff
mov rax, qword [r14 + 0x40]
mov rdx, qword [rax + 8]
mov rcx, qword [rdx + 0x88]
mov edx, r15d
call fcn.180013c70
mov ecx, 0x18
mov dword [r14 + 0x28], esi
call fcn.180037f00
mov r8d, 0x1f5
mov qword [rsp + 0x78], rax
mov rbx, rax
mov qword [rax], r13
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, qword [r14 + 0x40]
mov rdx, qword [rcx + 8]
mov rcx, qword [0x18006b810]
mov edx, dword [rdx + 8]
call fcn.180005580
mov rcx, qword [0x18006b810]
mov r9b, 1
mov r8, rbx
mov edx, eax
mov rcx, qword [rcx]
call fcn.1800121b0
mov rcx, qword [rbp + 0x118]
xor rcx, rsp
call fcn.1800377f0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret