Function at 0x18002c920
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x40]
call fcn.180004300
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x268]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18002c530
lea rdx, [rsp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18002c9d2
lea rdx, [0x18006824b]
mov rcx, qword [rsp + 0x250]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
jmp 0x18002cbe3
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18002ca31
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x18006824f]
mov rcx, qword [rsp + 0x250]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
jmp 0x18002cbe3
mov eax, 2
mov word [rsp + 0x50], ax
movzx ecx, word [rsp + 0x260]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
lea r8, [rsp + 0x54]
mov rdx, qword [rsp + 0x258]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x18002cab4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x18006826c]
mov rcx, qword [rsp + 0x250]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
jmp 0x18002cbe3
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18002cb18
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x18006826d]
mov rcx, qword [rsp + 0x250]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
jmp 0x18002cbe3
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18002cb7c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x18006826e]
mov rcx, qword [rsp + 0x250]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
jmp 0x18002cbe3
mov rcx, qword [rsp + 0x38]
call fcn.1800404b0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x60]
call fcn.18002c700
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x250]
call fcn.180004200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x60]
call fcn.1800041d0
nop
mov rcx, qword [rsp + 0x270]
call fcn.1800041d0
mov rax, qword [rsp + 0x250]
add rsp, 0x248
ret