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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r9
mov r14, r8
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], send
mov byte [rbp + 7], r12b
lea r9, [rbp + 7]
mov r8, rbx
call fcn.140057d70
lea rdx, [rbx + 0x40]
lea rcx, [rbp - 0x19]
call fcn.14004f690
mov rdx, rax
call fcn.1400592c0
mov edi, eax
movzx ecx, word [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_htons]
movzx ebx, ax
mov rcx, qword [r14]
lea esi, [r12 + 2]
cmp rcx, 0xffffffffffffffff
jne 0x1400582b5
xor r8d, r8d
lea edx, [rcx + 2]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r14], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140058502
mov word [rbp - 0x19], si
mov dword [rbp - 0x15], edi
mov word [rbp - 0x17], bx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140058502
mov r15b, 1
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], r12
mov rdi, qword [rbp + 0x17]
lea rsi, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rsi, qword [rbp + 7]
cmp rdi, 0x10
jae 0x14005830e
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x39], xmm0
mov ebx, send
jmp 0x140058384
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140058362
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140058570
mov rcx, rax
call fcn.14005a2c0
mov rcx, rax
test rax, rax
je 0x1400584a9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140058371
test rcx, rcx
je 0x14005836e
call fcn.14005a2c0
jmp 0x140058371
mov rax, r12
mov qword [rbp - 0x39], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x29], rdi
test rdi, rdi
je 0x14005847a
nop word [rax + rax]
lea rdx, [rbp - 0x39]
cmp rbx, 0x10
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
mov r8d, dword [rbp - 0x29]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140058473
jle 0x14005845c
movsxd rcx, eax
mov rax, qword [rbp - 0x29]
mov r8, rax
sub r8, rcx
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], send
cmp rax, rcx
jb 0x14005856a
sub rax, rcx
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdx, qword [rbp - 0x39]
add rdx, rcx
lea rcx, [rbp - 0x19]
call fcn.14003cd20
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14005844c
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058447
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005846c
call fcn.14005a61c
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rbp - 0x29], xmm1
mov rbx, qword [rbp - 0x21]
cmp qword [rbp - 0x29], 0
jbe 0x14005847a
jmp 0x1400583a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r15b, r15b
mov rbx, qword [rbp - 0x21]
cmp rbx, 0x10
jb 0x1400584b5
lea rdx, [rbx + 1]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400584b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400584b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], send
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400584fc
inc rdx
mov rcx, qword [rbp + 7]
mov r8, rcx
cmp rdx, 0x1000
jb 0x1400584f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140058534
call fcn.14005a61c
movzx eax, r15b
jmp 0x140058542
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140058540
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005853b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005853b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005a2a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14003ceb0
nop
call fcn.1400179b0
int3