Function at 0x4c97e6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4dd52c]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov dword [ebp - 0x3d8], ecx
je 0x4c9a6d
mov eax, dword [eax + 4]
test eax, eax
je 0x4c9a6d
mov esi, dword [eax]
test esi, esi
je 0x4c9a6d
test ebx, ebx
je 0x4c9a6d
xor eax, eax
cmp dword [esi + 0x18], eax
jbe 0x4c9845
mov ecx, dword [esi + 0x1c]
add ecx, eax
xor byte [ecx], 0x5c
inc eax
cmp eax, dword [esi + 0x18]
jb 0x4c9837
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jae 0x4c985a
mov ecx, dword [esi + 0x1c]
add ecx, eax
xor byte [ecx], 0x5c
inc eax
cmp eax, dword [esi + 0x18]
jb 0x4c984c
mov eax, dword [esi]
sub eax, 0x408
je 0x4c99f9
dec eax
je 0x4c99a2
dec eax
je 0x4c9948
dec eax
je 0x4c98ee
dec eax
je 0x4c9894
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4c988a
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, 0xfffff445
jmp 0x4c9a72
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x10]
call fcn.004d5084
push dword [esi + 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x40
pop edi
lea eax, [ebp - 0x3d4]
push eax
call fcn.004d4f9b
push dword [esi + 0x18]
lea eax, [ebp - 0x3d4]
push dword [esi + 0x1c]
push eax
call fcn.004d4fd8
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3d4]
push eax
call fcn.004d4fd8
push ebx
lea eax, [ebp - 0x3d4]
push eax
call fcn.004d5084
jmp 0x4c9a4e
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0xc]
call fcn.004d51ba
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x30
pop edi
lea eax, [ebp - 0x28c]
push eax
call fcn.004d517d
push dword [esi + 0x18]
lea eax, [ebp - 0x28c]
push dword [esi + 0x1c]
push eax
call fcn.004d4fd8
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.004d4fd8
push ebx
lea eax, [ebp - 0x28c]
push eax
call fcn.004d51ba
jmp 0x4c9a4e
lea eax, [ebp - 0x44]
push eax
push dword [esi + 8]
call fcn.004d4b5d
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x20
pop edi
lea eax, [ebp - 0x144]
push eax
call fcn.004d4a81
push dword [esi + 0x18]
lea eax, [ebp - 0x144]
push dword [esi + 0x1c]
push eax
call fcn.004d4ab8
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004d4ab8
push ebx
lea eax, [ebp - 0x144]
push eax
call fcn.004d4b5d
jmp 0x4c9a4e
lea eax, [ebp - 0x44]
push eax
push dword [esi + 4]
call fcn.004d2317
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x14
pop edi
lea eax, [ebp - 0x474]
push eax
call fcn.004d0ac5
push dword [esi + 0x18]
lea eax, [ebp - 0x474]
push dword [esi + 0x1c]
push eax
call fcn.004d2234
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.004d2234
push ebx
lea eax, [ebp - 0x474]
push eax
call fcn.004d2317
jmp 0x4c9a4e
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x14]
call fcn.004d4841
push dword [esi + 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x10
pop edi
lea eax, [ebp - 0x9c]
push eax
call fcn.004d3c46
push dword [esi + 0x18]
lea eax, [ebp - 0x9c]
push dword [esi + 0x1c]
push eax
call fcn.004d478f
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004d478f
push ebx
lea eax, [ebp - 0x9c]
push eax
call fcn.004d4841
mov eax, dword [ebp - 0x3d8]
test eax, eax
je 0x4c9a5a
mov dword [eax], edi
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4c9a69
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x4c9a72
mov eax, 0xfffff446
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0xc