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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edi, edx
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4a60cd
mov dword [ebp - 0x50], edi
mov eax, dword [ecx]
cmp eax, 4
jne 0x4a5ee7
lea edi, [ecx + 0x38]
lea ebx, [ecx + 0x20]
lea eax, [ecx + 0x50]
mov dword [ebp - 0x48], eax
push 0x1c
call fcn.005283f4
add esp, 4
mov edx, esi
mov esi, eax
mov ecx, eax
push edi
push ebx
push dword [ebp - 0x48]
push edx
call fcn.0046b0c0
mov edi, dword [ebp - 0x50]
mov dword [edi], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lock or dword [esi + 8], eax
jmp 0x4a60d3
mov dword [ebp - 0x64], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x60], eax
mov edi, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [esi + 4]
push 4
push 0xbcea225b
push ebx
call fcn.004a9bd0
mov ecx, esi
mov esi, eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [ecx + 4]
push ebx
call fcn.004a95b0
test esi, esi
je 0x4a5fd1
cmp edi, 2
jb 0x4a5fd1
cmp edi, 0x3ffffffe
ja 0x4a5fd1
lea ecx, [edi*4 + 4]
cmp eax, ecx
jb 0x4a5fd1
mov dword [ebp - 0x5c], edi
inc edi
push 0x14
call fcn.005283f4
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
call fcn.00470220
mov eax, dword [ebx]
mov dword [ebp - 0x48], ebx
cmp dword [ebx + 4], eax
je 0x4a623e
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
neg eax
mov ecx, 1
nop dword [eax]
mov edx, dword [esi + ecx*4]
cmp edx, dword [esi + ecx*4 - 4]
mov ebx, dword [ebp - 0x48]
jle 0x4a605f
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
sub ebx, edi
sar ebx, 2
cmp ebx, ecx
jbe 0x4a623e
mov dword [edi + ecx*4], edx
lea edx, [eax + ecx]
inc edx
inc ecx
cmp edx, 1
jne 0x4a5f80
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, edx
sub edi, ecx
je 0x4a5fdf
mov eax, edi
sar eax, 2
mov esi, ecx
not esi
add esi, edx
mov dword [ebp - 0x4c], edi
jne 0x4a5fe3
xor esi, esi
jmp 0x4a601e
mov edi, dword [ebp - 0x50]
mov dword [edi], 0
jmp 0x4a60d3
xor eax, eax
jmp 0x4a603a
mov edx, edi
and edx, 0xfffffffe
xor esi, esi
nop word [eax + eax]
movzx edi, al
movzx ebx, byte [ecx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5831e4]
movzx edi, al
movzx ebx, byte [ecx + esi + 1]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x5831e4]
add esi, 2
cmp edx, esi
jne 0x4a5ff0
test byte [ebp - 0x4c], 1
mov ebx, dword [ebp - 0x48]
je 0x4a603a
movzx edx, al
movzx ecx, byte [ecx + esi]
xor ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x5831e4]
mov dword [ebx + 0xc], eax
cmp eax, dword [ebp - 0x58]
jne 0x4a605f
test ebx, ebx
mov edi, dword [ebp - 0x50]
je 0x4a60cd
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4a6089
push ebx
call fcn.004d4460
jmp 0x4a6092
test ebx, ebx
mov edi, dword [ebp - 0x50]
je 0x4a60cd
mov eax, dword [ebx]
test eax, eax
je 0x4a6078
mov dword [ebx + 4], eax
push eax
call fcn.00528424
add esp, 4
push ebx
call fcn.00528424
add esp, 4
mov dword [edi], 0
jmp 0x4a60d3
push ebx
call fcn.004a31f0
add esp, 4
mov ebx, eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov esi, dword [ebp - 0x5c]
lea ecx, [esi - 0x20000000]
cmp ecx, 0xe0000001
jb 0x4a60cd
lea ecx, [esi*8]
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x4a60e7
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 4]
push eax
call fcn.004a95b0
mov edx, dword [ebp + 8]
cmp eax, dword [ebp - 0x48]
jae 0x4a60e7
mov dword [edi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x4c], ebx
lea eax, [edx + 0x1c]
mov dword [ebp - 0x58], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push dword [ebp - 0x48]
push 0x53215531
push eax
mov ebx, dword [ebp - 0x54]
push dword [ebx + 4]
call fcn.004aa5f0
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
shl esi, 2
lea ecx, [ebp - 0x40]
push 0
push esi
push dword [ebp - 0x48]
push 0x53215531
push dword [ebp - 0x58]
push dword [ebx + 4]
call fcn.004aa690
xor ebx, ebx
mov eax, dword [ebp - 0x64]
cmp eax, 3
ja case.default.0x4a6167
mov edx, dword [ebp + 8]
lea esi, [edx + 0x50]
jmp dword [eax*4 + 0x587abc]
lea edi, [edx + 0x38]
add edx, 0x20
push 0x14
mov ebx, edx
call fcn.005283f4
add esp, 4
mov edx, esi
mov esi, eax
mov ecx, eax
push edi
mov edi, dword [ebp - 0x50]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
push edx
call fcn.0046e220
jmp 0x4a621a
lea eax, [edx + 0x38]
add edx, 0x20
lea ecx, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
push esi
push ecx
call fcn.0046f580
jmp 0x4a61dc
lea eax, [edx + 0x38]
add edx, 0x20
lea ecx, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
push esi
push ecx
call fcn.0046f980
add esp, 0x1c
mov esi, dword [ebp - 0x44]
jmp 0x4a621a
lea edi, [edx + 0x38]
add edx, 0x20
push 0x14
mov ebx, edx
call fcn.005283f4
add esp, 4
mov edx, esi
mov esi, eax
mov ecx, eax
push edi
mov edi, dword [ebp - 0x50]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
push edx
call fcn.0046e220
mov dword [esi], 0x57be54
test esi, esi
je case.default.0x4a6167
mov eax, dword [ebp - 0x60]
lock or dword [esi + 8], eax
mov ebx, esi
mov dword [edi], ebx
lea ecx, [ebp - 0x40]
call fcn.004aa730
lea ecx, [ebp - 0x28]
call fcn.004aa730
jmp 0x4a60d3
int3