Function at 0x180104f20
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 0x18010526d
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.180104af0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x180105289
mov r13, qword [rsp + 0x20]
cmp al, 2
je 0x1801052d9
mov r8, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
sub r8, rdi
jb 0x1801052f7
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 sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x18010529b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x1801052c5
mov rdi, rax
shl rdi, 0x20
or rdi, 2
mov ecx, eax
call fcn.1800f28e0
cmp al, 0xd
jne 0x180105050
test r12, r12
je 0x180105050
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x1801052f7
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.1800678f0
test rax, rax
cmovne rdi, rax
mov r15d, edi
and r15d, 3
lea rcx, [0x1801052fc]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
mov r15d, edi
and r15d, 3
lea rcx, [0x1801052fc]
movsxd rax, dword [rcx + r15*4]
add rax, rcx
jmp rax
movzx eax, byte [rdi + 0x10]
jmp case.0x18010514c.0
movzx eax, byte [rdi + 0xf]
jmp case.0x18010514c.0
add byte [rax], al
add byte [rax], al
mov rcx, rdi
shr rcx, 0x20
call fcn.1800f28e0
cmp al, 0xd
jne 0x1801052d6
and r13d, 3
mov rax, qword [rbx + 0x40]
mov rcx, rbp
shl rcx, 0x10
xor r13, 0x7f00000f
nop word [rax + rax]
mov rdx, rax
shr rdx, 0x10
cmp bpl, dl
jne 0x1801050cc
mov edx, eax
and edx, r13d
or rdx, rcx
lock cmpxchg qword [rbx + 0x40], rdx
jne 0x1801050b0
lea rax, [r15 - 2]
cmp rax, 2
jb 0x180104f60
test r15, r15
je 0x180104f60
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 0x180105118
cmp qword [rdi + 0x10], 0x11
jb 0x180105106
mov rbp, qword [rbp - 8]
mov rcx, qword [0x1801fd960]
xor edx, edx
mov r8, rbp
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1801fd960]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x180104f60
mov rcx, rdi
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x18010514c
xor eax, eax
lea rdx, [0x18010530c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 1
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 2
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 3
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 4
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 5
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 6
jmp case.0x18010514c.0
invalid
invalid
invalid
mov al, 7
jmp case.0x18010514c.0
mov al, 8
jmp case.0x18010514c.0
mov al, 9
jmp case.0x18010514c.0
mov al, 0xa
jmp case.0x18010514c.0
mov al, 0xb
jmp case.0x18010514c.0
mov al, 0xc
jmp case.0x18010514c.0
mov al, 0xd
jmp case.0x18010514c.0
mov al, 0xe
jmp case.0x18010514c.0
mov al, 0xf
jmp case.0x18010514c.0
mov al, 0x10
jmp case.0x18010514c.0
mov al, 0x11
jmp case.0x18010514c.0
mov al, 0x12
jmp case.0x18010514c.0
mov al, 0x13
jmp case.0x18010514c.0
mov al, 0x14
jmp case.0x18010514c.0
mov al, 0x15
jmp case.0x18010514c.0
mov al, 0x16
jmp case.0x18010514c.0
mov al, 0x17
jmp case.0x18010514c.0
mov al, 0x18
jmp case.0x18010514c.0
mov al, 0x19
jmp case.0x18010514c.0
mov al, 0x1a
jmp case.0x18010514c.0
mov al, 0x1b
jmp case.0x18010514c.0
mov al, 0x1c
jmp case.0x18010514c.0
mov al, 0x1d
jmp case.0x18010514c.0
mov al, 0x1e
jmp case.0x18010514c.0
mov al, 0x1f
jmp case.0x18010514c.0
mov al, 0x20
jmp case.0x18010514c.0
mov al, 0x21
jmp case.0x18010514c.0
mov al, 0x22
jmp case.0x18010514c.0
mov al, 0x23
jmp case.0x18010514c.0
mov al, 0x24
jmp case.0x18010514c.0
mov al, 0x25
jmp case.0x18010514c.0
mov al, 0x26
jmp case.0x18010514c.0
mov al, 0x27
jmp case.0x18010514c.0
mov al, 0x28
jmp case.0x18010514c.0
mov r8, qword [rdx]
lea rcx, [rsp + 0x20]
mov rdx, rbx
xor r9d, r9d
call fcn.180104af0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180105290
mov eax, 1
jmp 0x1801052db
cmp al, 2
jne 0x1801052ef
mov r13, qword [rsp + 0x20]
jmp 0x1801052d9
movsxd rdx, eax
lea rax, [rdx + rdi]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x1801052b2
mov qword [rsi + 0x18], rax
mov rcx, rax
add rdx, rdi
jb 0x1801052f7
cmp rax, rcx
ja 0x1801052f7
mov qword [rsi + 0x10], rax
xor r13d, r13d
jmp 0x1801052d9
xor edx, edx
lea rax, [rdx + rdi]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
ja 0x1801052ab
jmp 0x1801052b2
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