Function at 0x14002db70
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x100
mov rax, qword [0x14014c010]
xor rax, rsp
mov qword [rbp + 7], rax
mov dword [rsp + 0x40], r9d
mov r14, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov qword [rbp - 0x39], r8
mov r15, qword [rbp + 0x77]
mov qword [rbp - 0x31], r15
mov rdi, qword [rbp + 0x7f]
xor ecx, ecx
test rdi, rdi
je 0x14002dbd1
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14002dbcb
mov rax, qword [rdi]
mov qword [rdi + 0x10], rcx
mov byte [rax], cl
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], recv
mov byte [rbp - 0x29], cl
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x29]
call fcn.140008cb0
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x14002dc2e
lea r8d, [rax + 0x1f]
lea rdx, str.client_socket__INVALID_SOCKET
lea rcx, [rbp - 0x29]
call fcn.140008cb0
lea rcx, [rbp - 0x29]
mov r12, qword [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, r12
mov rsi, qword [rbp - 0x19]
test rsi, rsi
jne 0x14002de8b
mov r8, rsi
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002de8b
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140008840
mov rsi, rax
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x29]
call fcn.140008cb0
mov qword [rbp - 1], 0
mov eax, 2
mov word [rbp - 9], ax
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14002dca9
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 5], eax
movzx ecx, word [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 7], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14002dcee
lea r8d, [rax + 0x17]
lea rdx, str.connect__SOCKET_ERROR
lea rcx, [rbp - 0x29]
call fcn.140008cb0
nop
mov rcx, rsi
call fcn.140002da0
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
test r8, r8
jne 0x14002de86
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002de86
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140008840
mov r12, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x79]
call fcn.140008840
mov rsi, rax
mov qword [rbp - 9], rax
xor r8d, r8d
lea rdx, [0x1400c12f7]
lea rcx, [rbp - 0x29]
call fcn.140008cb0
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.140008840
mov r9, rsi
mov r8d, dword [rbp + 0x6f]
mov rdx, rax
call fcn.140023d80
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14002dd94
mov rdx, qword [rsi]
xor r9d, r9d
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, qword [rsi + 0x10]
je 0x14002ddc4
mov r8d, 0x1c
lea rdx, str.sent_bytes___message.size__
lea rcx, [rbp - 0x29]
call fcn.140008cb0
nop
mov rcx, rsi
call fcn.140002da0
nop
mov rcx, r12
call fcn.140002da0
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
test r8, r8
jne 0x14002de86
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002de86
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x6f]
mov r8, qword [rsp + 0x50]
mov edx, 0x186a0
lea rcx, [rsp + 0x30]
call fcn.140023b80
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
test r8, r8
jne 0x14002de59
lea rdx, [0x1400c12f7]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002de59
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14002deb2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
test rdi, rdi
je 0x14002deb2
lea rax, [rbp - 0x29]
cmp rdi, rax
je 0x14002deb2
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
jmp 0x14002dea9
mov rcx, rbx
jmp 0x14002de5e
test rdi, rdi
je 0x14002deb2
lea rax, [rbp - 0x29]
cmp rdi, rax
je 0x14002deb2
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, r12
mov r8, rsi
mov rcx, rdi
call fcn.140008cb0
nop
lea rcx, [rbp - 0x29]
call fcn.140002da0
nop
mov rcx, r14
call fcn.140002da0
nop
mov rcx, r15
call fcn.140002da0
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400b5c60
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret