Function at 0x14009f610
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, 0x78
mov rbx, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [rsp + 0xe0]
test r9, r9
je 0x14009f664
mov rsi, rax
add rsi, 0x400
jb 0x14009f664
mov rcx, rsi
and rcx, 0x1fff
je 0x14009f669
mov edx, 0x2000
sub rdx, rcx
add rsi, rdx
setb cl
test cl, 1
je 0x14009f669
mov esi, 0x2000
mov r13, qword [rdi]
mov r12, qword [rdi + 0x10]
cmp rbx, 1
setne cl
test rax, rax
sete al
or al, cl
mov rbp, r12
cmp al, 1
jne 0x14009f6c3
mov rax, r13
sub rax, r12
mov rbp, r12
cmp rax, 0x20
jae 0x14009f6c3
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, rdi
call fcn.14009f8d0
cmp qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
jne 0x14009f8a1
test rax, rax
je 0x14009f8ac
mov rbp, qword [rdi + 0x10]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x50], r15
mov r15, qword [r15]
xor r14d, r14d
nop dword [rax]
mov r13, qword [rdi]
cmp rbp, r13
jne 0x14009f722
cmp r13, qword [rsp + 0x58]
jne 0x14009f722
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov r8, rdi
call fcn.14009f8d0
cmp qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
jne 0x14009f89c
mov rbp, qword [rdi + 0x10]
test rax, rax
je 0x14009f884
mov r13, qword [rdi]
cmp rbp, r13
jne 0x14009f7c0
mov r12, r13
add r12, 0x20
jb 0x14009f878
lea rax, [r13*2]
cmp rax, r12
cmova r12, rax
cmp r12, 9
mov eax, 8
cmovb r12, rax
test r13, r13
je 0x14009f76e
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], r13
mov eax, 1
jmp 0x14009f770
xor eax, eax
mov rdx, r12
not rdx
shr rdx, 0x3f
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov r8, r12
lea r9, [rsp + 0x30]
call fcn.140097080
cmp qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x68]
je 0x14009f7b2
movabs rcx, 0x8000000000000001
cmp rax, rcx
je 0x14009f7c0
jmp 0x14009f878
mov qword [rdi + 8], rax
mov qword [rdi], r12
mov r13, r12
nop dword [rax]
sub r13, rbp
add rbp, qword [rdi + 8]
cmp r13, rsi
cmovae r13, rsi
cmp r13, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r13
mov rcx, r15
mov rdx, rbp
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14009f853
cdqe
cmp r14, rax
mov rcx, r14
cmovbe rcx, rax
cmp rcx, r13
ja 0x14009f8ca
mov rbp, qword [rdi + 0x10]
test rax, rax
je 0x14009f868
mov r14, rcx
sub r14, rax
add rbp, rax
mov qword [rdi + 0x10], rbp
cmp rbx, 1
je 0x14009f6e0
cmp rcx, r13
mov rdx, 0xffffffffffffffff
cmovne rsi, rdx
lea rcx, [rsi + rsi]
test rsi, rsi
cmovs rcx, rdx
cmp r13, rsi
cmovb rcx, rsi
cmp rax, r13
cmove rsi, rcx
jmp 0x14009f6e0
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009f894
cmp r14, r13
ja 0x14009f8ca
mov rbp, qword [rdi + 0x10]
mov r14, qword [rsp + 0x28]
sub rbp, qword [rsp + 0x48]
mov qword [r14 + 8], rbp
jmp 0x14009f8b4
movabs rax, 0x2600000003
jmp 0x14009f89c
sub rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x28]
mov qword [r14 + 8], rbp
jmp 0x14009f8b4
shl rax, 0x20
or rax, 2
mov r14, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov eax, 1
jmp 0x14009f8b6
mov qword [r14 + 8], 0
xor eax, eax
mov qword [r14], rax
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2