Function at 0x4459f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
je 0x445a23
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x445a10
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x445a33
add ecx, 2
mov edx, ecx
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0xb08f8e8d
mov byte [esp + 4], 0
mov eax, 0xb6483e23
mov ecx, 0x49b7c2dc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x49b7c2dc]
lea edi, [ecx - 0x49b7c1ff]
and edi, edx
mov esi, edi
and esi, 0xfffffffd
mov ebx, edi
and ebx, 2
or edi, 2
imul edi, ebx
xor ebx, 2
imul ebx, esi
add edi, ebx
lea esi, [eax + edi]
mov ebx, ecx
sub ebx, edi
and ebx, edx
not edx
and edx, esi
sub ebx, edx
add bl, 0xaf
mov byte [esp + ecx - 0x49b7c2dc], bl
dec eax
inc ecx
cmp eax, 0xb6483e1e
jne 0x445a60
mov ebx, dword [esp]
mov eax, dword [0x450710]
test eax, eax
je 0x445aff
xor ecx, ecx
mov edx, dword [0x450714]
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x445ad0
inc ecx
cmp eax, ecx
jne 0x445ac0
jmp 0x445aff
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x445aff
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push dword [0x450718]
push eax
call fcn.00441310
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x692a2bc1
mov dword [esp + 4], 0
xor eax, eax
mov ecx, eax
add cl, 0xc7
xor cl, byte [esp + eax]
add cl, 0x1d
mov byte [esp + eax], cl
inc eax
cmp eax, 8
jne 0x445b10
cmp ebx, dword [esp]
jne 0x445ce1
push dword [esp + 0x10]
call fcn.0043e320
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x696a6b62
mov edx, 0xe7
mov edi, 0x18
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0xdb]
mov ecx, edx
xor ecx, edi
and ecx, esi
xor ecx, edi
mov bl, 0x7c
sub bl, cl
mov byte [esp + edx - 0xdb], bl
inc edx
dec edi
cmp edx, 0xeb
jne 0x445b60
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp], 0xb08f8e8d
mov byte [esp + 4], 0
mov ebx, 0xb6483e23
mov ebp, 0x49b7c2dc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebp - 0x49b7c2dc]
lea ecx, [ebp - 0x49b7c1ff]
and ecx, edi
mov edx, ecx
and edx, 0xfffffffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
add ecx, esi
lea esi, [ebx + ecx]
mov edx, ebp
sub edx, ecx
and edx, edi
not edi
and edi, esi
sub edx, edi
add dl, 0xaf
mov byte [esp + ebp - 0x49b7c2dc], dl
dec ebx
inc ebp
cmp ebx, 0xb6483e1e
jne 0x445bb0
mov ebx, dword [esp]
mov ecx, dword [0x450710]
test ecx, ecx
je 0x445c57
xor edi, edi
mov ebp, dword [0x450714]
cmp dword [ebp + edi*8], 0xc0a4c970
je 0x445c21
inc edi
cmp ecx, edi
jne 0x445c10
jmp 0x445c57
mov ecx, dword [ebp + edi*8 + 4]
cmp ecx, ebx
je 0x445c57
lea edx, [esp + 0x10]
lea esi, [esp + 0x14]
push edx
push dword [esp + 0xc]
push eax
push dword [esp + 0x28]
push esi
push dword [esp + 0x48]
push 6
push dword [0x450718]
push ecx
mov esi, eax
call fcn.00441310
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
js 0x445cd8
test esi, esi
je 0x445c6c
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x44], 0
je 0x445cd8
test edx, edx
je 0x445ccf
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x445c86
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
je 0x445ccf
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
push eax
call fcn.0043e380
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret