Function at 0x4f5edf
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x228
mov eax, dword [0x58b148]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x230]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x240]
push edi
push 0x20
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.005010b0
push 0x20
lea eax, [esp + 0x204]
push esi
push eax
call fcn.005010b0
and byte [esp + 0x22b], 0x7f
lea eax, [esp + 0x20c]
push eax
lea eax, [esp + 0x1e8]
push eax
call fcn.004f34e3
lea eax, [esp + 0x174]
push eax
call fcn.004f1fe7
push 0x28
xor ebx, ebx
lea eax, [esp + 0x12c]
push ebx
push eax
call fcn.004ff8d0
push 0xa
pop ecx
lea eax, [esp + 0x15c]
lea esi, [esp + 0x1fc]
lea edi, [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004f1fe7
mov ecx, 0xfe
add esp, 0x34
mov dword [esp + 0x10], ecx
mov eax, ecx
movzx ecx, cl
shr eax, 3
and ecx, 7
movzx esi, byte [esp + eax + 0x214]
lea eax, [esp + 0x17c]
shr esi, cl
and esi, 1
xor ebx, esi
push ebx
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.004f20c0
push ebx
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x118]
push eax
call fcn.004f20c0
lea eax, [esp + 0x144]
mov ebx, esi
push eax
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004f36a4
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x17c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004f36a4
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004f2001
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0x1bc]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004f2001
add esp, 0x48
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x134]
push eax
call fcn.004f270d
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x118]
push eax
call fcn.004f270d
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004f2fd1
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.004f2fd1
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x1d4]
push eax
call fcn.004f2001
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004f36a4
add esp, 0x40
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.004f270d
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xec]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004f36a4
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.004f2fd1
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x150]
push eax
call fcn.004f2e76
lea eax, [esp + 0x1cc]
push eax
lea eax, [esp + 0x1a8]
push eax
call fcn.004f2fd1
lea eax, [esp + 0x15c]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004f2001
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x20c]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.004f270d
add esp, 0x48
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.004f270d
mov ecx, dword [esp + 0x1c]
add esp, 0xc
sub ecx, 1
mov dword [esp + 0x10], ecx
jns 0x4f5f94
push esi
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.004f20c0
push esi
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x118]
push eax
call fcn.004f20c0
push 0xa
pop ecx
lea eax, [esp + 0x1bc]
push eax
lea eax, [esp + 0x120]
lea esi, [esp + 0x120]
lea edi, [esp + 0x1c0]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004f2182
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x178]
push eax
push eax
call fcn.004f270d
lea eax, [esp + 0x180]
push eax
push ebp
call fcn.004f3764
mov ecx, dword [esp + 0x268]
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fef98
add esp, 0x228
ret