Function at 0x140058960
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rbx, qword [rcx + 0x1b0]
xorps xmm0, xmm0
mov r13, qword [rcx + 0x18]
xorps xmm1, xmm1
movaps xmmword [rbp - 0x20], xmm0
mov edx, 0x3c
movaps xmmword [rbp - 0x10], xmm0
mov r15, rcx
movaps xmmword [rbp], xmm0
lea r8, [rbx + 0x1cb8]
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm1
mov r9, qword [rbx + 0x1ec0]
sub r9, qword [rbx + 0x1eb8]
add r9, 2
call fcn.140057d90
mov rax, qword [rbx + 0x1eb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0x1eb8], rax
cmp cl, 0x18
je 0x140058c33
cmp cl, 0x23
je 0x140058bed
cmp cl, 0x27
jne 0x140058cde
mov qword [rsp + 0x30], 0
lea r8, [0x14000bd78]
mov r14d, 0x800
mov qword [rsp + 0x9a8], rsi
mov edx, r14d
mov dword [rsp + 0x28], Ordinal_46
mov r9d, 0xff
mov qword [rsp + 0x9b0], rdi
lea rcx, [rbp + 0x60]
mov dword [rsp + 0x20], 0xfa
call fcn.140039570
mov rsi, qword [rbx + 0x1cb0]
mov edi, 4
test rsi, rsi
je 0x140058b69
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, qword [rsi]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140058aa6
inc rax
add rax, rdi
cmp rax, 0x7fa
jae 0x140058b5c
xor eax, eax
lea r9, [rsp + 0x50]
mov byte [rsp + 0x60], al
lea r8, [rbp - 0x20]
mov rcx, qword [rsi]
lea rdx, [0x14000bd88]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.14002b500
cmp eax, 1
jne 0x140058b1a
lea rax, [rbp - 0x20]
mov rdx, r14
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x20], rax
sub rdx, rdi
lea r8, [0x14000bd9c]
add rcx, rdi
xor r9d, r9d
call fcn.140039570
jmp 0x140058b56
cmp eax, 2
jl 0x140058b5c
lea rax, [rsp + 0x60]
mov rdx, r14
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x60]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 1
sub rdx, rdi
mov qword [rsp + 0x20], rax
add rcx, rdi
lea r8, [0x14000bda8]
xor r9d, r9d
call fcn.140039570
movsxd rcx, eax
add rdi, rcx
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x140058aa0
sub r14, rdi
mov dword [rsp + 0x20], 0xf0
lea rcx, [rbp + 0x60]
mov rdx, r14
add rcx, rdi
lea r8, [0x14000bdb4]
mov r9d, 0xff
call fcn.140039570
mov rcx, qword [r13 + 0x1f0]
lea r8d, [rdi + 2]
xor r9d, r9d
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x9a8]
test eax, eax
jns 0x140058bcc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x14000bbd8]
mov rcx, r15
mov r8d, eax
call fcn.140034b00
mov r9, rdi
lea r8, [rbp + 0x62]
mov edx, 0x3e
mov rcx, r15
call fcn.140057d90
mov rdi, qword [rsp + 0x9b0]
jmp 0x140058cde
lea rax, [rbx + 0x1c28]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140058c00
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_41
jmp 0x140058c72
lea rax, [rbx + 0x1c08]
mov rbx, 0xffffffffffffffff
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140058c41
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_27
mov r9d, 0xff
mov dword [rsp + 0x20], 0xfa
lea r8, [0x14000bd68]
mov edx, 0x800
lea rcx, [rbp + 0x60]
call fcn.140039570
mov rcx, qword [r13 + 0x1f0]
lea r8d, [rbx + 6]
xor r9d, r9d
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140058cc9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x14000bbd8]
mov rcx, r15
mov r8d, eax
call fcn.140034b00
lea r9, [rbx + 4]
mov edx, 0x3e
lea r8, [rbp + 0x62]
mov rcx, r15
call fcn.140057d90
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x970
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret