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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov dword [ebp - 0x54], 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 0x52fa0d
mov eax, dword [edx]
cmp eax, 4
je 0x52f933
mov dword [ebp - 0x64], eax
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x4c], 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 - 0x68], ecx
mov dword [ebp - 0x6c], edx
jb 0x52f8fe
mov ecx, eax
mov esi, 0
and ecx, 7
jne 0x52f359
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], ecx
mov edx, eax
add edx, 0x14
jb 0x52f2db
mov ecx, dword [ebp - 0x40]
mov edi, dword [ecx + 0xc]
cmp edx, edi
ja 0x52f2db
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 4]
cmp ecx, 0xc8799269
jne 0x52f2db
add edx, eax
mov ecx, dword [edx]
cmp ecx, 0x14
jb 0x52f2db
mov ebx, dword [edx]
add ebx, eax
jb 0x52f2db
cmp ebx, edi
ja 0x52f2db
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 0x52f8fe
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0xc]
cmp esi, ecx
ja 0x52f8fe
mov esi, dword [edx + 4]
mov edx, dword [esi + eax + 4]
cmp edx, 0xc8799269
jne 0x52f8fe
add esi, eax
mov edx, dword [esi]
cmp edx, 0x10
jb 0x52f8fe
mov edi, dword [esi]
add edi, eax
setb dl
test esi, esi
je 0x52f8fe
test dl, dl
jne 0x52f8fe
cmp edi, ecx
ja 0x52f8fe
mov esi, dword [esi]
cmp esi, 0x11
jb 0x52f8f4
add eax, esi
jb 0x52f8f4
cmp eax, ecx
ja 0x52f8f4
add esi, 0xfffffff0
test ebx, ebx
mov ecx, dword [ebp - 0x44]
je 0x52fa0a
lea eax, [ecx - 0x3fffffff]
cmp eax, 0xc0000003
jb 0x52fa0a
lea edi, [ecx*4 + 4]
cmp esi, edi
jb 0x52fa0a
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
push 0x14
call fcn.00562bc5
add esp, 4
xor esi, esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [ebp - 0x40], eax
mov dword [eax + 8], esi
cmp dword [ebp - 0x48], 0x40000000
jae 0x52fa36
push edi
call fcn.00562bc5
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x48]
lea ecx, [eax + ecx*4]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x44]
nop dword [eax + eax]
mov ecx, eax
add ecx, esi
je 0x52f9fb
mov dword [ecx], 0
add esi, 4
cmp edi, esi
jne 0x52f3d0
mov ecx, eax
add ecx, esi
mov edi, dword [ebp - 0x40]
mov dword [edi + 4], ecx
xor ecx, ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, edx
neg eax
xor ecx, ecx
inc ecx
nop word cs:[eax + eax]
mov edx, dword [ebx + ecx*4]
cmp edx, dword [ebx + ecx*4 - 4]
jle 0x52f9b0
mov esi, dword [edi]
mov edi, dword [edi + 4]
sub edi, esi
sar edi, 2
cmp edi, ecx
jbe 0x52f9ec
mov dword [esi + ecx*4], edx
lea edx, [eax + ecx]
inc edx
inc ecx
cmp edx, 1
mov edi, dword [ebp - 0x40]
jne 0x52f410
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x50], eax
je 0x52fa3e
js 0x52fa45
mov edi, eax
mov ebx, ecx
shr ebx, 2
mov esi, ecx
and esi, 3
jne 0x52f905
mov esi, edi
sub esi, edx
cmp esi, 0xfffffffc
ja 0x52f4d2
nop word cs:[eax + eax]
movzx esi, bl
movzx edi, byte [eax]
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x62fd30]
movzx esi, bl
movzx edi, byte [eax + 1]
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x62fd30]
movzx esi, bl
movzx edi, byte [eax + 2]
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x62fd30]
movzx esi, bl
movzx edi, byte [eax + 3]
xor edi, esi
shr ebx, 8
xor ebx, dword [edi*4 + 0x62fd30]
add eax, 4
cmp eax, edx
jne 0x52f480
mov edi, dword [ebp - 0x40]
mov dword [edi + 0xc], ebx
cmp ebx, dword [ebp - 0x6c]
jne 0x52f9b0
test edi, edi
je 0x52fa48
sar ecx, 2
mov edx, dword [ebp - 0x48]
cmp ecx, edx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
jne 0x52f9bb
cmp edx, 1
jbe 0x52fa18
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x50]
cmp dword [esi + 4], eax
jne 0x52f9bb
lea eax, [ecx - 1]
cmp edx, eax
jbe 0x52fa18
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
cmp dword [edx + ecx*4 - 4], eax
jne 0x52f9bb
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x52f798
mov dword [ebp - 0x50], 0
push edi
call fcn.00531cf0
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebp - 0x44]
lea ecx, [edx - 0x20000000]
cmp ecx, 0xe0000001
jb 0x52f9cb
lea edi, [edx*8]
mov ecx, dword [ebp - 0x54]
mov esi, dword [ecx + 4]
test eax, eax
mov dword [ebp - 0x48], edi
jne 0x52f84f
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c810]
bt ecx, eax
jb 0x52f745
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654810], 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x53215531
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x40]
mov esi, edi
shr esi, 0xe
mov ebx, edi
shr ebx, 0x13
mov eax, dword [ebx*4 + 0x64c810]
bt eax, esi
jb 0x52fa73
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x654810], 1
mov dword [ebp - 0x14], edi
shl edx, 2
mov eax, dword [ebp - 0x54]
mov edi, dword [eax + 4]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c810]
bt ecx, eax
jb 0x52f756
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x654810], 1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x53215531
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebx*4 + 0x64c810]
bt eax, esi
jb 0x52fa84
mov esi, dword [ebp - 0x40]
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654810], 1
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
lea ecx, [ebx + 0x60]
xor edi, edi
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x52f7b0
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 - 0x4c]
push ecx
push esi
call fcn.0052fac0
add esp, 0x1c
mov esi, dword [esi]
test esi, esi
mov ebx, dword [ebp - 0x50]
je 0x52f698
mov eax, dword [ebp - 0x68]
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 + 0x64c810]
bt edx, ecx
jb 0x52fa57
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 + 0x64c810]
bt edx, ecx
jae 0x52f6e5
push eax
call fcn.004ff570
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 + 0x64c810]
bt edx, ecx
jb 0x52fa65
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 + 0x64c810]
bt edx, ecx
jae 0x52f72b
push eax
call fcn.004ff570
add esp, 4
test ebx, ebx
jne 0x52f76a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, edi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret 8
push esi
call fcn.004ff440
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52f5ad
push edi
mov dword [ebp - 0x44], edx
call fcn.004ff440
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52f61c
mov eax, dword [ebx]
test eax, eax
je 0x52f78d
mov ecx, dword [ebx + 4]
cmp ecx, eax
je 0x52f781
add ecx, 0xfffffffc
jne 0x52f773
jmp 0x52fa27
mov dword [ebx + 4], eax
push eax
call fcn.00562bc0
add esp, 4
push ebx
call fcn.00562bc0
add esp, 4
jmp 0x52f72f
push edi
call fcn.0053f4b0
xor ecx, ecx
mov dword [ebp - 0x4c], eax
cmp eax, edi
cmovne ecx, edi
mov dword [ebp - 0x50], ecx
jmp 0x52f551
cmp eax, 1
mov dword [ebp - 0x40], ecx
jne 0x52f7ff
lea eax, [ebx + 0x40]
mov dword [ebp - 0x44], eax
add ebx, 0x20
push 0x20
call fcn.00562bc5
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 - 0x4c]
push dword [ebp - 0x40]
call fcn.005342f0
mov dword [esi], 0x622404
lea eax, [esi + 0x18]
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], eax
jmp 0x52f688
cmp eax, 2
jne 0x52f96e
lea eax, [ebx + 0x40]
mov dword [ebp - 0x44], eax
add ebx, 0x20
push 0x20
call fcn.00562bc5
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 - 0x4c]
push dword [ebp - 0x40]
call fcn.005342f0
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], 0x622464
jmp 0x52f688
xor edx, edx
cmp eax, 0x40
jb 0x52f8de
mov ecx, eax
and ecx, 7
jne 0x52f9e5
mov edx, eax
add edx, 0x10
jb 0x52f9e5
mov ecx, dword [esi + 0xc]
cmp edx, ecx
ja 0x52fa52
mov edx, dword [esi + 4]
mov edi, dword [edx + eax + 4]
cmp edi, 0xc8799269
jne 0x52fa52
add edx, eax
mov edi, dword [edx]
cmp edi, 0x10
jb 0x52fa52
mov edi, dword [edx]
add edi, eax
setb bl
test edx, edx
je 0x52fa4f
test bl, bl
jne 0x52fa4f
cmp edi, ecx
mov ebx, dword [ebp + 0xc]
ja 0x52fa52
mov edx, dword [edx]
cmp edx, 0x11
mov edi, dword [ebp - 0x48]
jb 0x52f9dc
add eax, edx
jb 0x52f9dc
cmp eax, ecx
ja 0x52f9dc
add edx, 0xfffffff0
cmp edx, edi
mov edx, dword [ebp - 0x44]
jb 0x52f9cb
mov eax, dword [ebp - 0x54]
mov esi, dword [eax + 4]
jmp 0x52f581
mov ecx, dword [ebp - 0x40]
push 1
call fcn.00590500
xor esi, esi
jmp 0x52f359
mov dword [ebp - 0x60], esi
movzx esi, bl
mov dword [ebp - 0x5c], esi
movzx esi, byte [eax]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x5c]
xor dword [ebp - 0x58], esi
shr ebx, 8
mov esi, dword [ebp - 0x58]
xor ebx, dword [esi*4 + 0x62fd30]
mov esi, dword [ebp - 0x60]
inc eax
dec esi
jne 0x52f905
jmp 0x52f469
lea edi, [edx + 0x40]
lea ebx, [edx + 0x20]
lea eax, [edx + 0x60]
mov dword [ebp - 0x40], eax
push 0x1c
call fcn.00562bc5
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 - 0x54]
call fcn.0040e120
mov dword [edi], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
lock or dword [esi + 8], eax
jmp 0x52f72f
cmp eax, 3
jne 0x52fa95
lea eax, [ebx + 0x40]
mov dword [ebp - 0x44], eax
add ebx, 0x20
push 0x14
call fcn.00562bc5
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 - 0x4c]
push dword [ebp - 0x40]
call fcn.005342f0
mov dword [esi], 0x6224c4
jmp 0x52f688
xor ebx, ebx
test edi, edi
je 0x52f9bd
jmp 0x52fa9d
mov ebx, edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x52f72b
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov ebx, dword [ebp - 0x50]
jmp 0x52f72b
mov ecx, esi
push 1
call fcn.00590500
xor edx, edx
jmp 0x52f8de
push str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x622e92
call fcn.0058fdd0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x622e92
call fcn.0058fdd0
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x52f72f
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x622e92
call fcn.0058fdd0
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x622e92
call fcn.0058fdd0
mov ecx, dword [ebp - 0x40]
call fcn.0058fdd0
xor ebx, ebx
jmp 0x52f4d2
int3
xor ebx, ebx
jmp 0x52f9bd
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x48]
jmp 0x52f9e5
push eax
call fcn.004ff570
add esp, 4
jmp 0x52f6bc
push eax
call fcn.004ff570
add esp, 4
jmp 0x52f702
push edi
call fcn.004ff440
mov edx, dword [ebp - 0x44]
add esp, 4
jmp 0x52f5ea
mov esi, dword [ebp - 0x40]
push esi
call fcn.004ff440
add esp, 4
jmp 0x52f64e
mov ebx, dword [ebp - 0x50]
jmp 0x52f698
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.0055ab70
push esi
call fcn.00562bc0
add esp, 4
jmp 0x52f9bd