Function at 0x49f1b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x6d8]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], esi
mov dword [esi + 0x6dc], edi
je 0x49efcd
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0052a340
mov dword [esi + 0x6d8], edi
mov eax, dword [esi + 0x104]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esi + 0x6e0], edi
mov dword [esp + 0x18], edi
call fcn.0049d0a0
mov edx, dword [esi + 0x6d8]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edx
je 0x49f1a9
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
cmp eax, edi
push ebp
mov dword [esp + 0x10], edi
je 0x49f035
add ecx, 4
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x49f07c
mov esi, dword [esi + 0x1c]
push edi
push esi
push 0x80
call fcn.0052b3e0
add esp, 0xc
cmp eax, edi
je 0x49f058
mov ecx, eax
call fcn.0047e7e0
mov dword [esp + 0x10], eax
jmp 0x49f05c
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
xor eax, eax
cmp ebx, edi
mov dword [esp + 0x14], eax
jle 0x49f19a
lea ebx, [ebx]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx + eax*4]
cmp ebp, dword [esp + 0x5c]
je 0x49f18d
push edi
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.004813b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
cmp eax, ecx
mov ecx, dword [esp + 0x34]
jl 0x49f0cd
cmp eax, ecx
jl 0x49f0cd
mov dword [esp + 0x48], edi
mov esi, 1
jmp 0x49f0d6
mov esi, 1
mov dword [esp + 0x48], esi
cmp dword [esp + 0x40], ecx
jg 0x49f0e4
cmp eax, ecx
mov dword [esp + 0x4c], edi
jle 0x49f0e8
mov dword [esp + 0x4c], esi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
mov ecx, dword [esp + 0x3c]
jg 0x49f100
cmp ecx, eax
mov dword [esp + 0x50], edi
jle 0x49f104
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x28]
cmp ecx, eax
jl 0x49f114
cmp edx, eax
mov dword [esp + 0x54], edi
jge 0x49f118
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x48]
sub eax, esi
lea ebx, [esi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x49f130
mov eax, dword [esp + 0x1c]
nop
cmp dword [eax + esi], 0
je 0x49f177
mov ecx, dword [esi]
push ebx
push ecx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x40]
push edx
push ebp
push edi
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0049ac20
cmp eax, ebp
jne 0x49f177
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], eax
mov dword [esi], ebp
mov dword [edx + 0xc], ecx
inc edi
add esi, 4
add ebx, 0x10
cmp edi, 4
jl 0x49f12b
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
xor edi, edi
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x49f090
mov ecx, dword [esp + 0x10]
cmp ecx, edi
pop ebp
je 0x49f1a9
mov edx, dword [ecx]
push 1
call dword [edx]
pop edi
pop esi
pop ebx
add esp, 0x48
ret 8