Function at 0x180103770
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, 0x38
mov rsi, r8
mov rbx, qword [rcx + 0x10]
mov r14, qword [rcx + 0x18]
cmp r14, 0xffffffffffffffff
je 0x180103acd
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
mov r12, qword [rcx + 0x20]
nop word cs:[rax + rax]
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8, qword [rsp + 0x30]
xor r9d, r9d
call fcn.1801032a0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x180103ae9
mov r13, qword [rsp + 0x20]
cmp al, 2
je 0x180103b39
mov r8, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
sub r8, rdi
jb 0x180103b57
movzx ebp, byte [rsp + 0x28]
mov rdx, qword [rsi]
add rdx, rdi
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x180103afb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x180103b25
mov rdi, rax
shl rdi, 0x20
or rdi, 2
mov ecx, eax
call fcn.1800f40d0
cmp al, 0xd
jne 0x1801038a0
test r12, r12
je 0x1801038a0
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x180103b57
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.180066e80
test rax, rax
cmovne rdi, rax
mov r15d, edi
and r15d, 3
lea rcx, [0x180103b5c]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
mov r15d, edi
and r15d, 3
lea rcx, [0x180103b5c]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
movzx eax, byte [rdi + 0x10]
jmp case.0x1801039ac.0
movzx eax, byte [rdi + 0xf]
jmp case.0x1801039ac.0
add byte [rax], al
add byte [rax], al
mov rcx, rdi
shr rcx, 0x20
call fcn.1800f40d0
cmp al, 0xd
jne 0x180103b36
and r13d, 0x23
mov rax, qword [rbx + 0xd0]
mov rcx, rbp
shl rcx, 0x10
xor r13, 0x2f
nop word [rax + rax]
mov rdx, rax
shr rdx, 0x10
cmp bpl, dl
jne 0x18010391f
mov edx, eax
and edx, r13d
or rdx, rcx
lock cmpxchg qword [rbx + 0xd0], rdx
jne 0x180103900
lea rax, [r15 - 2]
cmp rax, 2
jb 0x1801037b0
test r15, r15
je 0x1801037b0
lea r13, [rdi - 1]
mov rbp, qword [rdi - 1]
mov rdi, qword [rdi + 7]
mov rcx, rbp
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x18010396b
cmp qword [rdi + 0x10], 0x11
jb 0x180103959
mov rbp, qword [rbp - 8]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rbp
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1801037b0
mov rcx, rdi
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x1801039ac
xor eax, eax
lea rdx, [0x180103b6c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 1
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 2
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 3
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 4
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 5
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 6
jmp case.0x1801039ac.0
invalid
invalid
invalid
mov al, 7
jmp case.0x1801039ac.0
mov al, 8
jmp case.0x1801039ac.0
mov al, 9
jmp case.0x1801039ac.0
mov al, 0xa
jmp case.0x1801039ac.0
mov al, 0xb
jmp case.0x1801039ac.0
mov al, 0xc
jmp case.0x1801039ac.0
mov al, 0xd
jmp case.0x1801039ac.0
mov al, 0xe
jmp case.0x1801039ac.0
mov al, 0xf
jmp case.0x1801039ac.0
mov al, 0x10
jmp case.0x1801039ac.0
mov al, 0x11
jmp case.0x1801039ac.0
mov al, 0x12
jmp case.0x1801039ac.0
mov al, 0x13
jmp case.0x1801039ac.0
mov al, 0x14
jmp case.0x1801039ac.0
mov al, 0x15
jmp case.0x1801039ac.0
mov al, 0x16
jmp case.0x1801039ac.0
mov al, 0x17
jmp case.0x1801039ac.0
mov al, 0x18
jmp case.0x1801039ac.0
mov al, 0x19
jmp case.0x1801039ac.0
mov al, 0x1a
jmp case.0x1801039ac.0
mov al, 0x1b
jmp case.0x1801039ac.0
mov al, 0x1c
jmp case.0x1801039ac.0
mov al, 0x1d
jmp case.0x1801039ac.0
mov al, 0x1e
jmp case.0x1801039ac.0
mov al, 0x1f
jmp case.0x1801039ac.0
mov al, 0x20
jmp case.0x1801039ac.0
mov al, 0x21
jmp case.0x1801039ac.0
mov al, 0x22
jmp case.0x1801039ac.0
mov al, 0x23
jmp case.0x1801039ac.0
mov al, 0x24
jmp case.0x1801039ac.0
mov al, 0x25
jmp case.0x1801039ac.0
mov al, 0x26
jmp case.0x1801039ac.0
mov al, 0x27
jmp case.0x1801039ac.0
mov al, 0x28
jmp case.0x1801039ac.0
mov r8, qword [rdx]
lea rcx, [rsp + 0x20]
mov rdx, rbx
xor r9d, r9d
call fcn.1801032a0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180103af0
mov eax, 1
jmp 0x180103b3b
cmp al, 2
jne 0x180103b4f
mov r13, qword [rsp + 0x20]
jmp 0x180103b39
movsxd rdx, eax
lea rax, [rdx + rdi]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x180103b12
mov qword [rsi + 0x18], rax
mov rcx, rax
add rdx, rdi
jb 0x180103b57
cmp rax, rcx
ja 0x180103b57
mov qword [rsi + 0x10], rax
xor r13d, r13d
jmp 0x180103b39
xor edx, edx
lea rax, [rdx + rdi]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
ja 0x180103b0b
jmp 0x180103b12
mov r13, rdi
xor eax, eax
mov rdx, r13
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
ud2