Function at 0x180220fb0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r14, qword [rcx + 0x40]
xor r15d, r15d
mov rsi, rdx
mov rbx, rcx
mov edi, r15d
test r14, r14
je 0x180220fe8
cmp r14, qword [rcx + 0xa0]
je 0x180220fe8
xor r13b, r13b
jmp 0x180220feb
mov r13b, 1
mov rax, qword [rcx + 0x80]
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x48]
test rax, rax
je 0x180221007
mov byte [rax + 0x10], 1
test r13b, r13b
je 0x18022104e
mov rax, qword [rcx + 0x30]
mov r8, qword [rax + 0x120]
test r8, r8
je 0x18022104e
mov rcx, qword [rcx + 0x30]
mov rax, r8
lock cmpxchg qword [rcx + 0x120], r15
jne 0x18022104e
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
cmp r8, rcx
jle 0x18022104e
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x88]
call fcn.180222f40
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0x90]
dec ebp
mov r12d, r15d
cmp qword [rsi], 1
je 0x18022143e
test r14, r14
jne 0x1802210a3
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x84]
mov rdx, qword [rbx + 0x30]
shr ecx, 0xc
cmp dword [rdx + 0x80], ecx
jb 0x180221481
mov rax, qword [rdx + 0x128]
cmp dword [rax + 0x2c], r14d
je 0x1802210a3
cmp dword [rdx + 0x148], r14d
je 0x180221481
mov rax, qword [rbx + 0x30]
mov rsi, qword [rax + 0x88]
test rbp, rbp
je 0x1802210d3
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x1802210d3
mov rcx, rbx
call fcn.18021f500
mov rdi, rax
test rax, rax
jne 0x1802211fd
test r13b, r13b
je 0x18022110c
mov rax, qword [rbx + 0x30]
movsxd rcx, esi
cmp qword [rax + rcx*8 + 0x98], 0
je 0x18022110c
mov r8, qword [rbx + 0x28]
lea rcx, [rax + 0x98]
sub r8, 0xffffffffffffff80
mov edx, esi
call fcn.180221710
mov rdi, rax
test rax, rax
jne 0x18022145f
cmp qword [rbx + 0x158], 0
je 0x18022112a
mov rcx, rbx
call fcn.18021f000
mov rdi, rax
test rax, rax
jne 0x1802211fd
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x98], rax
jae 0x180221253
test rbp, rbp
je 0x180221253
mov edx, dword [rbx + 0x90]
mov ecx, dword [rbx + 0x94]
imul eax, edx, 0x61c8864f
sub ecx, eax
mov eax, edx
shr rax, 0x10
xor edx, edx
div rbp
mov dword [rbx + 0x90], ecx
mov eax, 0x280
cmp rdx, qword [rbx + 0x20]
mov ecx, 0x180
cmovb eax, ecx
shl rdx, 8
add rax, rdx
add rax, qword [rbx + 0x30]
cmp qword [rax + 8], 0
je 0x180221253
mov rdx, rax
mov rcx, rbx
call fcn.18021f320
mov rdi, rax
test rax, rax
je 0x180221253
cmp byte [rax - 0xb], 0x20
jne 0x1802211da
mov rdi, qword [rax + 8]
lea rcx, [rax + 8]
mov rdx, rax
cmp rdi, 1
je 0x180221249
mov rax, rdi
mov r8d, 2
lock cmpxchg qword [rcx], r8
jne 0x180221249
and rdi, 0xfffffffffffffffc
je 0x18022124b
or byte [rdi - 0xb], 0x80
movzx eax, byte [rdi - 0xb]
and al, 0xf
cmp al, 1
jb 0x1802211fd
mov qword [rbx + 0x38], rdi
mov rcx, rdi
mov rax, qword [rdi]
mov qword [rdi - 0x28], rbx
movzx edx, word [rbx + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x30]
lea rdx, [rbx + 0x60]
add rcx, 0xe0
mov rax, qword [rcx + 8]
cmp qword [rdx], rax
je 0x18022121f
movzx r8d, byte [rbx + 0x78]
call fcn.18028a1d0
mov rax, qword [0x1806d5a88]
lea rdx, [rbx + 0x58]
cmp qword [rdx], rax
je 0x18022143e
movzx r8d, byte [rbx + 0x78]
lea rcx, [0x1806d5a80]
call fcn.18028a1d0
jmp 0x18022143e
xor edi, edi
mov rcx, rbx
call fcn.180221590
rdtsc
shl rdx, 0x20
mov ecx, 1
or rax, rdx
mov r8, rax
lea r9, [rax + 0x3e8]
nop dword [rax + rax]
movsxd rdx, ecx
test ecx, ecx
je 0x18022127f
pause
sub rdx, 1
jne 0x180221277
cmp ecx, 0x10
lea eax, [rcx + rcx]
cmovge eax, ecx
mov ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
cmp rax, r8
jbe 0x1802212a0
mov r8, rax
cmp rax, r9
jb 0x180221270
lea eax, [rbp*2 + 2]
cmp r15d, eax
jl 0x180221429
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rcx, qword [rbx + 0x30]
cmp qword [rcx + 0x110], 0
je 0x1802213a4
mov eax, 1
lock xadd qword [rcx + 0x118], rax
mov rcx, qword [rbx + 0x30]
xor eax, eax
xchg qword [rcx + 0x110], rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1802213a4
dec qword [rbx + 0x168]
cmp qword [rbx + 0x40], 0
mov qword [rsp + 0x90], 0
jne 0x18022133c
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x84]
mov rax, qword [rbx + 0x30]
shr ecx, 0xc
cmp dword [rax + 0x80], ecx
jae 0x180221333
cmp dword [rax + 0x148], 2
jne 0x18022133c
mov r9, qword [rax + 0x88]
jmp 0x180221343
mov rax, qword [rbx + 0x68]
mov r9, qword [rax]
lea r8, [rsp + 0x90]
mov rcx, rbx
lea rdx, [rsp + 0x80]
call fcn.18021ed60
cmp qword [rsp + 0x80], 0
mov rdi, rax
je 0x18022139b
mov rcx, qword [rsp + 0x90]
mov rax, qword [rbx + 0x158]
mov qword [rcx], rax
cmp qword [rbx + 0x158], 0
jne 0x18022138c
mov qword [rbx + 0x160], rcx
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x158], rax
test rdi, rdi
jne 0x18022143e
mov eax, r12d
inc r12d
cmp eax, 0x64
jl 0x18022141d
test r14, r14
je 0x1802213cc
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
mov rax, qword [rbx + 0x30]
cmp rcx, qword [rax + 0x100]
jle 0x1802213e2
mov rcx, qword [rbx + 0x30]
call fcn.18022e6a0
test al, al
je 0x1802213e2
test r14, r14
je 0x180221481
cmp qword [rbx + 0x158], 0
je 0x18022141d
dec qword [rbx + 0x168]
test r14, r14
je 0x18022141d
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax + 0x88]
mov rax, qword [rbx + 0x68]
mov rcx, qword [rax]
cmp rcx, rdx
jle 0x18022141d
mov rax, qword [rbx + 0x30]
add rax, 0x88
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0x90]
dec ebp
mov rsi, qword [rsp + 0x88]
inc r15d
cmp qword [rsi], 1
jne 0x180221067
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x18022144b
mov byte [rax + 0x10], 0
mov rax, rdi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [0x1806c73d8]
test rax, rax
je 0x1802211fd
mov rcx, qword [rbx + 0x30]
add rcx, 0x98
call rax
jmp 0x1802211fd
xor eax, eax
jmp 0x18022144e