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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x168
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebp, ebp
mov r13, r8
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x14004019b
test byte [rcx + 0x38], 0x10
mov rdi, rcx
jne 0x14004019e
mov rdi, rbp
or r14d, 0xffffffff
mov dword [rsp + 0x40], ebp
test rdi, rdi
je 0x140040378
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x1400401bf
xor ecx, ecx
call fcn.1400346c0
mov eax, dword [rdi + 0x98]
test al, 2
jne 0x14004039b
test byte [rsi + 0x38], 4
mov qword [rsp + 0x1b8], r12
mov qword [rsp + 0x160], r15
jne 0x140040358
test al, 1
jne 0x140040358
xor edx, edx
mov qword [rdi + 0xa0], rbp
mov r8d, 0x100
mov dword [rdi + 0xa8], ebp
lea rcx, [rdi + 0xb0]
call fcn.140045920
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, rsi
call fcn.140020420
cmp eax, 0xffffffff
je 0x140040358
xor edx, edx
mov rcx, rsi
call fcn.14001fd50
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rsi
call fcn.140020990
movsxd r15, eax
mov r8, r15
test eax, eax
jle 0x14004029f
lea r9, [rsp + 0x50]
sub r9, rdi
lea rcx, [rsp + 0x58]
sub rcx, rdi
lea rdx, [rdi + 0xb0]
nop dword [rax]
mov rax, qword [r9 + rdx - 0xb0]
mov qword [rdx + 8], rax
mov eax, dword [rcx + rdx - 0xb0]
mov dword [rdx], eax
lea rdx, [rdx + 0x10]
sub r8, 1
jne 0x140040280
mov rax, qword [rsp + 0x48]
mov dword [rdi + 0xa8], r15d
mov rbx, qword [rax]
mov qword [rdi + 0xa0], rbx
test rbx, rbx
je 0x1400402d7
nop word [rax + rax]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140020040
mov rbx, qword [rbx]
inc ebp
test rbx, rbx
jne 0x1400402c0
cmp ebp, r15d
jne 0x140040415
mov rcx, rsi
call fcn.14001ffc0
mov rcx, qword [rdi + 0x90]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], r13
lea rdx, [rdi + 0xb0]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x14004034e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14004034e
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.140040a90
xor edx, edx
mov rcx, rsi
call fcn.14001fda0
mov rcx, rsi
call fcn.14001d7d0
jmp 0x140040358
or dword [rdi + 0x98], 1
xor r14d, r14d
mov rdx, qword [rsi + 0x30]
test rdx, rdx
je 0x140040368
xor ecx, ecx
call fcn.1400346e0
mov r12, qword [rsp + 0x1b8]
mov r15, qword [rsp + 0x160]
mov eax, r14d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140042500
add rsp, 0x168
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rax, [0x1400a34e0]
mov r9d, 0x103
mov qword [rsp + 0x28], rax
lea r8, [0x1400a3518]
lea rax, [0x1400a34f8]
mov ecx, 0xdeaddead
lea rdx, [0x1400a3528]
mov qword [rsp + 0x20], rax
call fcn.140034040
mov ecx, 2
call fcn.14004bcdc
mov rcx, rax
lea r8, [0x1400a3588]
lea rax, [0x1400a3550]
mov r9d, 0x103
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a3598]
lea rax, str._buf_o__write_in_progress
mov qword [rsp + 0x20], rax
call fcn.1400193c0
call fcn.140054a44
int3
lea rax, [0x1400a35c0]
mov r9d, 0x11f
mov qword [rsp + 0x28], rax
lea r8, [0x1400a35e8]
lea rax, [0x1400a35d8]
mov ecx, 0xdeaddead
lea rdx, [0x1400a35f8]
mov qword [rsp + 0x20], rax
call fcn.140034040
mov ecx, 2
call fcn.14004bcdc
mov rcx, rax
lea r8, str.buffer_iocp.c
lea rax, str.evbuffer_launch_read
mov r9d, 0x11f
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d:_Assertion__s_failed_in__s
lea rax, str.npin__nvecs
mov qword [rsp + 0x20], rax
call fcn.1400193c0
call fcn.140054a44
int3