Function at 0x450650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 0x10], 0
mov edx, ecx
cmp dword [ebp + 8], 0
push ebx
push esi
lea eax, [edx + 0x16c]
mov dword [ebp - 0xc], edx
mov esi, eax
mov dword [ebp - 0x30], eax
push edi
mov ebx, eax
mov dword [ebp - 0x1c], 1
lea ecx, [esi + 0xfd6]
mov dword [ebp - 0x34], ecx
je 0x450966
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x450966
and dword [edx + 0x116c], 0
and dword [ebp - 8], 0
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x450957
cmp esi, dword [ebp - 0x34]
ja 0x45094a
mov cl, byte [edi]
movsx eax, cl
mov dword [ebp - 0x14], esi
cmp eax, 0x3f
jg 0x450529
je 0x45047a
sub eax, 0x24
je 0x450465
sub eax, 6
je 0x45047a
sub eax, 1
je 0x45047a
sub eax, 3
jne 0x450545
mov byte [esi], 2
inc esi
jmp 0x4508c9
cmp byte [edi + 1], 0
jne 0x450470
mov byte [esi], 5
jmp 0x45045f
mov byte [esi], 1
inc esi
mov al, byte [edi]
mov byte [esi], al
jmp 0x45045f
cmp edi, dword [ebp + 8]
je 0x450904
mov al, byte [ebx]
mov dword [ebp - 0x14], ebx
cmp al, 0xb
je 0x4508c9
cmp al, 0xd
je 0x4508c9
movsx eax, al
sub eax, 4
je 0x4508fd
dec eax
sub eax, 1
je 0x4508fd
sub eax, 1
je 0x4508fd
sub eax, 1
je 0x4508fd
sub eax, 1
je 0x4508fd
sub eax, 1
je 0x4508fd
cmp cl, 0x2b
jne 0x4504ec
mov edx, ebx
mov ecx, esi
cmp edx, esi
jae 0x4504ec
mov al, byte [edx]
mov byte [esi], al
inc esi
inc edx
cmp edx, ecx
jb 0x4504df
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp - 0x14]
mov byte [esi], 0
inc esi
mov byte [esi], 0
lea edx, [esi + 1]
jmp 0x450501
mov al, byte [esi - 1]
mov byte [esi], al
dec esi
cmp esi, ebx
ja 0x4504fb
cmp byte [edi], 0x3f
jne 0x45050f
mov byte [esi], 0xc
jmp 0x45051f
cmp byte [edi + 1], 0x3f
sete al
lea eax, [eax*2 + 0xb]
mov byte [esi], al
mov esi, edx
mov edx, dword [ebp - 0xc]
jmp 0x4508cc
sub eax, 0x5b
je 0x450708
sub eax, 1
je 0x45061a
dec eax
sub eax, 1
je 0x450609
cmp byte [ebp + 0x14], 0
je 0x4505a7
cmp cl, 0x28
jne 0x450572
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0xa
jge 0x45090b
mov ecx, dword [ebp - 0x10]
mov al, bl
inc ecx
mov dword [edx + ecx*4 + 0x144], ebx
inc ebx
mov byte [esi], 6
mov dword [ebp - 0x1c], ebx
jmp 0x450596
cmp cl, 0x29
jne 0x4505a7
cmp byte [ebx], 6
je 0x450919
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x450912
mov byte [esi], 7
mov al, byte [edx + ecx*4 + 0x144]
dec ecx
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp - 0x14]
mov byte [esi + 1], al
add esi, 2
jmp 0x4508cf
test cl, cl
movzx edx, cl
push 0x5c
pop eax
cmove edx, eax
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x38], dl
jne 0x4505fb
mov ebx, dword [ebp - 0xc]
movzx ecx, dl
mov eax, dword [ebx + 0x1194]
cmp byte [ecx + eax], 2
jne 0x4505fb
push 0
push dword [ebp - 0x38]
mov byte [esi], 3
mov ecx, ebx
inc esi
call fcn.00450173
push 0x20
lea ecx, [ebx + 0x1170]
pop edx
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x4505e6
mov edx, ebx
jmp 0x4508c9
mov byte [esi], 1
mov byte [esi + 1], dl
add esi, 2
jmp 0x4508c6
cmp edi, dword [ebp + 8]
jne 0x450470
mov byte [esi], 4
jmp 0x45045f
inc dword [ebp - 8]
inc edi
mov cl, byte [edi]
movsx edx, cl
lea eax, [edx - 0x31]
cmp eax, 0xd
ja case.0x450632.58
movzx eax, byte [eax + 0x450992]
jmp dword [eax*4 + 0x450982]
mov byte [esi], 8
inc esi
jmp 0x4508c6
cmp byte [ebx], 8
je 0x450920
mov byte [esi], 9
jmp 0x45063c
mov ecx, dword [ebp - 0x10]
lea eax, [edx - 0x30]
mov edx, dword [ebp - 0xc]
test ecx, ecx
jle 0x45066a
cmp dword [edx + ecx*4 + 0x144], eax
je 0x450927
cmp dword [ebp - 0x1c], eax
jle 0x45092e
mov byte [esi], 0xa
jmp 0x450599
cmp byte [ebp + 0x14], 0
jne 0x4506bb
cmp cl, 0x28
jne 0x45069a
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0xa
jge 0x450935
mov edx, dword [ebp - 0xc]
jmp 0x45055c
cmp cl, 0x29
jne 0x4506bb
cmp byte [ebx], 6
je 0x450943
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x45093c
mov edx, dword [ebp - 0xc]
jmp 0x45058b
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
push edi
mov ecx, ebx
call fcn.004511c6
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x28]
add edi, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
test eax, eax
js 0x4506e8
mov byte [esi], 1
mov byte [esi + 1], al
add esi, 2
jmp 0x4505f4
push 0x20
mov byte [esi], 3
lea ecx, [ebx + 0x1170]
inc esi
pop edx
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x4506f5
jmp 0x4505f4
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov byte [esi], 3
inc esi
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], ebx
mov al, byte [edi]
cmp al, 0x5e
jne 0x450728
inc edi
mov byte [ebp - 1], 0xff
inc ecx
mov al, byte [edi]
jmp 0x45072b
mov byte [ebp - 1], bl
inc ecx
mov dword [ebp - 8], ecx
cmp al, 0x2d
jne 0x45074e
inc ecx
inc edi
push 0x2d
pop ebx
mov dword [ebp - 8], ecx
mov ecx, edx
push ebx
mov dword [ebp - 0x18], ebx
call fcn.00450153
mov al, byte [edi]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp al, 0x5d
jne 0x450767
inc ecx
inc edi
push 0x5d
pop ebx
mov dword [ebp - 8], ecx
mov ecx, edx
push ebx
mov dword [ebp - 0x18], ebx
call fcn.00450153
mov al, byte [edi]
test al, al
je 0x45089d
mov byte [ebp - 0x2c], al
cmp al, 0x5d
je 0x4508a7
cmp al, 0x2d
jne 0x450838
test ebx, ebx
jns 0x45079a
push 0x2d
pop ebx
mov dword [ebp - 0x18], ebx
push ebx
mov ecx, dword [ebp - 0xc]
call fcn.00450153
jmp 0x450888
mov al, byte [edi + 1]
test al, al
je 0x45089d
cmp al, 0x5d
je 0x450786
inc dword [ebp - 8]
lea ecx, [ebx + 1]
push 0x5c
movzx eax, al
inc edi
pop edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
cmp eax, edx
jne 0x4507fe
inc edi
cmp byte [edi], 0
je 0x45089d
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.004511c6
add edi, dword [ebp - 0x3c]
mov ebx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc eax
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], eax
test ebx, ebx
js 0x45082c
push ebx
call fcn.00450153
mov ecx, dword [ebp - 0x24]
mov eax, ebx
mov dword [ebp - 0x18], ebx
cmp ecx, eax
jg 0x450888
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov al, cl
inc ecx
mov dword [ebp - 0x24], ecx
mov ecx, esi
push eax
call fcn.00450173
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jle 0x45080c
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x18]
jmp 0x450888
push 0x2d
pop ebx
mov dword [ebp - 0x18], ebx
push ebx
jmp 0x450790
cmp al, 0x5c
jne 0x450874
cmp byte [edi + 1], 0
je 0x450874
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x44]
push eax
inc edi
push edi
call fcn.004511c6
add edi, dword [ebp - 0x44]
mov ebx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x18], ebx
add eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
test ebx, ebx
js 0x45086c
push ebx
jmp 0x45078d
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
jmp 0x45088b
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x2c]
movzx ebx, al
mov dword [ebp - 0x18], ebx
call fcn.00450173
mov eax, dword [ebp - 8]
inc eax
inc edi
mov dword [ebp - 8], eax
mov al, byte [edi]
mov byte [ebp - 0x2c], al
test al, al
jne 0x450772
mov eax, str.Missing__
jmp 0x45094f
mov ecx, dword [ebp - 0xc]
mov bl, byte [ebp - 1]
add ecx, 0x1170
push 0x20
pop edx
mov al, byte [ecx]
xor al, bl
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x4508b6
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
inc eax
inc edi
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0xc]
jl 0x450428
test ecx, ecx
jle 0x450957
mov ecx, dword [ebp - 0x30]
mov eax, 0x4c7db8
cmp byte [ebp + 0x14], 0
mov byte [ecx], 0
mov ecx, str.Unmatched__
cmove eax, ecx
jmp 0x45097b
mov eax, str.Illegal_closure
jmp 0x45094f
mov eax, str.Empty_closure
jmp 0x45094f
mov eax, str.Too_many____pairs
jmp 0x45094f
mov eax, 0x4c7dac
jmp 0x45094f
mov eax, str.Null_pattern_inside___
jmp 0x45094f
mov eax, 0x4c7cf8
jmp 0x45094f
mov eax, str.Cyclical_reference
jmp 0x45094f
mov eax, str.Undetermined_reference
jmp 0x45094f
mov eax, 0x4c7d40
jmp 0x45094f
mov eax, 0x4c7d70
jmp 0x45094f
mov eax, 0x4c7d54
jmp 0x45094f
mov eax, str.Pattern_too_long
mov ecx, dword [ebp - 0x30]
mov byte [ecx], 0
jmp 0x45097b
mov byte [esi], 0
mov dword [edx + 0x116c], 1
jmp 0x45096f
cmp dword [edx + 0x116c], 0
je 0x450973
xor eax, eax
jmp 0x45097b
mov byte [eax], 0
mov eax, str.No_previous_regular_expression
pop edi
pop esi
pop ebx
leave
ret 0x10