Function at 0x4fa3e2
Capabilities:
Encode data using xor

Disassembly:
push 0x20
mov eax, 0x59976f
call fcn.00584f68
mov esi, ecx
push dword [ebp + 0xc]
call sub.MSVCR80.dll_strlen
movzx eax, ax
pop ecx
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004f8b2f
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004f8b2f
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004f8b2f
movzx edi, word [ebp - 0x10]
mov eax, dword [esi]
mov cl, byte [ebp - 0xf]
xor cl, byte [ebp - 0x10]
sub eax, edi
add eax, dword [esi + 4]
xor ebx, ebx
xor edx, edx
cmp edi, ebx
jle 0x4fa456
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
movzx edi, word [ebp - 0x10]
inc edx
cmp edx, edi
jl 0x4fa441
xor ebx, ebx
movzx eax, byte [ebp + 8]
dec eax
cmp eax, 9
ja case.0x4fa464.8
jmp dword [eax*4 + 0x4fa66a]
xor eax, eax
inc eax
jmp 0x4fa473
push 2
pop eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
push eax
push 4
jmp 0x4fa48b
push 4
pop eax
push eax
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004f8b2f
mov ecx, eax
call fcn.004f8b2f
jmp case.0x4fa464.8
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
shr eax, 1
push eax
lea ecx, [ebp + 0x10]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0x14]
push eax
call sym.txupd.exe_bool___cdecl_Util::Convert::UnicodeToGBK_class_CTXStringA___wchar_t_const___int_
movzx eax, al
add esp, 0xc
cmp eax, ebx
lea ecx, [ebp - 0x14]
jne 0x4fa4e5
or dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp case.0x4fa464.8
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
call fcn.004f8b2f
mov ecx, eax
call fcn.004f8b8d
mov eax, dword [esi]
sub eax, ebx
add eax, dword [esi + 4]
mov cl, bh
xor cl, bl
xor esi, esi
test ebx, ebx
jle 0x4fa527
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x4fa518
or dword [ebp - 4], 0xffffffff
jmp 0x4fa57e
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_class_CTXStringA_const__
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
call fcn.004f8b2f
mov ecx, eax
call fcn.004f8b8d
mov eax, dword [esi]
sub eax, ebx
add eax, dword [esi + 4]
mov cl, bh
xor cl, bl
xor esi, esi
test ebx, ebx
jle 0x4fa57e
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x4fa56f
lea ecx, [ebp - 0x14]
jmp 0x4fa4db
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.004ffb32
pop ecx
cmp eax, ebx
mov eax, dword [ebp - 0x14]
pop ecx
jl 0x4fa656
cmp eax, ebx
je 0x4fa656
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004f8b2f
push dword [ebp - 0x1c]
mov ecx, eax
push dword [ebp - 0x24]
call fcn.004f8b2f
mov eax, dword [ebp - 0x14]
jmp 0x4fa656
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 2
call fcn.004ffbb9
pop ecx
cmp eax, ebx
mov eax, dword [ebp - 0x18]
pop ecx
jl 0x4fa656
cmp eax, ebx
je 0x4fa656
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004f8b2f
push dword [ebp - 0x20]
mov ecx, eax
push dword [ebp - 0x28]
call fcn.004f8b2f
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je case.0x4fa464.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00585040
ret