Function at 0x14004c1b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
movaps xmmword [rsp + 0x120], xmm7
movaps xmmword [rsp + 0x110], xmm6
mov r13, rdx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0x108], rax
cmp r8d, 0x40
jb 0x14004cd4c
mov edx, r8d
mov eax, edx
and eax, 7
jne 0x14004cd4c
mov r15, rcx
mov rcx, qword [rcx + 8]
lea r9, [rdx + 0x68]
mov eax, dword [rcx + 0x14]
cmp r9, rax
ja 0x14004cd59
mov r10, qword [rcx + 8]
mov r9d, dword [r10 + rdx + 4]
cmp r9d, 0xc8799269
jne 0x14004cd59
add r10, rdx
mov r9d, dword [r10]
cmp r9d, 0x68
jb 0x14004cd59
mov r9d, dword [r10]
add r9d, r8d
cmp r9d, eax
ja 0x14004cd59
mov r11d, dword [r10 + 8]
xor r9d, r9d
cmp r11d, 0xf1645913
cmove r9, r10
lea rsi, [r9 + 0x10]
test r9, r9
cmove rsi, r9
lea r9, [rdx + 0x10]
cmp r9, rax
ja 0x14004cd6e
mov r9, qword [rcx + 8]
mov r10d, dword [r9 + rdx + 4]
cmp r10d, 0xc8799269
jne 0x14004cd6e
add r9, rdx
mov edx, dword [r9]
cmp edx, 0x10
jb 0x14004cd6e
mov r10d, dword [r9]
add r10d, r8d
xor edx, edx
cmp r10d, eax
ja 0x14004c2ca
test r9, r9
je 0x14004c2ca
mov edx, dword [r9]
cmp rdx, 0x11
jb 0x14004cd69
add r8d, edx
cmp r8d, eax
ja 0x14004cd69
add rdx, 0xfffffffffffffff0
test rsi, rsi
je 0x14004cd4c
cmp byte [rsi + 0x50], 0
je 0x14004cd4c
cmp byte [rdx + rsi - 1], 0
jne 0x14004cd4c
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x14004cd4c
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14004cd4c
cmp rcx, rax
je 0x14004c313
inc rax
cmp rcx, rax
jne 0x14004cd4c
mov r12, rsi
add r12, 0x50
je 0x14004cd82
mov rcx, r12
call fcn.140198c60
mov rdi, rax
xorps xmm0, xmm0
lea r14, [rsp + 0xc0]
movups xmmword [r14 + 0x34], xmm0
movups xmmword [r14 + 0x28], xmm0
movups xmmword [r14 + 0x18], xmm0
movups xmmword [r14 + 8], xmm0
movups xmmword [r14 - 8], xmm0
movaps xmm6, xmmword [0x140309930]
movups xmmword [r14 - 0x18], xmm6
test rdi, rdi
je 0x14004c39b
lea eax, [rdi*8]
mov rcx, rdi
shr rcx, 0x1d
mov dword [rsp + 0xbc], ecx
mov dword [rsp + 0xb8], eax
mov r8, rdi
cmp rdi, 0x40
jae 0x14004cb58
mov rdx, r12
mov dword [rsp + 0x100], edi
mov rcx, r14
call fcn.1401730b0
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x100]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0xbc]
mov byte [rsp + rax + 0xc0], 0x80
cmp rax, 0x38
jae 0x14004cbbb
cmp rcx, 0x38
je 0x14004c3e8
mov r8d, 0x38
sub r8, rcx
add rcx, r14
xor edx, edx
call fcn.140173760
lea rdi, [rsp + 0xa8]
mov dword [rdi + 0x50], ebx
mov dword [rdi + 0x54], ebp
mov r8d, 1
mov rcx, rdi
mov rdx, r14
call fcn.14000ce40
mov rax, qword [rdi]
bswap rax
mov rcx, qword [rsp + 0x48]
cmp rax, qword [rcx]
jne 0x14004cd4c
lea rcx, [rsi + 0x38]
mov eax, dword [rsi]
cmp eax, 4
je 0x14004ccb0
mov dword [rsp + 0x54], eax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x64], eax
mov ebx, dword [rsi + 0x10]
mov eax, dword [rsi + 0x14]
xor edi, edi
mov edx, dword [rsi + 0x18]
mov dword [rsp + 0x60], edx
cmp rax, 0x40
mov qword [rsp + 0x58], rcx
jb 0x14004cd7a
mov ecx, eax
mov r8d, 0
and ecx, 7
jne 0x14004c52c
mov rcx, qword [r15 + 8]
lea r8, [rax + 0x14]
mov edx, dword [rcx + 0x14]
cmp r8, rdx
ja 0x14004cd61
mov r9, qword [rcx + 8]
mov r8d, dword [r9 + rax + 4]
cmp r8d, 0xc8799269
jne 0x14004cd61
add r9, rax
mov r8d, dword [r9]
cmp r8d, 0x14
jb 0x14004cd61
mov r8d, dword [r9]
add r8d, eax
cmp r8d, edx
ja 0x14004cd61
mov r10d, dword [r9 + 8]
xor r8d, r8d
cmp r10d, 0xbcea225b
cmove r8, r9
lea rdi, [r8 + 0x10]
test r8, r8
cmove rdi, r8
lea r8, [rax + 0x10]
cmp r8, rdx
ja 0x14004cd7a
mov r9, qword [rcx + 8]
mov r8d, dword [r9 + rax + 4]
cmp r8d, 0xc8799269
jne 0x14004cd7a
add r9, rax
mov r8d, dword [r9]
cmp r8d, 0x10
jb 0x14004cd7a
mov r10d, dword [r9]
add r10d, eax
xor r8d, r8d
cmp r10d, edx
ja 0x14004c52c
test r9, r9
je 0x14004c52c
mov r8d, dword [r9]
cmp r8, 0x11
jb 0x14004cd75
add eax, r8d
cmp eax, edx
ja 0x14004cd75
add r8, 0xfffffffffffffff0
mov qword [rsp + 0x40], r13
test rdi, rdi
je 0x14004cd47
cmp ebx, 2
jb 0x14004cd47
cmp ebx, 0x3ffffffe
ja 0x14004cd47
mov r14, r15
lea r15d, [rbx + 1]
lea rbp, [r15*4]
cmp r8, rbp
jb 0x14004cd47
mov ecx, 0x20
call fcn.14016ecd4
mov r13, rax
mov rcx, rbp
call fcn.14016ecd4
mov qword [r13], rax
mov qword [r13 + 8], rax
lea rcx, [rax + r15*4]
mov qword [r13 + 0x10], rcx
xor edx, edx
nop
mov r8, rax
add r8, rdx
je 0x14004cce6
mov dword [r8], 0
add rdx, 4
cmp rbp, rdx
jne 0x14004c590
mov qword [r13 + 8], rcx
mov qword [r13 + 0x18], 0
test r15, r15
je 0x14004cd12
mov ecx, dword [rdi]
mov dword [rax], ecx
mov eax, 1
nop word [rax + rax]
mov ecx, dword [rdi + rax*4]
cmp ecx, dword [rdi + rax*4 - 4]
jle 0x14004cd3e
mov rdx, qword [r13]
mov r8, qword [r13 + 8]
sub r8, rdx
sar r8, 2
cmp r8, rax
jbe 0x14004cd12
mov dword [rdx + rax*4], ecx
inc rax
cmp r15, rax
jne 0x14004c5d0
mov rcx, qword [r13]
mov r8, qword [r13 + 8]
mov rdx, r8
sub rdx, rcx
je 0x14004cd89
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
jne 0x14004c62b
xor r8d, r8d
jmp 0x14004c670
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x140311e40]
nop dword [rax]
movzx r11d, al
movzx edi, byte [rcx + r8]
xor edi, r11d
shr eax, 8
xor eax, dword [r10 + rdi*4]
movzx r11d, al
movzx edi, byte [rcx + r8 + 1]
xor edi, r11d
shr eax, 8
xor eax, dword [r10 + rdi*4]
add r8, 2
cmp r9, r8
jne 0x14004c640
test dl, 1
je 0x14004c68c
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x140311e40]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [r13 + 0x18], eax
cmp eax, dword [rsp + 0x60]
jne 0x14004cd3e
test r13, r13
je 0x14004cd47
mov rcx, qword [r14 + 0x10]
test rcx, rcx
jne 0x14004cd90
mov rcx, r13
call fcn.1400ac950
mov r13, rax
lea rdi, [rbx*8]
mov eax, dword [rsi + 0x1c]
test eax, eax
jne 0x14004ca83
lea rax, [rsi + 0x1c]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rcx
movaps xmm0, xmmword [0x140301d60]
movups xmmword [rsp + 0x90], xmm0
mov r8, qword [r14 + 8]
mov qword [rsp + 0x88], r8
mov dword [rsp + 0x90], 0x53215531
cmp ebx, 0x1fffffff
ja 0x14004cd9d
mov r9d, edi
lea r14, [rsp + 0xc0]
lea edx, [rbx*4]
mov dword [rsp + 0x94], r9d
mov dword [rsp + 0x98], 0
mov byte [rsp + 0x9c], 0
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x68], r8
mov dword [rsp + 0x70], 0x53215531
cmp ebx, 0x1fffffff
ja 0x14004cdaa
mov dword [rsp + 0x74], edi
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x78], edx
mov byte [rsp + 0x7c], 0
mov qword [rsp + 0x80], rax
test ecx, ecx
jne 0x14004cb06
mov ecx, 0x28
call fcn.14016ecd4
mov r15, rax
mov qword [rax + 8], r12
mov dword [rax + 0x10], 0
lea rax, [0x140300b10]
mov qword [r15], rax
xorps xmm7, xmm7
movups xmmword [r15 + 0x18], xmm7
test r12, r12
je 0x14004cdd3
mov rcx, r12
call fcn.140198c60
mov rbp, rax
movups xmmword [rsp + 0xf4], xmm7
movups xmmword [rsp + 0xe8], xmm7
movups xmmword [rsp + 0xd8], xmm7
movups xmmword [rsp + 0xc8], xmm7
movups xmmword [rsp + 0xb8], xmm7
movups xmmword [rsp + 0xa8], xmm6
test rbp, rbp
je 0x14004c840
lea eax, [rbp*8]
mov rcx, rbp
shr rcx, 0x1d
mov dword [rsp + 0xbc], ecx
mov dword [rsp + 0xb8], eax
mov r8, rbp
cmp rbp, 0x40
jae 0x14004cb8b
mov dword [rsp + 0x100], ebp
mov rcx, r14
mov rdx, r12
call fcn.1401730b0
mov eax, dword [rsp + 0x100]
lea rcx, [rax + 1]
mov edi, dword [rsp + 0xb8]
mov ebx, dword [rsp + 0xbc]
mov byte [rsp + rax + 0xc0], 0x80
cmp rax, 0x38
jae 0x14004cbf0
cmp rcx, 0x38
je 0x14004c884
mov r8d, 0x38
sub r8, rcx
add rcx, r14
xor edx, edx
call fcn.140173760
lea r12, [rsp + 0xa8]
mov dword [r12 + 0x50], edi
mov dword [r12 + 0x54], ebx
mov r8d, 1
mov rcx, r12
mov rdx, r14
call fcn.14000ce40
mov rdi, qword [r12]
mov ecx, 0x48
call fcn.14016ecd4
mov r14, rax
mov qword [rax + 8], 0
mov rax, qword [0x1403428e0]
mov rbx, qword [rsp + 0x48]
and rax, rbx
cmp rax, qword [0x1403428c8]
je 0x14004cdda
mov qword [r14 + 0x10], rbx
cmp qword [rbx], 0
je 0x14004cde7
mov qword [r14 + 0x18], 0
mov rax, qword [0x1403428e0]
and rax, r13
cmp rax, qword [0x1403428c8]
jne 0x14004c90d
mov rcx, r13
call fcn.140156f20
mov qword [r14 + 0x20], r13
mov rax, qword [r13 + 8]
sub rax, qword [r13]
cmp rax, 4
je 0x14004cdf2
lea rbx, [r15 + 0x18]
lea rdi, [0x1402ffe18]
mov qword [r14], rdi
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [r14 + 0x28], xmm0
movups xmmword [r14 + 0x38], xmm1
mov eax, dword [rsi + 0x34]
cmp eax, 0xffffffff
jne 0x14004c971
mov rax, qword [r14 + 0x40]
mov eax, dword [rax]
test eax, eax
je 0x14004c971
mov rcx, r14
add rcx, 0x28
call fcn.14004cea0
mov qword [r14 + 0x18], rax
mov rax, qword [r14 + 0x18]
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
jne 0x14004cdf5
mov rax, qword [r14 + 0x10]
mov r14, qword [rax]
mov ecx, 0x48
call fcn.14016ecd4
mov rbx, rax
mov qword [rax + 8], 0
mov rax, qword [0x1403428e0]
mov rcx, qword [rsp + 0x58]
and rax, rcx
cmp rax, qword [0x1403428c8]
je 0x14004ce0b
mov qword [rbx + 0x10], rcx
cmp qword [rcx], 0
je 0x14004ce1a
mov qword [rbx + 0x18], 0
mov rax, qword [0x1403428e0]
and rax, r13
cmp rax, qword [0x1403428c8]
jne 0x14004c9e9
mov rcx, r13
call fcn.140156f20
mov qword [rbx + 0x20], r13
mov rax, qword [r13 + 8]
sub rax, qword [r13]
cmp rax, 4
je 0x14004ce22
mov qword [rbx], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm1
mov eax, dword [rsi + 0x4c]
cmp eax, 0xffffffff
mov r13, qword [rsp + 0x40]
je 0x14004ce25
mov rcx, qword [r15 + 0x20]
mov qword [r15 + 0x20], rbx
test rcx, rcx
jne 0x14004ce4c
test r15, r15
je 0x14004cdcb
mov eax, dword [rsp + 0x64]
lock or dword [r15 + 0x10], eax
mov qword [r13], r15
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140171860
mov rax, r13
movaps xmm6, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
cmp eax, 0x40
jb 0x14004caf8
mov ecx, eax
and ecx, 7
jne 0x14004caf8
mov rcx, qword [r14 + 8]
lea rdx, [rax + 0x10]
mov r8d, dword [rcx + 0x14]
cmp rdx, r8
ja 0x14004ce67
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x14004ce67
add r9, rax
mov edx, dword [r9]
cmp edx, 0x10
jb 0x14004ce67
mov r10d, dword [r9]
add r10d, eax
xor edx, edx
cmp r10d, r8d
ja 0x14004caf8
test r9, r9
je 0x14004caf8
mov edx, dword [r9]
cmp rdx, 0x11
jb 0x14004ce62
add eax, edx
cmp eax, r8d
ja 0x14004ce62
add rdx, 0xfffffffffffffff0
cmp rdx, rdi
jae 0x14004c6ce
jmp 0x14004cd47
cmp ecx, 1
jne 0x14004cc25
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov rcx, rdi
mov rdx, r12
mov r8, r13
call fcn.14004d1d0
mov r15, qword [rdi]
mov r13, qword [rsp + 0x40]
jmp 0x14004ca36
shr r8, 6
lea rcx, [rsp + 0xa8]
mov rdx, r12
call fcn.14000ce40
mov r8, rdi
and r8, 0x3f
je 0x14004c39b
and rdi, 0xffffffffffffffc0
mov rdx, rdi
add rdx, r12
mov edi, r8d
jmp 0x14004c38c
shr r8, 6
lea rcx, [rsp + 0xa8]
mov rdx, r12
call fcn.14000ce40
mov r8, rbp
and r8, 0x3f
je 0x14004c840
and rbp, 0xffffffffffffffc0
add r12, rbp
mov ebp, r8d
jmp 0x14004c82e
cmp eax, 0x3f
je 0x14004cbd3
mov r8d, 0x3f
sub r8, rax
add rcx, r14
xor edx, edx
call fcn.140173760
lea rcx, [rsp + 0xa8]
mov r8d, 1
mov rdx, r14
call fcn.14000ce40
xor ecx, ecx
jmp 0x14004c3d5
cmp eax, 0x3f
je 0x14004cc08
mov r8d, 0x3f
sub r8, rax
add rcx, r14
xor edx, edx
call fcn.140173760
lea rcx, [rsp + 0xa8]
mov r8d, 1
mov rdx, r14
call fcn.14000ce40
xor ecx, ecx
jmp 0x14004c871
cmp ecx, 2
mov rax, qword [rsp + 0x58]
jne 0x14004cc6b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov rcx, rdi
mov rdx, r12
mov r8, r13
call fcn.14004bd90
jmp 0x14004cb4b
cmp ecx, 3
jne 0x14004ce6e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0xa8]
lea r9, [rsp + 0x88]
mov rcx, rdi
mov rdx, r12
mov r8, r13
call fcn.1400ac550
jmp 0x14004cb4b
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r13], rax
mov qword [rsp + 0x20], rcx
mov rcx, r13
mov rdx, r15
mov r8, r12
mov r9, qword [rsp + 0x48]
call fcn.1400ac1f0
mov rax, qword [r13]
mov ecx, dword [rsi + 4]
lock or dword [rax + 0x10], ecx
jmp 0x14004ca4c
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401c469a
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x587
call fcn.1401c469a
test r13, r13
jne 0x14004ce7b
mov r13, qword [rsp + 0x40]
mov qword [r13], 0
jmp 0x14004ca4c
xor r9d, r9d
jmp 0x14004c25e
xor r8d, r8d
jmp 0x14004c4bf
call fcn.140220540
xor edx, edx
jmp 0x14004c2ca
call fcn.140220540
xor r8d, r8d
jmp 0x14004c52c
xor edi, edi
jmp 0x14004c32b
xor eax, eax
jmp 0x14004c68c
mov rdx, r13
call fcn.1401360d0
jmp 0x14004c6b8
int3
int3
xor r15d, r15d
jmp 0x14004ca48
xor ebp, ebp
jmp 0x14004c7d0
mov rcx, rbx
call fcn.140156f20
jmp 0x14004c8dc
bswap rdi
mov qword [rbx], rdi
jmp 0x14004c8ea
int3
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140211850.0]
jmp 0x14004c980
call fcn.140156f20
mov rcx, qword [rsp + 0x58]
jmp 0x14004c9b8
mov qword [rcx], r14
jmp 0x14004c9c6
int3
mov rax, qword [rbx + 0x40]
mov eax, dword [rax]
test eax, eax
je 0x14004ca25
mov rcx, rbx
add rcx, 0x28
call fcn.14004cea0
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
jmp 0x14004ca25
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140211850.0]
jmp 0x14004ca36
call fcn.140220540
xor edx, edx
jmp 0x14004caf8
xor r15d, r15d
mov r13, qword [rsp + 0x40]
jmp 0x14004ca48
mov rcx, qword [r13]
test rcx, rcx
je 0x14004ce8d
mov qword [r13 + 8], rcx
call fcn.14016eccc
mov rcx, r13
call fcn.14016eccc
jmp 0x14004cd47