Function at 0x180115020
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 0x18011537d
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
mov rbp, 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.180114bf0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x180115399
mov r13, qword [rsp + 0x20]
cmp al, 2
je 0x1801153e9
mov r8, qword [rsi + 8]
mov r15, qword [rsi + 0x10]
sub r8, r15
jb 0x180115407
movzx edi, byte [rsp + 0x28]
mov rdx, qword [rsi]
add rdx, r15
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, r14
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x1801153ab
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x1801153d5
mov r12, rax
shl r12, 0x20
or r12, 2
mov ecx, eax
call fcn.1800fef40
cmp al, 0xd
jne 0x180115150
test rbp, rbp
je 0x180115150
mov rcx, qword [rbp]
mov rax, qword [rbp + 8]
lock inc qword [rax]
jle 0x180115407
add rcx, 0x10
mov rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x10]
movzx r9d, byte [rbp + 0x18]
call fcn.1800730f0
test rax, rax
cmovne r12, rax
mov r15d, r12d
and r15d, 3
lea rcx, [0x18011540c]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
mov r15d, r12d
and r15d, 3
lea rcx, [0x18011540c]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
movzx eax, byte [r12 + 0x10]
jmp case.0x18011525c.0
movzx eax, byte [r12 + 0xf]
jmp case.0x18011525c.0
add byte [rax], al
add byte [rax], al
mov rcx, r12
shr rcx, 0x20
call fcn.1800fef40
cmp al, 0xd
jne 0x1801153e6
and r13d, 3
mov rax, qword [rbx + 0x40]
mov rcx, rdi
shl rcx, 0x10
xor r13, 0x7f00000f
nop word [rax + rax]
mov rdx, rax
shr rdx, 0x10
cmp dil, dl
jne 0x1801151cc
mov edx, eax
and edx, r13d
or rdx, rcx
lock cmpxchg qword [rbx + 0x40], rdx
jne 0x1801151b0
lea rax, [r15 - 2]
cmp rax, 2
jb 0x180115060
test r15, r15
je 0x180115060
lea r13, [r12 - 1]
mov rcx, qword [r12 - 1]
mov rax, qword [r12 + 7]
call qword [rax]
mov rax, qword [r12 + 7]
cmp qword [rax + 8], 0
je 0x18011521f
mov r8, qword [r12 - 1]
cmp qword [rax + 0x10], 0x11
jb 0x180115210
mov r8, qword [r8 - 8]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180115060
mov rcx, r12
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x18011525c
xor eax, eax
lea rdx, [0x18011541c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 1
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 2
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 3
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 4
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 5
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 6
jmp case.0x18011525c.0
invalid
invalid
invalid
mov al, 7
jmp case.0x18011525c.0
mov al, 8
jmp case.0x18011525c.0
mov al, 9
jmp case.0x18011525c.0
mov al, 0xa
jmp case.0x18011525c.0
mov al, 0xb
jmp case.0x18011525c.0
mov al, 0xc
jmp case.0x18011525c.0
mov al, 0xd
jmp case.0x18011525c.0
mov al, 0xe
jmp case.0x18011525c.0
mov al, 0xf
jmp case.0x18011525c.0
mov al, 0x10
jmp case.0x18011525c.0
mov al, 0x11
jmp case.0x18011525c.0
mov al, 0x12
jmp case.0x18011525c.0
mov al, 0x13
jmp case.0x18011525c.0
mov al, 0x14
jmp case.0x18011525c.0
mov al, 0x15
jmp case.0x18011525c.0
mov al, 0x16
jmp case.0x18011525c.0
mov al, 0x17
jmp case.0x18011525c.0
mov al, 0x18
jmp case.0x18011525c.0
mov al, 0x19
jmp case.0x18011525c.0
mov al, 0x1a
jmp case.0x18011525c.0
mov al, 0x1b
jmp case.0x18011525c.0
mov al, 0x1c
jmp case.0x18011525c.0
mov al, 0x1d
jmp case.0x18011525c.0
mov al, 0x1e
jmp case.0x18011525c.0
mov al, 0x1f
jmp case.0x18011525c.0
mov al, 0x20
jmp case.0x18011525c.0
mov al, 0x21
jmp case.0x18011525c.0
mov al, 0x22
jmp case.0x18011525c.0
mov al, 0x23
jmp case.0x18011525c.0
mov al, 0x24
jmp case.0x18011525c.0
mov al, 0x25
jmp case.0x18011525c.0
mov al, 0x26
jmp case.0x18011525c.0
mov al, 0x27
jmp case.0x18011525c.0
mov al, 0x28
jmp case.0x18011525c.0
mov r8, qword [rdx]
lea rcx, [rsp + 0x20]
mov rdx, rbx
xor r9d, r9d
call fcn.180114bf0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1801153a0
mov eax, 1
jmp 0x1801153eb
cmp al, 2
jne 0x1801153ff
mov r13, qword [rsp + 0x20]
jmp 0x1801153e9
movsxd rdx, eax
lea rax, [rdx + r15]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x1801153c2
mov qword [rsi + 0x18], rax
mov rcx, rax
add rdx, r15
jb 0x180115407
cmp rax, rcx
ja 0x180115407
mov qword [rsi + 0x10], rax
xor r13d, r13d
jmp 0x1801153e9
xor edx, edx
lea rax, [rdx + r15]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
ja 0x1801153bb
jmp 0x1801153c2
mov r13, r12
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