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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0x4a3270
je 0x4a3291
mov edx, esi
mov ecx, edi
call fcn.004a2700
cmp dword [ebp + 0x10], 0
mov dword [edi + 0x10], fcn.004a3270
je 0x4a3629
mov eax, dword [edi]
test eax, eax
jne 0x4a33de
test esi, esi
je 0x4a32c7
mov eax, dword [esi]
test eax, eax
je 0x4a32c7
push 0x588
push 1
push dword [esi + 8]
call eax
add esp, 0xc
jmp 0x4a32d4
push 0x588
call fcn.0054cef5
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4a34ed
mov dword [edi + 0x14], 0x4a2db0
mov dword [edi + 0x18], 0x4a3090
mov dword [edi + 0x28], 0x4a31b0
mov dword [eax + 0xf8], 0xffffffff
mov dword [eax + 0xfc], 0xffffffff
mov eax, dword [edi]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmmword [eax + 8], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
movups xmmword [eax + 0x18], xmm0
mov dword [ebp - 8], 0
movups xmm0, xmmword [ebp - 0x10]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xffffffff
movups xmmword [eax + 0x28], xmm0
mov eax, dword [edi]
mov dword [ebp - 0x24], 0xffffffff
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmmword [eax + 0x148], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
movups xmmword [eax + 0x158], xmm0
mov dword [ebp - 8], 0
movups xmm0, xmmword [ebp - 0x10]
movups xmmword [eax + 0x168], xmm0
mov eax, dword [edi]
mov dword [eax + 0x178], 0
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [edi]
mov dword [eax + 0x38], 0
mov eax, dword [edi]
mov dword [eax + 0x40], ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x178]
mov dword [ebp + 8], eax
test eax, eax
je 0x4a348b
mov ebx, dword [eax]
test ebx, ebx
je 0x4a3468
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x4a3424
push 0x4a3cc0
mov edx, esi
call fcn.004a3a50
add esp, 4
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x4a343a
push 0x4a3cc0
mov edx, esi
call fcn.004a3a50
add esp, 4
push 0
lea ecx, [ebx + 0x30]
mov edx, esi
call fcn.004a3ac0
add esp, 4
test esi, esi
je 0x4a345f
mov eax, dword [esi + 4]
test eax, eax
je 0x4a345f
push ebx
push dword [esi + 8]
call eax
add esp, 8
jmp 0x4a346c
push ebx
call fcn.005417da
add esp, 4
test esi, esi
je 0x4a3480
mov eax, dword [esi + 4]
test eax, eax
je 0x4a3480
push dword [ebp + 8]
push dword [esi + 8]
call eax
add esp, 8
jmp 0x4a348b
push dword [ebp + 8]
call fcn.005417da
add esp, 4
mov ecx, esi
call fcn.004a3d20
mov ebx, eax
test ebx, ebx
je 0x4a34d7
sub esp, 0x20
mov ecx, esi
call fcn.004a3bf0
add esp, 0x20
test eax, eax
jne 0x4a34ce
test esi, esi
je 0x4a34c1
mov eax, dword [esi + 4]
test eax, eax
je 0x4a34c1
push ebx
push dword [esi + 8]
call eax
add esp, 8
xor ebx, ebx
jmp 0x4a34d7
push ebx
call fcn.005417da
add esp, 4
xor ebx, ebx
jmp 0x4a34d7
mov edx, eax
mov ecx, ebx
call fcn.004a3b30
mov eax, dword [edi]
mov dword [eax + 0x178], ebx
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
cmp dword [ecx + 0x178], 0
jne 0x4a34f9
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5873c4]
lea ebx, [ecx + 0x18a]
mov dword [ecx + 0x184], eax
mov ax, word [0x5873c8]
mov word [ecx + 0x188], ax
mov eax, dword [ebp + 0x14]
cmp eax, 0xf
ja 0x4a3629
mov byte [ebx], 0
mov esi, 2
mov byte [ebx + 1], al
or edx, 0xffffffff
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5a7d20]
sub esi, 1
jne 0x4a3531
mov eax, dword [ebp + 8]
not edx
mov dword [eax + 0x18c], edx
mov eax, dword [edi]
mov dword [eax + 0x17c], esi
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
mov dword [eax + 0x180], 0xc
mov edi, dword [edi]
mov eax, dword [edi]
cmp eax, 1
jg 0x4a35a2
mov eax, dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
mov byte [edi + 4], 0
mov dword [edi + 0x58], eax
call fcn.004a2b60
mov ecx, eax
lea eax, [edi + 0xf8]
mov dword [edi + 0x58], eax
test ecx, ecx
jne 0x4a3620
mov byte [edi + 4], 1
jmp 0x4a35be
cmp eax, 3
jg 0x4a361b
mov eax, dword [edi + 0x30]
push 0
push dword [ebp + 0x10]
push esi
push dword [edi + 8]
call eax
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x4a3620
mov eax, dword [edi + 0xf8]
lea ebx, [edi + 0xf8]
and eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x4a3604
mov edi, ebx
mov eax, dword [edi + 8]
test esi, esi
je 0x4a35ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4a35ed
push eax
push dword [esi + 8]
call ecx
add esp, 8
jmp 0x4a35f6
push eax
call fcn.005417da
add esp, 4
mov eax, dword [edi + 0x10]
add edi, 0x10
and eax, dword [edi + 4]
cmp eax, 0xffffffff
jne 0x4a35d4
mov ecx, dword [ebp + 0x10]
mov edx, ebx
push esi
call fcn.004a3640
add esp, 4
mov ecx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xb
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret