Function at 0x140021aa0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rsi, qword [0x14006cbf0]
xor r9d, r9d
mov qword [rsp + 0x78], rbp
mov rdi, rsi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov eax, dword [rsi + 0x4bf8]
sub eax, 1
movaps xmmword [rsp + 0x30], xmm9
mov qword [rsp + 0x20], r9
mov byte [rsp + 0xb0], r9b
js 0x140021b1f
movsxd rdx, eax
mov rax, qword [rsi + 0x4c00]
imul r8, rdx, 0x38
add rax, 8
add r8, rax
nop word [rax + rax]
mov rbp, qword [r8]
test rbp, rbp
je 0x140021b15
test dword [rbp + 0x14], 0x8000000
jne 0x140021bde
sub r8, 0x38
sub rdx, 1
jns 0x140021b00
lea r12, [rsi + 0x4e88]
mov rbp, r9
mov rax, qword [r12]
xorps xmm9, xmm9
cmp qword [rsi + 0x4e90], r9
je 0x140021b7c
test rax, rax
jne 0x140021b7c
comiss xmm9, dword [rsi + 0x4ebc]
movss xmm0, dword [rsi + 0x18]
movss xmm1, dword [rsi + 0x4ea4]
mulss xmm0, dword [0x140062a44]
subss xmm1, xmm0
maxss xmm1, xmm9
movss dword [rsi + 0x4ea4], xmm1
jb 0x140021b7c
comiss xmm9, xmm1
jb 0x140021b7c
mov qword [rsi + 0x4e90], r9
mov esi, 0xffffffff
lea rdx, [0x14005cb69]
mov ebx, esi
lea r9, [0x14005d9d0]
mov r8b, 0x23
cmp r8b, 0x23
jne 0x140021ba6
cmp byte [rdx], r8b
jne 0x140021ba6
cmp byte [rdx + 1], r8b
cmove ebx, esi
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r9 + rcx*4]
test r8b, r8b
jne 0x140021b94
mov eax, dword [rdi + 8]
not ebx
mov rsi, qword [0x14006cbf0]
test al, 2
je 0x140021bf1
test byte [rdi + 0xc], 1
je 0x140021bf1
mov r13b, 1
jmp 0x140021bf4
lea r12, [rsi + 0x4e88]
mov rax, r9
mov qword [r12], r9
jmp 0x140021b2d
xor r13b, r13b
and al, 1
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
mov dword [rsp + 0xb8], eax
test rbp, rbp
jne 0x140021c53
mov r14d, dword [rdi + 0x4e80]
test r14d, r14d
je 0x140021c53
mov r8d, 0x1101
mov edx, ebx
mov ecx, r14d
call fcn.140019900
test al, al
je 0x140021c4c
mov r8d, 0x1101
mov edx, ebx
mov ecx, r14d
call fcn.14001ba80
test al, al
je 0x140021c4c
mov rsi, qword [0x14006cbf0]
mov r14b, 1
jmp 0x140021c5b
mov rsi, qword [0x14006cbf0]
xor r14b, r14b
test rbp, rbp
jne 0x140021ca2
mov r15d, dword [rdi + 0x4e84]
test r15d, r15d
je 0x140021ca2
mov r8d, 0x1101
mov edx, ebx
mov ecx, r15d
call fcn.140019900
test al, al
je 0x140021c9b
mov r8d, 0x1101
mov edx, ebx
mov ecx, r15d
call fcn.14001ba80
test al, al
je 0x140021c9b
mov rsi, qword [0x14006cbf0]
mov r15b, 1
jmp 0x140021caa
mov rsi, qword [0x14006cbf0]
xor r15b, r15b
test rbp, rbp
jne 0x140021cce
test r13b, r13b
je 0x140021cce
cmp qword [r12], 0
jne 0x140021cce
xor r8d, r8d
xor edx, edx
mov ecx, 0x279
call fcn.140019a30
test al, al
je 0x140021cce
mov r8b, 1
jmp 0x140021cdc
xor r8b, r8b
test rbp, rbp
jne 0x140021cea
cmp qword [r12], rbp
jne 0x140021cea
test r14b, r14b
jne 0x140021ce6
test r15b, r15b
je 0x140021cea
mov al, 1
jmp 0x140021cec
xor al, al
mov byte [rsp + 0xa8], al
test r8b, r8b
jne 0x140021d00
test al, al
je 0x140021e7b
mov rax, qword [rdi + 0x4ca8]
test rax, rax
jne 0x140021d82
mov r9d, dword [rdi + 0x40f8]
sub r9d, 1
js 0x140021e7b
movsxd rdx, r9d
movsxd rax, dword [rsi + 0x40f8]
cmp rdx, rax
jge 0x140021e7b
cmp rdx, 0xffffffff80000001
je 0x140021e7b
mov rax, qword [rsi + 0x4100]
mov rcx, qword [rax + rdx*8]
cmp byte [rcx + 0xf4], 0
je 0x140021d63
cmp rcx, qword [rcx + 0x3c0]
jne 0x140021d63
test dword [rcx + 0x14], 0x20000
je 0x140021d72
dec r9d
sub rdx, 1
js 0x140021e7b
jmp 0x140021d20
movsxd rcx, r9d
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140021e7b
mov rax, qword [rax + 0x3c0]
mov qword [rdi + 0x4e90], rax
mov qword [r12], rax
movzx eax, byte [rsp + 0xa8]
xor eax, 1
mov qword [rdi + 0x4ea0], 0
add eax, 2
mov qword [rdi + 0x4eb4], 0
mov qword [rdi + 0x4eac], 0
mov byte [rdi + 0x4ea8], r8b
mov dword [rdi + 0x4cdc], eax
test r14b, r14b
jne 0x140021dde
test r15b, r15b
je 0x140021e7b
mov eax, dword [rdi + 0x4e84]
or eax, dword [rdi + 0x4e80]
bt eax, 0xc
jae 0x140021e05
mov dword [rsi + 0x48fc], ebx
mov dword [rsi + 0x48f8], ebx
mov word [rsi + 0x4900], 0
bt eax, 0xd
jae 0x140021e20
mov dword [rsi + 0x4908], ebx
mov dword [rsi + 0x4904], ebx
mov word [rsi + 0x490c], 0
bt eax, 0xe
jae 0x140021e3b
mov dword [rsi + 0x4914], ebx
mov dword [rsi + 0x4910], ebx
mov word [rsi + 0x4918], 0
bt eax, 0xf
jae 0x140021e56
mov dword [rsi + 0x4920], ebx
mov dword [rsi + 0x491c], ebx
mov word [rsi + 0x4924], 0
bt eax, 0xb
jae 0x140021e7b
cmp byte [rsi + 0x61], 0
mov eax, 0x48f8
mov ecx, 0x491c
cmovne eax, ecx
mov dword [rax + rsi + 4], ebx
mov dword [rax + rsi], ebx
mov word [rax + rsi + 8], 0
movss xmm0, dword [rdi + 0x4ea0]
mov r13d, 1
mov rbp, qword [r12]
movss xmm5, dword [0x1400629f4]
mov rdx, rbp
movaps xmmword [rsp + 0x40], xmm6
addss xmm0, dword [rdi + 0x18]
movss dword [rdi + 0x4ea0], xmm0
test rbp, rbp
je 0x140021f9a
cmp dword [rdi + 0x4cdc], 3
jne 0x140021fa3
subss xmm0, dword [0x14006298c]
divss xmm0, dword [0x140062970]
comiss xmm9, xmm0
jbe 0x140021edc
movaps xmm1, xmm9
jmp 0x140021ee3
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm6, dword [rdi + 0x4ea4]
mov r8d, r13d
maxss xmm6, xmm1
xor edx, edx
mov ecx, 0x281
movss dword [rdi + 0x4ea4], xmm6
call fcn.140019a30
mov r8d, r13d
movzx ebx, al
xor edx, edx
mov ecx, 0x282
call fcn.140019a30
movzx ecx, al
mov eax, ebx
sub eax, ecx
je 0x140021f39
mov ecx, eax
call fcn.140021950
mov rbp, qword [r12]
movaps xmm6, xmm5
mov dword [rdi + 0x4ea4], 0x3f800000
mov edx, 0x279
mov rcx, rsi
call fcn.140019340
cmp byte [rax], 0
je 0x140021f5b
cmp byte [rsi + 0x47a4], 0
mov rdx, qword [r12]
mov rbp, rdx
je 0x140021f9a
comiss xmm5, xmm6
seta al
and byte [rdi + 0x4ea8], al
je 0x140021f88
cmp qword [rdi + 0x4ca8], 0
je 0x140021f8d
mov byte [rsp + 0xb0], r13b
mov qword [r12], 0
jmp 0x14002204e
mov qword [rsp + 0x20], rbp
mov qword [r12], 0
jmp 0x14002204e
test rdx, rdx
je 0x14002204e
cmp dword [rdi + 0x4cdc], 2
jne 0x14002204e
mov eax, dword [rdi + 0x4e80]
mov ecx, 0xf800
movss xmm0, dword [rdi + 0x4ea0]
test eax, eax
subss xmm0, dword [0x14006298c]
cmovne ecx, eax
mov r8d, 0xf800
mov eax, dword [rdi + 0x4e84]
test eax, eax
cmovne r8d, eax
divss xmm0, dword [0x140062970]
and r8d, ecx
mov ecx, r8d
and ecx, 0xf800
comiss xmm9, xmm0
jbe 0x140022002
movaps xmm5, xmm9
jmp 0x140022006
minss xmm5, xmm0
movss xmm0, dword [rdi + 0x4ea4]
maxss xmm0, xmm5
movss dword [rdi + 0x4ea4], xmm0
test r14b, r14b
jne 0x14002203b
test r15b, r15b
jne 0x14002203b
mov eax, dword [rdi + 0xe74]
and eax, r8d
and eax, 0xf800
cmp eax, ecx
je 0x14002204e
mov rbx, rdx
jmp 0x140022053
movzx ecx, r14b
xor ecx, r13d
lea ecx, [rcx*2 - 1]
call fcn.140021950
mov rbx, qword [rsp + 0x20]
cmp byte [rsp + 0xb8], 0
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
je 0x140022093
xor r8d, r8d
mov edx, 0xffffffff
mov ecx, 0x4000
call fcn.140019a30
test al, al
je 0x140022093
mov byte [rdi + 0x4ea8], r13b
mov dword [rdi + 0x4cdc], 2
cmp byte [rdi + 0x4ea8], 0
je 0x1400221cb
cmp dword [rdi + 0x4cdc], 2
jne 0x1400221cb
cmp dword [rdi + 0x3918], 0
jg 0x1400220da
cmp byte [rdi + 0xe70], 0
jne 0x1400220da
cmp byte [rdi + 0xe71], 0
jne 0x1400220da
cmp byte [rdi + 0xe73], 0
jne 0x1400220da
cmp dword [rsi + 0x4910], 0xffffffff
je 0x1400220e1
mov byte [rdi + 0x4ea8], 0
mov edx, 0x4000
mov rcx, rsi
call fcn.140019340
comiss xmm9, dword [rax + 8]
ja 0x1400221a9
cmp byte [rax], 0
jne 0x1400221a9
cmp byte [rsi + 0x4918], 0
jne 0x1400221a9
cmp byte [rdi + 0x4ea8], 0
je 0x1400221a9
cmp dword [rdi + 0x41ac], 0
je 0x14002212e
cmp byte [rdi + 0x41b9], 0
je 0x1400221a9
lea rax, [rdi + 0x381c]
test rax, rax
jne 0x140022141
lea rax, [rsi + 0xe50]
movss xmm0, dword [rax]
movss xmm1, dword [0x140062ac8]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022162
comiss xmm2, xmm1
jb 0x140022162
movzx ecx, r13b
jmp 0x140022164
xor cl, cl
lea rax, [rdi + 0xe50]
test rax, rax
jne 0x140022177
lea rax, [rsi + 0xe50]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140022190
comiss xmm2, xmm1
jb 0x140022190
movzx eax, r13b
jmp 0x140022192
xor al, al
mov edx, dword [rsp + 0xb0]
cmp al, cl
movzx edx, dl
cmove edx, r13d
mov dword [rsp + 0xb0], edx
mov edx, 0x4000
mov rcx, rsi
call fcn.140019340
cmp byte [rax], 0
je 0x1400221c4
cmp byte [rsi + 0x4918], 0
je 0x1400221cb
mov byte [rdi + 0x4ea8], 0
mov rax, qword [r12]
test rax, rax
je 0x140022370
test byte [rax + 0x14], 4
jne 0x140022370
mov eax, dword [rdi + 0x4cdc]
cmp eax, 2
jne 0x14002222e
cmp byte [rdi + 0xe71], 0
jne 0x140022370
mov edx, 0x203
mov rcx, rsi
call fcn.140019340
mov edx, 0x201
mov rcx, rsi
mov r10, rax
call fcn.140019340
mov edx, 0x202
mov rcx, rsi
mov r9, rax
call fcn.140019340
mov edx, 0x204
jmp 0x140022269
cmp eax, 3
jne 0x140022370
mov edx, 0x289
mov rcx, rsi
call fcn.140019340
mov edx, 0x287
mov rcx, rsi
mov r10, rax
call fcn.140019340
mov edx, 0x288
mov rcx, rsi
mov r9, rax
call fcn.140019340
mov edx, 0x28a
movss xmm2, dword [rax + 0xc]
mov rcx, rsi
subss xmm2, dword [r9 + 0xc]
call fcn.140019340
ucomiss xmm2, xmm9
movss xmm3, dword [rax + 0xc]
subss xmm3, dword [r10 + 0xc]
jp 0x14002229b
jne 0x14002229b
ucomiss xmm3, xmm9
jp 0x14002229b
je 0x140022370
movss xmm1, dword [rdi + 0x50]
xorps xmm6, xmm6
movss xmm0, dword [rdi + 0x18]
xorps xmm5, xmm5
minss xmm1, dword [rdi + 0x54]
mulss xmm0, dword [0x140062a98]
mov byte [rdi + 0x4cf3], r13b
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [rdi + 0x4eac]
addss xmm3, dword [rdi + 0x4eb0]
cvttss2si eax, xmm2
movss dword [rdi + 0x4eac], xmm2
movss dword [rdi + 0x4eb0], xmm3
cvtsi2ss xmm6, eax
cvttss2si eax, xmm3
ucomiss xmm6, xmm9
cvtsi2ss xmm5, eax
jp 0x14002230b
jne 0x14002230b
ucomiss xmm5, xmm9
jp 0x14002230b
je 0x140022370
mov rax, qword [r12]
lea rdx, [rsp + 0xa0]
movaps xmm0, xmm6
movaps xmm1, xmm5
mov r8d, r13d
mov rcx, qword [rax + 0x3d0]
addss xmm0, dword [rcx + 0x58]
addss xmm1, dword [rcx + 0x5c]
movss dword [rsp + 0xa0], xmm0
movss dword [rsp + 0xa4], xmm1
call fcn.140018fa0
movss xmm0, dword [rdi + 0x4eb0]
movss xmm4, dword [rdi + 0x4eac]
subss xmm0, xmm5
subss xmm4, xmm6
movss dword [rdi + 0x4eb0], xmm0
movss dword [rdi + 0x4eac], xmm4
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm6, xmmword [rsp + 0x40]
test rbx, rbx
je 0x14002241f
mov rax, qword [rdi + 0x4ca8]
test rax, rax
je 0x14002239f
cmp rbx, qword [rax + 0x3c0]
je 0x140022417
mov rsi, qword [rax + 0x40]
jmp 0x1400223a1
xor esi, esi
xor edx, edx
xor ecx, ecx
call fcn.14000da80
mov rax, qword [0x14006cbf0]
xor edx, edx
mov rcx, rbx
mov word [rax + 0x4cf1], r13w
mov byte [rax + 0x4cf3], r13b
call fcn.14001d480
mov edx, r13d
mov rcx, rbx
call fcn.1400188f0
mov rbx, qword [rdi + 0x4ca8]
cmp dword [rbx + 0x3f0], 0
jne 0x1400223ef
xor edx, edx
mov rcx, rbx
call fcn.14001f010
cmp word [rbx + 0x19e], 2
jne 0x140022400
mov dword [rdi + 0x4ce0], r13d
mov rcx, qword [rbx + 0x40]
cmp rcx, rsi
je 0x140022417
mov rax, qword [rdi + 0x3960]
test rax, rax
je 0x140022417
call rax
mov qword [r12], 0
cmp byte [rsp + 0xb0], 0
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
je 0x1400224fd
cmp qword [rdi + 0x4ca8], 0
je 0x1400224fd
xor edx, edx
xor ecx, ecx
call fcn.14000da80
mov rsi, qword [rdi + 0x4ca8]
mov rbx, rsi
lea rcx, [rsi + 0x3b0]
cmp qword [rcx], 0
je 0x1400224a3
test byte [rbx + 0x19c], 2
jne 0x14002248d
mov eax, dword [rbx + 0x14]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x14002248d
mov rbx, qword [rcx]
lea rcx, [rbx + 0x3b0]
cmp qword [rcx], 0
jne 0x140022465
cmp rbx, rsi
je 0x1400224a3
xor edx, edx
mov rcx, rbx
call fcn.1400188f0
mov qword [rbx + 0x3e8], rsi
mov rax, qword [rdi + 0x4ca8]
test byte [rax + 0x19c], 2
je 0x1400224be
mov ecx, dword [rdi + 0x4ce0]
xor ecx, 1
jmp 0x1400224c0
xor ecx, ecx
cmp ecx, dword [rdi + 0x4ce0]
je 0x1400224fd
cmp ecx, 1
jne 0x1400224e1
cmp qword [rbx + 0x458], 0
jne 0x1400224e1
mov dword [rax + 0x3f4], 0
call fcn.14001eee0
mov rax, qword [0x14006cbf0]
mov word [rax + 0x4cf1], 1
mov byte [rax + 0x4cf3], 1
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret