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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edx, edx
je 0x52d714
mov eax, dword [edx]
cmp eax, 4
je 0x52d64a
mov dword [ebp - 0x5c], eax
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
xor ebx, ebx
cmp eax, 0x40
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x54], edx
jb 0x52d643
mov ecx, eax
mov esi, 0
and ecx, 7
jne 0x52d0a9
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], ecx
mov edx, eax
add edx, 0x14
jb 0x52d02b
mov ecx, dword [ebp - 0x40]
mov edi, dword [ecx + 0xc]
cmp edx, edi
ja 0x52d02b
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 4]
cmp ecx, 0xc8799269
jne 0x52d02b
add edx, eax
mov ecx, dword [edx]
cmp ecx, 0x14
jb 0x52d02b
mov ebx, dword [edx]
add ebx, eax
jb 0x52d02b
cmp ebx, edi
ja 0x52d02b
mov ecx, dword [edx + 8]
xor esi, esi
cmp ecx, 0xbcea225b
cmove esi, edx
lea ebx, [esi + 0x10]
test esi, esi
cmove ebx, esi
mov esi, eax
add esi, 0x10
jb 0x52d643
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0xc]
cmp esi, ecx
ja 0x52d643
mov esi, dword [edx + 4]
mov edx, dword [esi + eax + 4]
cmp edx, 0xc8799269
jne 0x52d643
add esi, eax
mov edx, dword [esi]
cmp edx, 0x10
jb 0x52d643
mov edi, dword [esi]
add edi, eax
setb dl
test esi, esi
je 0x52d643
test dl, dl
jne 0x52d643
cmp edi, ecx
ja 0x52d643
mov esi, dword [esi]
cmp esi, 0x11
jb 0x52d639
add eax, esi
jb 0x52d639
cmp eax, ecx
ja 0x52d639
add esi, 0xfffffff0
test ebx, ebx
mov eax, dword [ebp - 0x44]
je 0x52d711
cmp eax, 2
jb 0x52d711
cmp eax, 0x3ffffffe
ja 0x52d711
lea edi, [eax*4 + 4]
cmp esi, edi
jb 0x52d711
inc eax
mov dword [ebp - 0x48], eax
push 0x14
call fcn.00564ea5
add esp, 4
mov esi, eax
push edi
call fcn.00564ea5
add esp, 4
mov ecx, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x48]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x40], esi
mov dword [esi + 8], eax
mov esi, eax
xor edx, edx
nop word [eax + eax]
mov eax, ecx
add eax, edx
je 0x52d702
mov dword [eax], 0
add edx, 4
cmp edi, edx
jne 0x52d110
mov edx, dword [ebp - 0x40]
mov dword [edx + 4], esi
xor eax, eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
cmp dword [ebp - 0x48], 0
je 0x52d6f3
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
neg eax
xor ecx, ecx
inc ecx
nop dword [eax + eax]
mov edx, dword [ebx + ecx*4]
cmp edx, dword [ebx + ecx*4 - 4]
jle 0x52d6c7
mov esi, dword [ebp - 0x40]
mov edi, dword [esi]
mov esi, dword [esi + 4]
sub esi, edi
sar esi, 2
cmp esi, ecx
jbe 0x52d6f3
mov dword [edi + ecx*4], edx
lea edx, [eax + ecx]
inc edx
inc ecx
cmp edx, 1
jne 0x52d150
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, edx
sub ecx, esi
mov dword [ebp - 0x4c], esi
je 0x52d73d
js 0x52d744
mov ebx, ecx
shr ebx, 2
mov edi, ecx
and edi, 3
jne 0x52d615
mov eax, esi
sub esi, edx
cmp esi, 0xfffffffc
ja 0x52d212
nop word cs:[eax + eax]
movzx esi, byte [eax]
movzx edi, bl
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x630a84]
movzx esi, byte [eax + 1]
movzx edi, bl
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x630a84]
movzx esi, byte [eax + 2]
movzx edi, bl
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x630a84]
movzx esi, byte [eax + 3]
movzx edi, bl
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x630a84]
add eax, 4
cmp eax, edx
jne 0x52d1c0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xc], ebx
cmp ebx, dword [ebp - 0x54]
jne 0x52d6c7
cmp dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x4c]
je 0x52d6d1
sar ecx, 2
cmp ecx, dword [ebp - 0x48]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
jne 0x52d6d5
test ecx, ecx
je 0x52d71f
mov eax, dword [ebp - 0x68]
cmp dword [edx + 4], eax
jne 0x52d6d5
lea eax, [ecx - 1]
cmp dword [ebp - 0x48], eax
jbe 0x52d71f
mov eax, dword [ebp - 0x64]
cmp dword [edx + ecx*4 - 4], eax
jne 0x52d6d5
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x52d502
mov dword [ebp - 0x4c], 0
push dword [ebp - 0x40]
call fcn.004f7340
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebp - 0x44]
lea ecx, [edx - 0x20000000]
cmp ecx, 0xe0000001
jb 0x52d747
lea edi, [edx*8]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ecx + 4]
test eax, eax
mov dword [ebp - 0x40], edi
jne 0x52d570
add ebx, 0x1c
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c804]
bt ecx, eax
jb 0x52d481
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x53215531
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov esi, ebx
shr esi, 0xe
mov edi, ebx
shr edi, 0x13
mov eax, dword [edi*4 + 0x64c804]
bt eax, esi
jb 0x52d774
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x14], ebx
shl edx, 2
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax + 4]
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c804]
bt ecx, eax
jb 0x52d492
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x53215531
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [edi*4 + 0x64c804]
bt eax, esi
jb 0x52d785
mov esi, dword [ebp - 0x54]
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
lea ecx, [ebx + 0x60]
xor edi, edi
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x52d4a6
lea eax, [ebx + 0x40]
add ebx, 0x20
lea edi, [ebp - 0x38]
lea edx, [ebp - 0x24]
lea esi, [ebp - 0x3c]
push eax
push ebx
push edi
xor edi, edi
push edx
push dword [ebp - 0x48]
push ecx
push esi
call fcn.0052d7d0
add esp, 0x1c
mov esi, dword [esi]
test esi, esi
mov ebx, dword [ebp - 0x4c]
je 0x52d3d4
mov eax, dword [ebp - 0x60]
lock or dword [esi + 8], eax
mov edi, esi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
mov eax, dword [ebp - 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jb 0x52d758
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x38]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jae 0x52d421
push eax
call fcn.004f0f10
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jb 0x52d766
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jae 0x52d467
push eax
call fcn.004f0f10
add esp, 4
test ebx, ebx
jne 0x52d4d1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 8
push esi
call fcn.004f0de0
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52d2e9
push ebx
mov dword [ebp - 0x44], edx
call fcn.004f0de0
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52d358
cmp eax, 1
jne 0x52d51d
lea eax, [ebx + 0x40]
add ebx, 0x20
mov edi, ecx
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x24]
lea esi, [ebp - 0x3c]
push eax
push ebx
push ecx
push edx
push dword [ebp - 0x48]
push edi
xor edi, edi
push esi
call fcn.004fa200
jmp 0x52d3bf
mov eax, dword [ebx]
test eax, eax
je 0x52d4f4
mov ecx, dword [ebx + 4]
cmp ecx, eax
je 0x52d4e8
add ecx, 0xfffffffc
jne 0x52d4da
jmp 0x52d72e
mov dword [ebx + 4], eax
push eax
call fcn.00564ea0
add esp, 4
push ebx
call fcn.00564ea0
add esp, 4
jmp 0x52d46b
mov esi, dword [ebp - 0x40]
push esi
call fcn.0053c690
xor ecx, ecx
mov dword [ebp - 0x48], eax
cmp eax, esi
cmovne ecx, esi
mov dword [ebp - 0x4c], ecx
jmp 0x52d290
cmp eax, 2
mov dword [ebp - 0x40], ecx
jne 0x52d685
lea eax, [ebx + 0x40]
mov dword [ebp - 0x44], eax
add ebx, 0x20
push 0x20
call fcn.00564ea5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x44]
push ebx
push eax
push edx
push dword [ebp - 0x48]
push dword [ebp - 0x40]
call fcn.00408720
lea eax, [esi + 0x18]
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], eax
mov dword [esi], 0x6235a4
jmp 0x52d3c4
xor edx, edx
cmp eax, 0x40
jb 0x52d5ff
mov ecx, eax
and ecx, 7
jne 0x52d6ec
mov edx, eax
add edx, 0x10
jb 0x52d6ec
mov ecx, dword [esi + 0xc]
cmp edx, ecx
ja 0x52d6e9
mov edx, dword [esi + 4]
mov edi, dword [edx + eax + 4]
cmp edi, 0xc8799269
jne 0x52d6e9
add edx, eax
mov edi, dword [edx]
cmp edi, 0x10
jb 0x52d6e9
mov edi, dword [edx]
add edi, eax
setb bl
test edx, edx
je 0x52d6e6
test bl, bl
jne 0x52d6e6
cmp edi, ecx
mov ebx, dword [ebp + 0xc]
ja 0x52d6e9
mov edx, dword [edx]
cmp edx, 0x11
mov edi, dword [ebp - 0x40]
jb 0x52d796
add eax, edx
jb 0x52d796
cmp eax, ecx
ja 0x52d796
add edx, 0xfffffff0
cmp edx, edi
mov edx, dword [ebp - 0x44]
jb 0x52d747
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 4]
jmp 0x52d2c0
mov eax, esi
movzx esi, byte [eax]
mov dword [ebp - 0x58], esi
movzx esi, bl
xor esi, dword [ebp - 0x58]
shr ebx, 8
xor ebx, dword [esi*4 + 0x630a84]
mov esi, dword [ebp - 0x4c]
inc eax
dec edi
jne 0x52d617
jmp 0x52d1ac
mov ecx, dword [ebp - 0x40]
push 1
call fcn.00592910
xor esi, esi
jmp 0x52d0a9
lea edi, [edx + 0x40]
lea ebx, [edx + 0x20]
lea eax, [edx + 0x60]
mov dword [ebp - 0x40], eax
push 0x1c
call fcn.00564ea5
add esp, 4
mov esi, eax
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x50]
call fcn.0040d070
mov dword [edi], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
lock or dword [esi + 8], eax
jmp 0x52d46b
cmp eax, 3
jne 0x52d7a4
lea eax, [ebx + 0x40]
mov dword [ebp - 0x44], eax
add ebx, 0x20
push 0x14
call fcn.00564ea5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x44]
push ebx
push eax
push edx
push dword [ebp - 0x48]
push dword [ebp - 0x40]
call fcn.00408720
mov dword [esi], 0x623604
jmp 0x52d3c4
cmp dword [ebp - 0x40], 0
jne 0x52d7ac
xor ebx, ebx
jmp 0x52d6d8
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x52d467
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x40]
xor edx, edx
jmp 0x52d5ff
push str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x624173
call fcn.00591ed0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x624173
call fcn.00591ed0
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x52d46b
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x624173
call fcn.00591ed0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x624173
call fcn.00591ed0
xor ebx, ebx
jmp 0x52d212
int3
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov ebx, dword [ebp - 0x4c]
jmp 0x52d467
push eax
call fcn.004f0f10
add esp, 4
jmp 0x52d3f8
push eax
call fcn.004f0f10
add esp, 4
jmp 0x52d43e
push ebx
call fcn.004f0de0
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52d323
mov esi, dword [ebp - 0x54]
push esi
call fcn.004f0de0
add esp, 4
jmp 0x52d38a
mov ecx, esi
push 1
call fcn.00592910
jmp 0x52d6ec
mov ebx, dword [ebp - 0x4c]
jmp 0x52d3d4
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.00558b00
push esi
call fcn.00564ea0
add esp, 4
jmp 0x52d6d1