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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x2b10]
mov rsi, rcx
test rax, rax
mov dword [rbp - 0x51], r8d
mov ecx, 0xa
mov qword [rbp - 0x49], rdx
mov edi, 4
mov r15d, r8d
cmovne edi, ecx
lea r14, [rsi + 0x28]
xor ecx, ecx
mov qword [rbp - 0x41], rdi
mov qword [rbp + 0xf], rcx
mov rbx, rdx
mov dword [rbp + 0x17], ecx
mov word [rbp + 0x1b], cx
mov qword [rbp - 0x59], r14
test rax, rax
je 0x140006905
mov rax, qword [r14]
movzx edi, word [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
lea ecx, [rdi + 1]
cdq
idiv ecx
movzx ecx, dx
mov ebx, edx
call qword [sym.imp.WS2_32.dll_htons]
xor bx, di
mov word [rbp + 0xf], ax
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov rbx, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x41]
mov word [rbp + 0x11], ax
mov eax, 0x5f93
mov word [rbp + 0x13], ax
jmp 0x140006909
mov qword [rbp - 0x59], r14
xor r12d, r12d
nop dword [rax]
imul rax, qword [rsi + 0x30], 0x1d8
mov r13, qword [r14]
add rax, r13
mov dword [rsi + 0x58], r12d
cmp r13, rax
jae 0x140006e57
mov rcx, qword [rbp - 0x59]
lea r14, [r13 + 0xe0]
nop word [rax + rax]
mov eax, dword [r14 - 0xa8]
test eax, eax
je 0x140006e29
cmp eax, 9
je 0x140006e29
mov word [rsi + 0x68], r12w
mov qword [rsi + 0x670], r12
mov qword [rsi + 0xa88], 1
mov qword [rsi + 0x60], rdi
cmp qword [r14], r14
je 0x140006983
mov rdx, r13
mov rcx, rsi
call fcn.140005d70
test r15d, r15d
je 0x1400069c9
lea rax, [r14 + 0x10]
cmp qword [rax], rax
je 0x1400069c9
mov eax, dword [rsi + 0x40]
sub eax, dword [r14 - 0x70]
cmp eax, 0x5265c00
jae 0x1400069c9
mov r8, rbx
mov rdx, r13
mov rcx, rsi
call fcn.1400062d0
cmp eax, 1
jne 0x1400069c9
test rbx, rbx
je 0x140006e25
cmp dword [rbx], 0
je 0x140006e25
jmp 0x140006e73
lea rax, [r14 + 0x30]
cmp qword [rax], rax
je 0x1400069e5
mov rdx, r13
mov rcx, rsi
call fcn.1400064a0
test eax, eax
je 0x140006a7e
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x140006a7e
mov edx, dword [r14 - 0x74]
mov ecx, dword [rsi + 0x40]
sub ecx, edx
sub edx, dword [rsi + 0x40]
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [r14 - 0x38]
jb 0x140006a7e
mov eax, dword [r14 - 0x10]
sub rax, qword [rsi + 0x60]
cmp rax, 4
jb 0x140006a7e
cmp dword [r14 - 0xa8], 5
jne 0x140006a73
mov ecx, 0x60
mov word [rbp - 0x39], 0xff85
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x140006a43
call qword [0x140071118]
jmp 0x140006a73
movups xmm0, xmmword [rbp - 0x39]
mov rdx, rax
mov rcx, r13
movups xmm1, xmmword [rbp - 0x29]
mov dword [rax + 0x20], r12d
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], r12w
movups xmm0, xmmword [rbp - 0x19]
mov qword [rax + 0x58], r12
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.140003af0
mov rdx, r13
mov rcx, rsi
call fcn.1400064a0
lea rax, [r14 + 0x40]
cmp qword [rax], rax
je 0x140006a92
mov rdx, r13
mov rcx, rsi
call fcn.140005f50
cmp qword [rsi + 0x670], 0
je 0x140006e25
mov ecx, dword [r14 - 0x68]
mov edx, dword [rsi + 0x40]
test ecx, ecx
jne 0x140006ab1
mov dword [r14 - 0x68], edx
jmp 0x140006b2c
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x140006b2c
mov ecx, dword [r14 - 0x64]
test ecx, ecx
je 0x140006b2c
mov eax, dword [r14 - 0x60]
xor edx, edx
shl eax, 0x10
div ecx
mov edx, dword [r14 - 0x58]
mov ecx, edx
shr ecx, 2
mov r8d, eax
sub edx, ecx
mov ecx, dword [r14 - 0x5c]
cmp eax, ecx
jb 0x140006afc
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x140006b0e
mov eax, ecx
sub eax, r8d
shr eax, 3
sub ecx, eax
mov eax, ecx
sub eax, r8d
mov r8d, eax
mov dword [r14 - 0x5c], ecx
shr r8d, 2
add r8d, edx
mov dword [r14 - 0x58], r8d
mov eax, dword [rsi + 0x40]
mov dword [r14 - 0x68], eax
mov qword [r14 - 0x64], 0
cmp word [rsi + 0x68], 0
lea rax, [rbp + 0xf]
mov qword [rsi + 0x680], rax
mov rax, qword [rsi + 0x2b10]
jge 0x140006b6c
movzx ecx, word [rsi + 0x40]
test rax, rax
je 0x140006b5d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x17], ax
mov rax, rdi
jmp 0x140006b7b
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x11], ax
mov rax, rdi
jmp 0x140006b7b
test rax, rax
mov eax, 8
jne 0x140006b7b
mov eax, 2
mov rcx, rsi
xor edi, edi
lea r12, [rcx + 0x678]
mov qword [r12], rax
mov rcx, qword [rsi + 0xa98]
test rcx, rcx
je 0x140006be9
mov r10, qword [rsi + 0xaa0]
test r10, r10
je 0x140006be9
mov rbx, qword [rsi + 0x60]
lea rax, [rsi + 0x1ab8]
mov r8, qword [rsi + 0xa88]
lea rdx, [rsi + 0x688]
sub rbx, 4
dec r8
mov qword [rsp + 0x28], rbx
mov r9, rbx
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x140006be9
cmp rax, rbx
jae 0x140006be9
mov ecx, 0x4000
mov rdi, rax
or word [rsi + 0x68], cx
mov r15d, 0xfff
cmp word [r14 - 0xc8], r15w
jae 0x140006c09
movzx eax, byte [r14 - 0xc0]
shl ax, 0xc
or word [rsi + 0x68], ax
movzx ecx, word [rsi + 0x68]
or cx, word [r14 - 0xc8]
cmp qword [rsi + 0x2b10], 0
je 0x140006c2b
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x15], ax
jmp 0x140006c35
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xf], ax
mov r8, qword [rsi + 0xa90]
test r8, r8
je 0x140006c7a
mov rcx, qword [r12]
lea rbx, [rbp + 0xf]
add rbx, rcx
cmp word [r14 - 0xc8], r15w
jae 0x140006c5f
mov eax, dword [r14 - 0xc4]
jmp 0x140006c61
xor eax, eax
mov rdx, qword [rsi + 0xa88]
mov dword [rbx], eax
lea rax, [rcx + 4]
mov rcx, r12
mov qword [r12], rax
call r8
mov dword [rbx], eax
mov ecx, 2
test rdi, rdi
je 0x140006ca0
lea rax, [rsi + 0x1ab8]
mov qword [rsi + 0x688], rdi
mov qword [rsi + 0x690], rax
mov qword [rsi + 0xa88], rcx
mov eax, dword [rsi + 0x40]
lea rbx, [r14 - 0xbc]
mov dword [r14 - 0x78], eax
mov rdi, qword [rsi + 0xa88]
mov r15, qword [rsi]
test rbx, rbx
je 0x140006cdf
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov word [rbp - 1], cx
movzx ecx, word [r14 - 0xb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 1], ax
mov eax, dword [rbx]
mov dword [rbp + 3], eax
mov ecx, 0
mov rax, rbx
mov qword [rsp + 0x40], rcx
neg rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 1]
sbb r9d, r9d
mov r8d, edi
and r9d, 0x10
mov rdx, r12
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rbp - 9]
cmove rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140006d3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r12d, r12d
jmp 0x140006d42
mov r12d, dword [rbp - 9]
mov rbx, qword [r14 + 0x20]
lea r15, [r14 + 0x20]
cmp rbx, r15
je 0x140006e0c
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x140006dc7
dec qword [rax]
mov rax, qword [rbx + 0x58]
cmp qword [rax], 0
jne 0x140006dc7
or dword [rax + 8], 0x100
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x140006dc7
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140006da9
mov rcx, rdi
call rax
test byte [rdi + 8], 4
jne 0x140006dbe
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140006dbe
call qword [0x140071110]
mov rcx, rdi
call qword [0x140071110]
mov rcx, rbx
call qword [0x140071110]
mov rbx, qword [r15]
cmp rbx, r15
jne 0x140006d60
cmp dword [r14 - 0xa8], 6
jne 0x140006e0c
lea rax, [r14 + 0x30]
cmp qword [rax], rax
jne 0x140006e0c
lea rax, [r14 + 0x40]
cmp qword [rax], rax
jne 0x140006e0c
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x140006e0c
mov edx, dword [r14 + 0xe8]
mov rcx, r13
call fcn.140003900
test r12d, r12d
js 0x140006e6a
add dword [rsi + 0x2ad0], r12d
inc dword [rsi + 0x2ad4]
mov r15d, dword [rbp - 0x51]
xor r12d, r12d
mov rcx, qword [rbp - 0x59]
imul rax, qword [rsi + 0x30], 0x1d8
mov rbx, qword [rbp - 0x49]
add r13, 0x1d8
add rax, qword [rcx]
add r14, 0x1d8
mov rdi, qword [rbp - 0x41]
cmp r13, rax
jb 0x140006940
mov r14, qword [rbp - 0x59]
cmp dword [rsi + 0x58], 0
je 0x140006e71
mov rbx, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x41]
jmp 0x140006910
mov eax, 0xffffffff
jmp 0x140006e73
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140053d00
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret