Function at 0x45d576
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x4e5478]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x484], edx
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 0x18]
div esi
mov dword [ebp - 0x490], ecx
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x49c], eax
mov eax, 0x1000
mov dword [ebp - 0x488], esi
div esi
push edi
mov dword [ebp - 0x4a8], eax
xor edi, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x45d5e0
test dword [eax], 0x800
je 0x45d5e0
mov eax, dword [eax + 0x10]
jmp 0x45d5e5
mov eax, dword [0x4e56ec]
cmp eax, esi
ja 0x45d5ee
xor eax, eax
inc eax
jmp 0x45d5fd
mov edx, 0x8000
cmp eax, edx
jb 0x45d5f9
mov eax, edx
xor edx, edx
div esi
mov dword [ebp - 0x4a0], eax
test ecx, ecx
je 0x45d88d
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x494], edx
cmp ecx, eax
jae 0x45d629
mov dword [ebp - 0x47c], ecx
jmp 0x45d631
mov ecx, eax
mov dword [ebp - 0x47c], eax
lea eax, [ecx - 1]
mov ebx, eax
mov dword [ebp - 0x498], eax
imul ebx, esi
shr ebx, 0xc
mov dword [ebp - 0x48c], ebx
test ecx, ecx
je 0x45d68b
mov ebx, dword [ebp - 0x494]
lea eax, [ebp - 0x470]
mov edx, ecx
xor ecx, ecx
mov dword [eax - 8], ebx
add ebx, esi
mov dword [eax - 4], edi
adc edi, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [eax + 0x10]
sub edx, 1
jne 0x45d65c
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x494], ebx
mov ebx, dword [ebp - 0x48c]
mov dword [ebp - 0x4a4], edi
lea eax, [ebp - 0x478]
push eax
mov eax, ecx
lea edx, [ebp - 0x478]
mov ecx, dword [ebp - 0x490]
shl eax, 4
push eax
call fcn.0045c17a
mov edi, eax
test edi, edi
js 0x45d88d
mov ecx, dword [ebp - 0x484]
add ecx, 0x1000
test ebx, ebx
je 0x45d6de
lea eax, [ebp - 0x78]
mov edx, ebx
mov esi, ecx
mov edi, eax
add ecx, 0x1000
add eax, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub edx, 1
jne 0x45d6c8
mov esi, ebx
lea edi, [ebp - 0x78]
shl esi, 4
cmp esi, 0x10
jb 0x45d70c
mov ebx, dword [ebp - 0x490]
shr esi, 4
push edi
mov edx, edi
mov ecx, ebx
call fcn.0047d6e0
add edi, 0x10
sub esi, 1
jne 0x45d6f4
mov ebx, dword [ebp - 0x48c]
test ebx, ebx
je 0x45d746
mov edx, dword [ebp - 0x4a8]
lea esi, [ebp - 0x470]
shl edx, 4
lea ecx, [ebp - 0x70]
add esi, edx
mov edi, ebx
mov eax, dword [esi - 8]
xor dword [ecx - 8], eax
mov eax, dword [esi - 4]
xor dword [ecx - 4], eax
mov eax, dword [esi]
xor dword [ecx], eax
lea ecx, [ecx + 0x10]
mov eax, dword [esi + 4]
add esi, edx
xor dword [ecx - 0xc], eax
sub edi, 1
jne 0x45d726
mov eax, dword [ebp - 0x484]
mov esi, dword [ebp - 0x488]
mov edi, dword [ebp - 0x47c]
lea edx, [eax - 0x10]
add edx, esi
cmp edi, 1
jbe 0x45d79a
mov edi, dword [ebp - 0x498]
lea ecx, [ebp - 0x460]
mov eax, dword [edx]
xor dword [ecx - 8], eax
mov eax, dword [edx + 4]
xor dword [ecx - 4], eax
mov eax, dword [edx + 8]
xor dword [ecx], eax
lea ecx, [ecx + 0x10]
mov eax, dword [edx + 0xc]
add edx, esi
xor dword [ecx - 0xc], eax
sub edi, 1
jne 0x45d76e
mov edi, dword [ebp - 0x47c]
mov eax, dword [ebp - 0x484]
mov ecx, dword [ebp - 0x490]
lea edx, [ebp - 0x478]
imul esi, edi
push esi
push dword [ebp - 0x480]
mov dword [ebp - 0x48c], esi
push eax
call fcn.0047d776
mov ecx, dword [ebp - 0x480]
and dword [ebp - 0x4ac], 0
add ecx, dword [ebp - 0x488]
cmp edi, 1
jbe 0x45d812
mov edi, dword [ebp - 0x488]
lea edx, [ebp - 0x460]
mov esi, dword [ebp - 0x498]
mov eax, dword [edx - 8]
xor dword [ecx], eax
mov eax, dword [edx - 4]
xor dword [ecx + 4], eax
mov eax, dword [edx]
lea edx, [edx + 0x10]
xor dword [ecx + 8], eax
mov eax, dword [edx - 0xc]
xor dword [ecx + 0xc], eax
add ecx, edi
sub esi, 1
jne 0x45d7e6
mov esi, dword [ebp - 0x48c]
mov edi, dword [ebp - 0x47c]
mov edx, dword [ebp - 0x480]
add edx, 0x1000
test ebx, ebx
je 0x45d852
lea ecx, [ebp - 0x70]
mov eax, dword [ecx - 8]
mov dword [edx], eax
lea edx, [edx + 0x1000]
mov eax, dword [ecx - 4]
mov dword [edx - 0xffc], eax
mov eax, dword [ecx]
lea ecx, [ecx + 0x10]
mov dword [edx - 0xff8], eax
mov eax, dword [ecx - 0xc]
mov dword [edx - 0xff4], eax
sub ebx, 1
jne 0x45d825
mov ecx, dword [ebp - 0x49c]
add dword [ebp - 0x480], esi
add dword [ebp - 0x484], esi
sub dword [ebp + 0x10], esi
sub ecx, edi
mov esi, dword [ebp - 0x488]
mov eax, dword [ebp - 0x4a0]
mov edi, dword [ebp - 0x4a4]
mov dword [ebp - 0x49c], ecx
jne 0x45d61d
mov edi, dword [ebp - 0x4ac]
push 0x70
pop ecx
lea eax, [ebp - 0x78]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x45d893
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040548e
leave
ret 0x18