Function at 0x140019f60
Capabilities:
Connect socket
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x2e0]
cmp dword [rax], 3
jne 0x14001a150
lea rdx, [rsp + 0x70]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140019fb6
mov eax, 0x80004005
jmp 0x14001a359
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x2a0]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14001a021
mov rax, qword [rsp + 0x2a0]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x14001a021
mov rax, qword [rsp + 0x2a0]
movzx eax, word [rax + 4]
cmp eax, 0x2e
jne 0x14001a021
mov rax, qword [rsp + 0x2a0]
movzx eax, word [rax + 6]
cmp eax, 0x5c
jne 0x14001a021
mov rax, qword [rsp + 0x2a0]
add rax, 8
mov qword [rsp + 0x2a0], rax
lea rax, [rsp + 0x214]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x2e0]
mov r9d, dword [rax + 0x20]
mov rax, qword [rsp + 0x2e0]
mov r8d, dword [rax + 0x1c]
mov rax, qword [rsp + 0x2e0]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x2a0]
call fcn.14001ab80
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x14001a07f
mov eax, dword [rsp + 0x68]
jmp 0x14001a359
movsx eax, word [rsp + 0x220]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x2a8], rax
cmp qword [rsp + 0x2a8], 0xffffffffffffffff
jne 0x14001a0c7
mov eax, 0x80004005
jmp 0x14001a359
mov r8d, dword [rsp + 0x214]
lea rdx, [rsp + 0x220]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001a102
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x80004005
jmp 0x14001a359
mov dword [rsp + 0x210], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x210]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2a8]
mov qword [rax], rcx
xor eax, eax
jmp 0x14001a359
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14001a1ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001a1aa
mov dword [rsp + 0x2b0], 0x80004005
jmp 0x14001a1be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x2b0], eax
mov eax, dword [rsp + 0x2b0]
jmp 0x14001a359
mov rax, qword [rsp + 0x2e0]
cmp dword [rax], 2
jne 0x14001a1ee
mov rax, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
xor eax, eax
jmp 0x14001a359
mov r8d, 0x1000
mov edx, 0x1000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetupComm]
test eax, eax
jne 0x14001a24a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001a22a
mov dword [rsp + 0x2b4], 0x80004005
jmp 0x14001a23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x2b4], eax
mov eax, dword [rsp + 0x2b4]
jmp 0x14001a359
mov r8, qword [rsp + 0x2f0]
mov rax, qword [rsp + 0x2e0]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
call fcn.140019df0
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x14001a286
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
jmp 0x14001a359
mov rax, qword [rsp + 0x2e0]
cmp dword [rax + 0x14], 0
je 0x14001a2cc
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x2e0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x2e0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x58], eax
jmp 0x14001a2f4
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0xffffffff
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x58], 0xffffffff
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x14001a347
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001a32a
mov dword [rsp + 0x2b8], 0x80004005
jmp 0x14001a33e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x2b8], eax
mov eax, dword [rsp + 0x2b8]
jmp 0x14001a359
mov rax, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140029820
add rsp, 0x2d8
ret