Function at 0x1400a8270
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, r8
mov qword [rsp + 0x30], rdx
mov r14, rcx
mov rsi, qword [r8]
mov r15, qword [r8 + 0x10]
test r9, r9
setne bl
mov qword [rsp + 0x28], r15
je 0x1400a82ed
mov rax, qword [rsp + 0xd0]
mov rcx, rax
add rcx, 0x400
jb 0x1400a82dd
mov edx, ecx
and edx, 0x1fff
mov r13d, 0x2000
sub r13, rdx
add r13, rcx
setb r8b
test rdx, rdx
setne dl
cmove r13, rcx
and dl, r8b
cmp dl, 1
jne 0x1400a82e3
mov r13d, 0x2000
mov r12b, 1
test rax, rax
jne 0x1400a8346
jmp 0x1400a82f3
mov r13d, 0x2000
mov rax, rsi
mov r15, qword [rsp + 0x28]
sub rax, r15
cmp rax, 0x20
jae 0x1400a8343
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8, rdi
call fcn.1400a8560
cmp qword [rsp + 0x38], 0
je 0x1400a8333
mov rax, qword [rsp + 0x40]
mov qword [r14 + 8], rax
mov qword [r14], 1
jmp 0x1400a854c
cmp qword [rsp + 0x40], 0
je 0x1400a8545
mov r15, qword [rdi + 0x10]
mov r12d, ebx
mov qword [rsp + 0x20], r14
mov rax, qword [rsp + 0x30]
mov r14, qword [rax]
xor ebx, ebx
nop word cs:[rax + rax]
mov rax, qword [rdi]
cmp r15, rax
jne 0x1400a839e
cmp rax, rsi
jne 0x1400a839e
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8, rdi
call fcn.1400a8560
cmp qword [rsp + 0x38], 0
jne 0x1400a84fc
cmp qword [rsp + 0x40], 0
mov r15, qword [rdi + 0x10]
je 0x1400a8513
mov rax, qword [rdi]
cmp r15, rax
jne 0x1400a83f0
mov rbp, rax
add rbp, 0x20
jb 0x1400a84c6
lea rcx, [rax + rax]
cmp rcx, rbp
cmova rbp, rcx
cmp rbp, 9
mov ecx, 8
cmovb rbp, rcx
test rax, rax
je 0x1400a83f5
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rax
mov eax, 1
jmp 0x1400a83f7
mov rbp, rax
jmp 0x1400a8430
xor eax, eax
mov rdx, rbp
not rdx
shr rdx, 0x3f
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov r8, rbp
lea r9, [rsp + 0x38]
call fcn.1400a1220
cmp qword [rsp + 0x50], 0
jne 0x1400a84c6
mov rax, qword [rsp + 0x58]
mov qword [rdi + 8], rax
mov qword [rdi], rbp
sub rbp, r15
add r15, qword [rdi + 8]
cmp rbp, r13
cmovae rbp, r13
cmp rbp, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rbp
mov rcx, r14
mov rdx, r15
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400a84d2
cdqe
cmp rbx, rax
mov rcx, rbx
cmovbe rcx, rax
cmp rcx, rbp
ja 0x1400a855d
mov r15, qword [rdi + 0x10]
test rax, rax
je 0x1400a84e7
mov rbx, rcx
sub rbx, rax
add r15, rax
mov qword [rdi + 0x10], r15
test r12b, r12b
jne 0x1400a8360
cmp rcx, rbp
mov rdx, 0xffffffffffffffff
cmovne r13, rdx
lea rcx, [r13*2]
test r13, r13
cmovs rcx, rdx
cmp rbp, r13
cmovb rcx, r13
cmp rax, rbp
cmove r13, rcx
jmp 0x1400a8360
movabs rax, 0x2600000003
jmp 0x1400a8501
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400a852a
cmp rbx, rbp
ja 0x1400a855d
mov r15, qword [rdi + 0x10]
sub r15, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], r15
xor eax, eax
mov qword [rcx], rax
jmp 0x1400a854c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov qword [rcx], 1
jmp 0x1400a854c
sub r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], r15
mov qword [rax], 0
jmp 0x1400a854c
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov eax, 1
mov qword [rcx], rax
jmp 0x1400a854c
xorps xmm0, xmm0
movups xmmword [r14], xmm0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2