Function at 0x1800219b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rdx
movdqu xmm0, xmmword [r8]
movdqu xmmword [rcx + 0x20], xmm0
cmp qword [rcx + 0x18], 0x13
jb 0x180021deb
mov rdi, rcx
mov ebp, dword [rcx + 8]
mov r15, qword [rcx + 0x28]
mov r12, qword [rcx]
movzx eax, byte [rcx + 0xc]
mov qword [r12 + 0x20], 5
mov dword [r12 + 0x28], eax
pxor xmm0, xmm0
movdqu xmmword [r12 + 0x2c], xmm0
xor eax, eax
mov dword [r12 + 0x3c], eax
mov dword [r12 + 0x40], ebp
xor r14d, r14d
cmp ebp, 3
setge r14b
inc r14d
movdqu xmmword [r12 + 0x44], xmm0
mov dword [r12 + 0x54], eax
movzx eax, word [r12 + 0xd0]
cmp eax, 2
jne 0x180021d27
mov eax, 5
cmp word [r12 + 0xd2], r14w
jne 0x180021f76
add eax, 0xfffffffc
lea rcx, [0x1800b9250]
mov rcx, qword [rcx + rax*8]
mov qword [r12 + 0x68], rcx
mov eax, dword [r12 + 0x24]
xor ebx, ebx
test eax, eax
sete bl
shl rbx, 0x11
add rbx, rcx
cmp qword [r12 + 0x70], rbx
jae 0x180021df7
mov qword [r12 + 0x70], 0
mov rax, qword [r12 + 0x10]
mov rdx, qword [r12 + 0x78]
test rax, rax
jne 0x180021e01
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [r12 + 8]
mov rcx, qword [r12 + 0x18]
test rax, rax
jne 0x180021e11
mov rax, qword [r12]
test rax, rax
jne 0x180021f18
mov ecx, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r14, rax
mov qword [r12 + 0x78], rax
test rax, rax
je 0x180022011
mov qword [r12 + 0x70], rbx
mov eax, dword [r12 + 0x24]
mov qword [r12 + 0x80], r14
xor ecx, ecx
mov qword [r12 + 0x88], rcx
pxor xmm0, xmm0
movdqu xmmword [r12 + 0x98], xmm0
movdqu xmmword [r12 + 0xa8], xmm0
movdqu xmmword [r12 + 0xb8], xmm0
movabs rdx, 0x85ebca7724234428
mov qword [r12 + 0xa0], rdx
mov dword [r12 + 0xac], 0x61c8864f
mov qword [r12 + 0x60], rcx
test eax, eax
jne 0x180021bb0
mov r14d, dword [r12 + 0x40]
mov rbx, qword [r12 + 0xc8]
cmp r14d, 2
jle 0x180021f44
cmp byte [rbx + 0x40027], 0
jne 0x180021f58
mov rax, qword [rbx + 0x40000]
test rax, rax
je 0x180021b83
sub rax, qword [rbx + 0x40008]
mov qword [rbx + 0x40000], rax
mov qword [rbx + 0x40008], 0
cmp r14d, 0xc
mov eax, 0xc
cmovl eax, r14d
mov word [rbx + 0x40024], ax
add rbx, 0x40028
mov qword [rbx], 0
cmp ebp, 3
jl 0x180021bc4
mov rax, qword [r12 + 0xc8]
mov byte [rax + 0x40026], 0
mov dword [r15], 0x184d2204
mov eax, dword [r12 + 0x24]
mov ecx, dword [r12 + 0x28]
shl eax, 5
and eax, 0x20
mov edx, dword [r12 + 0x3c]
shl edx, 4
and edx, 0x10
or edx, eax
xor eax, eax
cmp qword [r12 + 0x30], 0
setne al
lea eax, [rdx + rax*8]
and ecx, 1
lea eax, [rax + rcx*4]
xor ecx, ecx
cmp dword [r12 + 0x38], 0
setne cl
or ecx, eax
or cl, 0x40
mov byte [r15 + 4], cl
mov al, byte [r12 + 0x20]
shl al, 4
and al, 0x70
mov byte [r15 + 5], al
mov rax, qword [r12 + 0x30]
test rax, rax
jne 0x180021ef4
lea rax, [r15 + 6]
lea rcx, [r15 + 4]
mov edx, dword [r12 + 0x38]
test edx, edx
jne 0x180021f0d
mov rdx, rax
sub rdx, rcx
cmp rdx, 0x10
jae 0x180021e1f
lea r8d, [rdx + 0x165667b1]
cmp rdx, 4
jb 0x180021c81
imul r9d, dword [rcx], 0xc2b2ae3d
add r9d, r8d
rol r9d, 0x11
add rcx, 4
imul r8d, r9d, 0x27d4eb2f
add rdx, 0xfffffffffffffffc
cmp rdx, 3
ja 0x180021c5e
test rdx, rdx
je 0x180021cab
xor r9d, r9d
movzx r10d, byte [rcx + r9]
imul r10d, r10d, 0x165667b1
add r10d, r8d
rol r10d, 0xb
imul r8d, r10d, 0x9e3779b1
inc r9
cmp rdx, r9
jne 0x180021c89
mov ecx, r8d
shr ecx, 0xf
xor ecx, r8d
imul ecx, ecx, 0x85ebca77
mov edx, ecx
shr edx, 0xd
xor edx, ecx
imul ecx, edx, 0xc2b2ae3d
mov edx, ecx
shr edx, 0x18
shr ecx, 8
xor ecx, edx
mov byte [rax], cl
mov dword [r12 + 0x5c], 1
sub rax, r15
inc rax
cmp rax, 0xffffffffffffffeb
jae 0x180022018
mov rcx, qword [rdi + 0x28]
test rax, rax
je 0x180021cfe
test rcx, rcx
je 0x180021fae
test rcx, rcx
mov edx, 1
cmovne rdx, rcx
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp eax, 1
je 0x180022076
mov rax, qword [r12 + 0x10]
mov rdx, qword [r12 + 0xc8]
test rax, rax
jne 0x18002208e
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [r12 + 0x40], 2
mov rax, qword [r12]
jle 0x180022037
test rax, rax
jne 0x18002209e
mov ecx, 0x40038
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [r12 + 0xc8], rax
test rax, rax
je 0x180022011
test bl, 7
jne 0x180021da5
mov r8d, 0x40030
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov word [rbx + 0x40024], 9
cmp qword [r12 + 0xc8], 0
je 0x180022011
mov word [r12 + 0xd0], r14w
mov word [r12 + 0xd2], r14w
mov eax, dword [r12 + 0x20]
test eax, eax
je 0x180022024
lea edx, [rax - 8]
mov rcx, 0xfffffffffffffffe
cmp edx, 0xfffffffc
jb 0x180021a59
jmp 0x180021a4b
mov rax, 0xfffffffffffffff5
jmp 0x180022018
mov r14, qword [r12 + 0x78]
jmp 0x180021aea
mov rcx, qword [r12 + 0x18]
call qword [0x1800d2010]
jmp 0x180021aa1
mov rdx, rbx
call qword [0x1800d2010]
jmp 0x180021acf
lea r8, [rcx + rdx]
add r8, 0xfffffffffffffff1
movdqa xmm0, xmmword [0x1800b7450]
movdqa xmm1, xmmword [0x1800b7460]
movdqa xmm2, xmmword [0x1800b7470]
movdqu xmm3, xmmword [rcx]
pshufd xmm4, xmm3, 0xf5
pmuludq xmm3, xmm1
pshufd xmm3, xmm3, 0xe8
pmuludq xmm4, xmm1
pshufd xmm4, xmm4, 0xe8
punpckldq xmm3, xmm4
paddd xmm3, xmm0
movdqa xmm0, xmm3
psrld xmm0, 0x13
pslld xmm3, 0xd
por xmm3, xmm0
pshufd xmm4, xmm3, 0xf5
pmuludq xmm3, xmm2
pshufd xmm0, xmm3, 0xe8
pmuludq xmm4, xmm2
pshufd xmm3, xmm4, 0xe8
punpckldq xmm0, xmm3
add rcx, 0x10
cmp rcx, r8
jb 0x180021e3f
movdqa xmm1, xmmword [0x1800b7480]
pshufd xmm2, xmm0, 0xf5
pmuludq xmm0, xmm1
pshufd xmm3, xmm0, 0xed
pshufd xmm1, xmm1, 0xf5
pmuludq xmm1, xmm2
pshufd xmm2, xmm1, 0xed
punpckldq xmm3, xmm2
pshufd xmm0, xmm0, 0xe8
pshufd xmm1, xmm1, 0xe8
punpckldq xmm0, xmm1
por xmm0, xmm3
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd r8d, xmm0
add r8d, edx
and edx, 0xf
jmp 0x180021c58
mov qword [r15 + 6], rax
lea rax, [r15 + 0xe]
mov qword [r12 + 0x90], 0
jmp 0x180021c30
mov dword [rax], edx
add rax, 4
jmp 0x180021c41
mov rdx, rbx
call qword [0x1800d2010]
test rax, rax
je 0x180022008
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [r12 + 0x78], r14
jmp 0x180021ae0
mov rcx, rbx
call fcn.1800a6600
add rbx, 0x4008
jmp 0x180021ba9
test bl, 7
jne 0x180021b8e
mov r8d, 0x40028
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
jmp 0x180021b8e
mov rbx, qword [r12 + 0xc8]
test rbx, rbx
setne cl
test bl, 7
sete al
and al, cl
cmp ebp, 2
jg 0x180021fb9
test al, al
je 0x180021dbd
mov r8d, 0x4020
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
jmp 0x180021dbd
int3
test al, al
je 0x1800220c0
mov r8d, 0x40030
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov word [rbx + 0x40024], 9
mov eax, dword [r12 + 0x40]
mov rbx, qword [r12 + 0xc8]
cmp eax, 0xc
mov ecx, 0xc
cmovl ecx, eax
test eax, eax
mov eax, 9
cmovg eax, ecx
mov word [rbx + 0x40024], ax
jmp 0x180021dbd
mov qword [r12 + 0x78], 0
mov rax, 0xfffffffffffffff7
mov byte [rsi + 0x10], 1
mov qword [rsi], rax
jmp 0x180021d15
mov dword [r12 + 0x20], 4
mov eax, 4
jmp 0x180021a4b
test rax, rax
je 0x1800220b3
mov rcx, qword [r12 + 0x18]
mov edx, 0x4020
call qword [0x1800d2010]
mov qword [r12 + 0xc8], rax
test rax, rax
je 0x180022011
test al, 7
jne 0x180021da5
mov r8d, 0x4020
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
jmp 0x180021da5
cmp ebp, 2
jg 0x180021d30
mov al, 1
test al, al
jne 0x180021a37
jmp 0x180021d30
mov rcx, qword [r12 + 0x18]
call qword [0x1800d2010]
jmp 0x180021d4f
mov rcx, qword [r12 + 0x18]
mov edx, 0x40038
call qword [0x1800d2010]
jmp 0x180021d73
mov ecx, 0x4020
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x18002204c
mov eax, ebp
jmp 0x180021fe7