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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x50
mov rdi, qword [0x1800801d0]
xor esi, esi
mov r13d, ecx
mov rbp, qword [rdi + 0x1a80]
test cl, 0x10
jne 0x18002fb23
mov ebx, dword [rbp + 0x114]
test ebx, ebx
je 0x18002f88d
cmp dword [rdi + 0x1ac8], ebx
jne 0x18002fb16
cmp byte [rdi + 0x138], sil
je 0x18002fb16
test ebx, ebx
jne 0x18002faa3
test r13b, 8
je 0x18002fb16
test byte [rbp + 0x118], 1
jne 0x18002f8ce
cmp dword [rdi + 0x1ac8], esi
je 0x18002fb16
cmp qword [rdi + 0x1af8], rbp
jne 0x18002fb16
lea rdx, [rbp + 0x11c]
mov qword [rsp + 0x90], r15
mov rcx, rbp
call fcn.180033a70
mov dword [rbp + 0x114], eax
mov ebx, eax
mov rsi, qword [0x1800801d0]
mov eax, dword [rsi + 0x1ab4]
test eax, eax
je 0x18002f913
cmp eax, ebx
je 0x18002f913
cmp byte [rsi + 0x1ab8], 0
jne 0x18002f913
xor sil, sil
jmp 0x18002fa8f
mov qword [rsp + 0x88], r14
mov r14, qword [rsi + 0x1a80]
cmp qword [rsi + 0x1a88], r14
je 0x18002f933
xor sil, sil
jmp 0x18002fa87
mov eax, dword [rsi + 0x1ac8]
test eax, eax
je 0x18002f952
cmp eax, ebx
je 0x18002f952
cmp byte [rsi + 0x1ad5], 0
jne 0x18002f952
xor sil, sil
jmp 0x18002fa87
mov r8b, 1
mov qword [rsp + 0x80], r12
lea rdx, [rbp + 0x124]
lea rcx, [rbp + 0x11c]
call fcn.180035790
test al, al
je 0x18002fa7c
cmp byte [rsi + 0x1c4f], 0
jne 0x18002fa7c
mov rax, qword [rsi + 0x1bf8]
test rax, rax
je 0x18002f9c3
mov rax, qword [rax + 0x368]
test rax, rax
je 0x18002f9c3
cmp byte [rax + 0x7f], 0
je 0x18002f9c3
cmp rax, qword [r14 + 0x368]
je 0x18002f9c3
mov ecx, dword [rax + 0xc]
bt ecx, 0x1b
jb 0x18002fa7c
bt ecx, 0x1a
jb 0x18002fa7c
test byte [r14 + 0x1b8], 4
jne 0x18002fa7c
mov rax, qword [0x1800801d0]
mov dword [rax + 0x1ab4], ebx
mov byte [rax + 0x1ab8], 0
test ebx, ebx
je 0x18002f9fc
cmp dword [rax + 0x1abc], ebx
je 0x18002f9fc
mov qword [rax + 0x1ac0], 0
cmp byte [rsi + 0x2ffc], 0
je 0x18002fa53
cmp dword [rsi + 0x1abc], ebx
jne 0x18002fa53
movss xmm0, dword [0x1800713bc]
lea r8, [rbp + 0x124]
mov rcx, qword [0x1800801d0]
lea rdx, [rbp + 0x11c]
movss dword [rsp + 0x30], xmm0
xorps xmm1, xmm1
mov dword [rsp + 0x28], 0xf
add rcx, 0x1e70
mov r9d, 0xff00ffff
movss dword [rsp + 0x20], xmm1
call fcn.1800438d0
cmp dword [rsi + 0x3000], ebx
jne 0x18002fa5c
int3
cmp byte [rdi + 0x428], 0
mov sil, 1
je 0x18002fa7f
mov rdx, rbp
mov ecx, ebx
call fcn.18003dcc0
mov rcx, rbp
call fcn.1800332e0
jmp 0x18002fa7f
xor sil, sil
mov r12, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov eax, dword [rdi + 0x1ac8]
mov r15, qword [rsp + 0x90]
cmp eax, ebx
jne 0x18002fb16
jmp 0x18002faa9
mov eax, dword [rdi + 0x1ac8]
mov byte [rdi + 0x1ad5], sil
cmp eax, ebx
jne 0x18002fb16
mov rax, qword [rbp + 0xc8]
movsxd rcx, dword [rbp + 0xc0]
mov esi, dword [rax + rcx*4 - 4]
mov rax, qword [0x1800801d0]
cmp byte [rax + 0x138], 0
jne 0x18002fada
xor al, al
jmp 0x18002faf8
mov rax, qword [0x1800801d0]
movss xmm1, dword [rax + 0x38]
movss xmm0, dword [rax + 0x494]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov qword [rdi + 0x1adc], 0xffffffffffffffff
mov qword [rdi + 0x1ae8], 0xffffffffffffffff
test al, al
jne 0x18002fbe4
xor al, al
add rsp, 0x50
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [0x180071be0]
xor ebp, ebp
cmp byte [0x180071be5], sil
movsd xmm0, qword [0x180071bd8]
mov dword [rsp + 0x48], eax
movzx eax, word [0x180071be4]
mov word [rsp + 0x4c], ax
movsd qword [rsp + 0x40], xmm0
je 0x18002fb92
xor r8d, r8d
movabs r9, 0x47ae147ae147ae15
nop
mov rax, r9
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rsp + r8 + 0x40], al
inc r8
cmp r8, 0xe
jb 0x18002fb60
movzx r8d, byte [rsp + 0x40]
lea rdx, [rsp + 0x41]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x18002fbe2
lea r10, [0x180071520]
cmp r8b, 0x23
jne 0x18002fbc5
cmp byte [rdx], r8b
jne 0x18002fbc5
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x18002fbb2
not ebx
cmp byte [rdi + 0x1f1c], 0
jne 0x18002fc16
call fcn.180031140
mov dword [rdi + 0x1f3c], ebx
mov dword [rdi + 0x1f40], esi
mov byte [rdi + 0x1f1c], 1
mov dword [rdi + 0x1f20], r13d
mov dword [rdi + 0x1f28], 0
mov eax, dword [rdi + 0x1a08]
mov dword [rdi + 0x1f24], eax
mov byte [rdi + 0x1f1d], 1
test r13b, 1
jne 0x18002fc65
xor edx, edx
xor ecx, ecx
call fcn.180030050
cmp dword [rdi + 0x1f90], 0
je 0x18002fc65
test dword [rdi + 0x1f84], 0x1000
je 0x18002fc65
mov rax, qword [rdi + 0x1a80]
mov byte [rax + 0x83], 1
mov dword [rax + 0x9c], 1
test r13b, 0x12
jne 0x18002fc72
and dword [rbp + 0x118], 0xfffffffe
mov al, 1
add rsp, 0x50
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret