Function at 0x45c2a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov eax, esi
cmp esi, 0x8000
jb 0x45c2ca
mov eax, 0x8000
push ebx
push edi
mov edi, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.004b04f0
mov eax, 1
add esp, 0xc
xor bl, bl
cmp esi, eax
jbe 0x45c2f8
lea esp, [esp]
xor bl, byte [eax + edi]
inc eax
cmp eax, esi
jb 0x45c2f0
push 8
mov ecx, ebp
call fcn.0043b680
mov esi, dword [esp + 0x20]
mov dword [esi + 0x10], 0
cmp bl, byte [edi]
jne 0x45c5e7
mov ebx, dword [esp + 0x1c]
push ebx
push edi
push 0xffffffffffffffff
call fcn.00422180
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x4d8644], eax
jne 0x45c337
cmp dword [ecx + 0x4d8640], ebx
je 0x45c345
add ecx, 0xc
inc edx
cmp ecx, 0x54
jb 0x45c327
jmp 0x45c3d1
lea ecx, [edx + edx*2]
mov ebx, dword [ecx*4 + 0x4d8648]
test ebx, ebx
je 0x45c3d1
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x45c399
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x45c371
mov edi, eax
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004b024f
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x45c396
mov ecx, 0x5072f4
call fcn.0042cb70
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0xc]
mov dword [ecx], ebx
mov dword [eax + 0x14], ecx
mov ecx, 3
lea edx, [eax + 0x1c]
mov dword [eax], 0x36
mov dword [eax + 0x24], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x1c], 0
mov ecx, ebp
call fcn.0043b6a0
push 1
mov ecx, ebp
mov edi, eax
call fcn.0043b680
test edi, 0x8000
je 0x45c47b
push ebp
call fcn.0045afc0
mov ecx, dword [esp + 0x1c]
inc eax
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp dword [ebp], ecx
jae 0x45c5e7
jmp 0x45c414
mov eax, dword [esp + 0x18]
cmp ebx, eax
jae 0x45c47b
inc dword [esi + 0x24]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
cmp ecx, eax
jbe 0x45c457
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x45c436
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push eax
call fcn.004b024f
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
jne 0x45c454
mov ecx, 0x5072f4
call fcn.0042cb70
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x20]
mov ecx, ebp
add edi, ebx
call fcn.0043b6a0
shr eax, 8
push 8
mov ecx, ebp
mov byte [edi], al
call fcn.0043b680
mov ecx, dword [esp + 0x1c]
inc ebx
cmp dword [ebp], ecx
jb 0x45c410
mov edx, dword [esp + 0x1c]
cmp dword [ebp], edx
jae 0x45c5e7
jmp 0x45c490
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x45c4d6
mov edx, eax
shr edx, 2
lea eax, [edx + eax + 0x20]
mov edi, ecx
cmp ecx, eax
ja 0x45c4ae
mov edi, eax
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004b024f
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x45c4d3
mov ecx, 0x5072f4
call fcn.0042cb70
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [esi]
mov ecx, ebp
lea edi, [eax + edx*8]
call fcn.0043b6a0
mov ecx, ebp
test eax, 0x8000
jne 0x45c4f8
shr eax, 0xc
push 4
jmp 0x45c500
shr eax, 0xa
sub eax, 0x18
push 6
mov dword [edi], eax
call fcn.0043b680
mov ecx, dword [edi]
test byte [ecx + 0x4d8614], 4
je 0x45c52f
mov ecx, ebp
call fcn.0043b6a0
test eax, 0xffff8000
setne dl
push 1
mov ecx, ebp
mov byte [edi + 4], dl
call fcn.0043b680
jmp 0x45c533
mov byte [edi + 4], 0
lea eax, [edi + 0x18]
mov dword [eax], 3
mov dword [esp + 0x18], eax
mov eax, dword [edi]
lea ebx, [edi + 8]
mov dword [ebx], 3
movzx ebp, byte [eax + 0x4d8614]
and ebp, 3
mov eax, 0
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], eax
jle 0x45c5d2
movzx ecx, byte [edi + 4]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0045b130
cmp ebp, 2
jne 0x45c58b
movzx edx, byte [edi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push edx
push eax
call fcn.0045b130
jmp 0x45c5d2
cmp dword [ebx], 1
jne 0x45c5d2
mov ecx, dword [edi]
test byte [ecx + 0x4d8614], 0x18
je 0x45c5d2
mov eax, dword [edi + 0xc]
cmp eax, 0x100
jl 0x45c5ac
sub eax, 0x100
jmp 0x45c5cf
cmp eax, 0x88
jl 0x45c5ba
sub eax, 0x108
jmp 0x45c5cc
cmp eax, 0x10
jl 0x45c5c4
sub eax, 8
jmp 0x45c5cc
cmp eax, 8
jl 0x45c5cc
sub eax, 0x10
add eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
inc dword [esi + 0x10]
mov ebp, eax
cmp dword [eax], edx
jb 0x45c490
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jbe 0x45c62b
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 0x20]
cmp ecx, edi
jbe 0x45c603
mov edi, ecx
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004b024f
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x45c628
mov ecx, 0x5072f4
call fcn.0042cb70
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0xc]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x14], edx
cmp dword [esi + 0x10], ecx
jle 0x45c687
xor edx, edx
mov eax, dword [esi]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x45c672
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x45c67e
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [esi + 0x10]
jl 0x45c662
cmp dword [esp + 0x1c], 0
pop edi
pop ebx
je 0x45c698
push esi
mov ecx, ebp
call fcn.0045b230
pop esi
pop ebp
pop ecx
ret 0xc