Function at 0x180021920
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r12, rcx
mov rax, qword [0x180a850c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
vmovups xmm0, xmmword [0x180066b28]
vmovaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x66], 0
mov qword [rsp + 0x60], 0x25ff
vmovups xmm0, xmmword [0x180066b48]
vmovaps xmmword [rsp + 0x50], xmm0
mov qword [rcx + 0x20], 0
xor eax, eax
mov qword [rsp + 0x20], rax
xor r14d, r14d
xor ebp, ebp
nop word [rax + rax]
movzx ebx, bpl
add rbx, qword [r12]
mov r15, qword [r12 + 0x10]
mov rcx, rbx
lea rdx, [rsp + 0x28]
call fcn.180021d90
test byte [rsp + 0x4a], 0x10
jne 0x180021cc3
movzx r13d, r14b
mov r8d, r13d
cmp bpl, 5
jb 0x1800219f0
mov qword [rsp + 0x66], rbx
mov dl, 1
mov eax, recv
lea rsi, [rsp + 0x60]
cmp rbx, qword [rsp + 0x20]
jb 0x180021be0
jmp 0x180021bed
movzx ecx, byte [rsp + 0x35]
and cl, 0xc7
cmp cl, 5
jne 0x180021a60
mov ecx, eax
lea r9, [rsp + 0x80]
mov rdi, r9
mov rsi, rbx
rep movsb byte [rdi], byte [rsi]
movzx ecx, byte [rsp + 0x28]
lea rdx, [rsp + 0x7c]
add rcx, rdx
mov edx, dword [rsp + 0x49]
shr edx, 2
and edx, 0xf
sub rcx, rdx
add r15d, r8d
mov edx, ebx
sub edx, r15d
add edx, dword [rsp + 0x45]
mov dword [rcx], edx
movzx ecx, byte [rsp + 0x33]
movzx edx, byte [rsp + 0x37]
not cl
xor dl, 4
or dl, cl
sete dl
mov rsi, r9
cmp rbx, qword [rsp + 0x20]
jb 0x180021be0
jmp 0x180021bed
movzx esi, byte [rsp + 0x33]
cmp esi, 0xe8
jne 0x180021a9e
movzx eax, byte [rsp + 0x28]
add rax, rbx
movsxd rcx, dword [rsp + 0x3d]
add rcx, rax
mov qword [rsp + 0x78], rcx
mov eax, reloc.WS2_32.dll_recv
xor edx, edx
lea rsi, [rsp + 0x70]
cmp rbx, qword [rsp + 0x20]
jb 0x180021be0
jmp 0x180021bed
mov edx, esi
and edx, 0xfffffffd
cmp edx, 0xe9
jne 0x180021afb
movzx edx, byte [rsp + 0x28]
add rdx, rbx
cmp sil, 0xeb
movsx rdi, byte [rsp + 0x3d]
movsxd rcx, dword [rsp + 0x3d]
cmove rcx, rdi
add rcx, rdx
mov rdx, qword [r12]
cmp rcx, rdx
jb 0x180021b6f
add rdx, 5
cmp rcx, rdx
jae 0x180021b6f
mov rdx, qword [rsp + 0x20]
cmp rdx, rcx
cmovbe rdx, rcx
mov qword [rsp + 0x20], rdx
xor edx, edx
jmp 0x180021bd4
mov edx, esi
and edx, 0xfffffff0
cmp edx, 0x70
sete dl
mov ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0xe0
sete r9b
or r9b, dl
jne 0x180021b2b
movzx ecx, byte [rsp + 0x34]
and cl, 0xf0
cmp cl, 0x80
jne 0x180021bbe
movzx ecx, byte [rsp + 0x28]
add rcx, rbx
movsx rdi, byte [rsp + 0x3d]
movsxd rdx, dword [rsp + 0x3d]
test r9b, r9b
cmovne rdx, rdi
add rdx, rcx
mov rdi, qword [r12]
cmp rdx, rdi
jb 0x180021b81
add rdi, 5
cmp rdx, rdi
jae 0x180021b81
mov rcx, qword [rsp + 0x20]
cmp rcx, rdx
cmovbe rcx, rdx
mov qword [rsp + 0x20], rcx
xor edx, edx
jmp 0x180021bd4
mov qword [rsp + 0x66], rcx
cmp rbx, qword [rsp + 0x20]
setae dl
jmp 0x1800219c9
mov eax, esi
and al, 0xfc
cmp al, 0xe0
je 0x180021cc3
cmp sil, 0xf
jne 0x180021b97
mov esi, dword [rsp + 0x34]
and sil, 0xf
xor sil, 0x71
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x58], rdx
mov eax, reloc.WS2_32.dll_recv
xor edx, edx
lea rsi, [rsp + 0x50]
cmp rbx, qword [rsp + 0x20]
jb 0x180021be0
jmp 0x180021bed
and esi, 0xfffffffe
cmp esi, 0xc2
sete cl
cmp rbx, qword [rsp + 0x20]
setae dl
and dl, cl
mov rsi, rbx
cmp rbx, qword [rsp + 0x20]
jae 0x180021bed
nop
movzx ecx, byte [rsp + 0x28]
cmp eax, ecx
jne 0x180021cc3
add r13d, eax
cmp r13d, 0x32
ja 0x180021cc3
mov ecx, dword [r12 + 0x24]
cmp rcx, 8
jae 0x180021cc3
mov byte [r12 + rcx + 0x28], bpl
mov byte [r12 + rcx + 0x30], r14b
inc ecx
mov dword [r12 + 0x24], ecx
mov ecx, eax
mov rdi, qword [r12 + 0x10]
add rdi, r8
rep movsb byte [rdi], byte [rsi]
add bpl, byte [rsp + 0x28]
mov r14d, r13d
test dl, dl
je 0x180021990
cmp bpl, 4
ja 0x180021c8d
movzx ebx, bpl
mov rcx, qword [r12]
lea rax, [rcx + rbx]
movzx edx, byte [rcx + rbx]
test edx, edx
je 0x180021c64
cmp edx, 0xcc
je 0x180021c64
cmp edx, 0x90
jne 0x180021ceb
mov edi, 5
sub edi, ebx
cmp edi, 2
jb 0x180021c8d
mov edi, edi
mov esi, 1
nop word [rax + rax]
cmp byte [rax + rsi], dl
jne 0x180021ceb
inc rsi
cmp rdi, rsi
jne 0x180021c80
mov rax, qword [r12 + 8]
mov qword [rsp + 0x66], rax
mov rax, qword [r12 + 0x10]
movzx ecx, r13b
lea rdx, [rax + rcx]
mov qword [r12 + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x66]
mov qword [rax + rcx + 6], rbp
mov qword [rax + rcx], rdx
mov esi, 1
jmp 0x180021cc5
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180022690
mov eax, esi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp bpl, 1
ja 0x180021d27
xor esi, esi
test edx, edx
je 0x180021d07
cmp edx, 0xcc
je 0x180021d07
cmp edx, 0x90
jne 0x180021cc5
mov ebp, 2
sub ebp, ebx
cmp ebp, 2
jb 0x180021d27
mov ebp, ebp
mov ebx, 1
cmp byte [rax + rbx], dl
jne 0x180021cc5
inc rbx
cmp rbp, rbx
jne 0x180021d1a
add rcx, 0xfffffffffffffffb
call fcn.1800218a0
xor esi, esi
test eax, eax
je 0x180021cc5
mov rax, qword [r12]
movzx ecx, byte [rax - 5]
test ecx, ecx
je 0x180021d56
cmp ecx, 0xcc
je 0x180021d56
cmp ecx, 0x90
jne 0x180021cc5
cmp byte [rax - 4], cl
jne 0x180021cc5
cmp byte [rax - 3], cl
jne 0x180021cc5
cmp byte [rax - 2], cl
jne 0x180021cc5
cmp byte [rax - 1], cl
jne 0x180021cc5
mov dword [r12 + 0x20], 1
jmp 0x180021c8d