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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x468
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
xor eax, eax
mov word [rsp + 0x20], ax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x480]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x480]
add rax, 4
mov qword [rsp + 0x480], rax
movsxd rax, dword [rsp + 0x488]
sub rax, 4
mov dword [rsp + 0x488], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x480]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x480]
add rax, 2
mov qword [rsp + 0x480], rax
movsxd rax, dword [rsp + 0x488]
sub rax, 2
mov dword [rsp + 0x488], eax
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x20], ax
cmp dword [rsp + 0x488], 0x3ff
jl 0x18001a27a
mov dword [rsp + 0x488], 0x3ff
movsxd rax, dword [rsp + 0x488]
lea rcx, [rsp + 0x60]
mov rdi, rcx
mov rsi, qword [rsp + 0x480]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x488]
mov byte [rsp + rax + 0x60], 0
call fcn.180011d4c
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x18001a2f0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x24]
call qword [rsp + 0x490]
jmp 0x18001a41d
lea rcx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18001a32f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x24]
call qword [rsp + 0x490]
jmp 0x18001a41d
mov rax, qword [rsp + 0x38]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdx + 0x18]
lea rdi, [rsp + 0x4c]
mov rsi, qword [rdx + rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, 2
mov word [rsp + 0x48], ax
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x18001a3b7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x24]
call qword [rsp + 0x490]
jmp 0x18001a41d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x18001a409
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18001a409
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, 4
mov edx, 4
lea rcx, [rsp + 0x24]
call qword [rsp + 0x490]
jmp 0x18001a41d
mov r8d, 0x7530
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.18001a08c
add rsp, 0x468
pop rdi
pop rsi
ret