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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x40
xor r13d, r13d
mov rbx, rcx
test dword [rcx + 0x18c], 0x2000
mov esi, 1
je 0x140015b35
call fcn.140014ca0
cmp eax, esi
cmove esi, r13d
mov rax, qword [rbx + 0x10]
mov ebp, r13d
test rax, rax
je 0x140015b4b
mov rax, qword [rax]
inc ebp
test rax, rax
jne 0x140015b41
lea ecx, [rbp + 2]
mov edx, reloc.WS2_32.dll_recv
call fcn.14005a638
mov rdi, rax
test rax, rax
jne 0x140015b8b
call fcn.14005c18c
mov ecx, dword [rax]
call fcn.14005eb2c
mov r8, rax
lea rdx, str.Error_allocating_memory:__s_n
mov rcx, rbx
call fcn.14001d140
xor eax, eax
add rsp, 0x40
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x150]
mov qword [rsp + 0x38], r12
or r12d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r14d, r13d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x78], r12d
cmp rcx, 0xffffffffffffffff
je 0x140015bed
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x140015bed
mov eax, dword [rbx + 0x17c]
cmp dword [rbx + 0x178], eax
jae 0x140015bed
cmp byte [rbx + 0x172], r13b
jne 0x140015bed
mov qword [rdi], rcx
mov r12d, r13d
mov dword [rdi + 8], 0x300
mov r14d, 1
mov dword [rsp + 0x78], r13d
mov rcx, qword [rbx + 0x160]
or r15d, 0xffffffff
cmp rcx, 0xffffffffffffffff
je 0x140015c16
mov eax, r14d
mov r15d, r14d
add rax, rax
inc r14d
mov qword [rdi + rax*8], rcx
mov dword [rdi + rax*8 + 8], 0x300
test esi, esi
jne 0x140015c1f
mov r10d, r13d
jmp 0x140015c5b
mov eax, dword [rbx + 0x18c]
and eax, 4
test al, al
jne 0x140015c57
lea rdx, [rsp + 0x88]
mov rcx, rbx
call fcn.140015350
cmp eax, 1
jne 0x140015c57
mov r10, qword [rsp + 0x88]
mov eax, 0x7fffffff
cmp r10, rax
cmova r10d, eax
jmp 0x140015c5b
or r10d, 0xffffffff
mov r8, qword [rbx + 0x18]
mov esi, 0x300
test r8, r8
je 0x140015cd6
mov r11d, 0x200
mov r9d, r14d
lea r12d, [r11 + 0x10]
nop word [rax + rax]
mov rax, qword [r8 + 0x110]
mov edx, r9d
shl rdx, 4
add rdx, rdi
mov qword [rdx], rax
mov ecx, dword [r8 + 0x124]
test ecx, ecx
je 0x140015cc1
sub ecx, 1
je 0x140015cba
sub ecx, 1
je 0x140015cb3
cmp ecx, 1
jne 0x140015cc5
mov r10d, r13d
jmp 0x140015cc5
or word [rdx + 8], r11w
jmp 0x140015cc5
or word [rdx + 8], r12w
jmp 0x140015cc5
or word [rdx + 8], si
mov r8, qword [r8 + 8]
inc r9d
test r8, r8
jne 0x140015c80
mov r12d, dword [rsp + 0x78]
lea edx, [r14 + rbp]
mov rcx, rdi
test edx, edx
je 0x140015e2e
mov r8d, r10d
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jns 0x140015d2b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140015e2b
mov ecx, eax
call fcn.14001c600
mov r8, rax
lea rdx, [0x1400b0c18]
mov rcx, rbx
call fcn.14001d140
mov rcx, rdi
call fcn.140056c3c
xor eax, eax
jmp 0x140015e38
mov byte [rbx + 0x174], r13b
cmp r15d, 0xffffffff
je 0x140015d70
movsxd rax, r15d
add rax, rax
movzx ecx, word [rdi + rax*8 + 0xa]
and cx, si
cmp r13w, cx
je 0x140015d70
nop dword [rax]
mov rcx, qword [rbx + 0x160]
lea rdx, [rsp + 0x80]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140015d50
movzx eax, byte [rbx + 0x170]
test al, al
jne 0x140015d1c
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140015e09
mov r15d, r14d
mov ebx, 0x607
neg r15d
mov r12d, 0x300
nop dword [rax]
mov rsi, qword [rcx + 8]
lea eax, [r15 + r14]
cmp eax, ebp
jae 0x140015dfa
mov rax, qword [rcx + 0x110]
mov edx, r14d
shl rdx, 4
add rdx, rdi
cmp qword [rdx], rax
jne 0x140015df2
movzx edx, word [rdx + 0xa]
movzx eax, dx
mov r8d, edx
and ax, bx
cmp r13w, ax
setne r9b
shr r8d, 4
and dx, r12w
and r8b, 1
cmp r13w, dx
setne dl
call fcn.140013af0
inc r14d
mov rcx, rsi
test rsi, rsi
jne 0x140015da0
mov rbx, qword [rsp + 0x70]
mov esi, 0x300
mov r12d, dword [rsp + 0x78]
cmp r12d, 0xffffffff
je 0x140015e2b
movsxd rax, r12d
add rax, rax
movzx ecx, word [rdi + rax*8 + 0xa]
and cx, si
cmp r13w, cx
je 0x140015e2b
mov rcx, rbx
call fcn.140014f30
mov rcx, rdi
call fcn.140056c3c
mov eax, 1
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
add rsp, 0x40
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret