Function at 0x49a9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
xor ebx, ebx
push edi
mov eax, esi
mov dword [esp + 0x10], ebx
call fcn.0047e950
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49aa1e
mov edi, esi
call fcn.0047e630
test eax, eax
jne 0x49aa4b
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test dword [eax + 0xc], 0x4000000
mov edi, dword [ebp + 0xc]
je 0x49aa6c
mov ecx, edi
call fcn.0049f030
test eax, eax
jne 0x49aa75
cmp dword [edi + 0x24], ebx
jne 0x49aa75
cmp dword [ebp + 0x1c], ebx
je 0x49ac20
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
push ecx
push edi
push 3
push ebx
push ebx
push edx
call fcn.004b1c00
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0049f7b0
or dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
lea edx, [eax + 1]
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0xc]
lea eax, [edx + eax + 1]
mov dword [ecx + 0x48], eax
mov eax, dword [esi + 0xc]
add esp, 0x20
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49aad4
mov edi, esi
call fcn.0047e630
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49aafe
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x10]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0xe
mov byte [esi + 0x62], bl
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0xc], ebx
jle 0x49ab9f
lea ecx, [ecx]
cmp dword [esp + 0x18], 0xffffffff
je 0x49ab24
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x49ab91
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49ab52
mov edi, esi
call fcn.0047e630
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x49ab7c
mov eax, dword [esp + 0x24]
inc dword [esi + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x14]
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x1c
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x20]
push eax
push edi
push esi
mov eax, ecx
call fcn.004b1cd0
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0xc]
jl 0x49ab10
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 1
push ebx
push 0x6a
push ecx
push edx
call fcn.004b1b90
mov eax, dword [esi + 0xc]
add esp, 0x24
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49abe1
mov edi, esi
call fcn.0047e630
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49ac0e
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov word [eax], 0x33
mov byte [esi + 0x62], bl
mov eax, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.0049f220
add esp, 0xc
cmp dword [edi + 0x1c], ebx
jne 0x49acec
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
mov eax, edi
call fcn.0049ae20
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [esi + 0x10], eax
jg 0x49ac5a
mov edi, esi
call fcn.0047e630
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x49ac88
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
inc dword [esi + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
cmp dword [ebp + 0x18], ebx
mov byte [eax + 3], bl
setne cl
mov dword [eax + 4], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x38
mov dword [eax + 8], ecx
mov byte [esi + 0x62], bl
cmp dword [ebp + 0x18], ebx
je 0x49acec
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x14]
mov edi, dword [esi]
mov dword [esp + 0x20], ecx
cmp edx, ebx
je 0x49acdf
cmp byte [edi + 0x1e], bl
jne 0x49acdf
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4 - 5]
lea ecx, [edx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.0047ebd0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov dword [eax + 0x10], ebx
cmp ecx, ebx
jne 0x49acd6
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x49acec
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfe
jmp 0x49acec
mov eax, 0xfffffffe
call fcn.0047ebd0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test dword [edx + 0xc], 0x4000000
je 0x49addc
mov edx, dword [edi + 4]
mov eax, edx
cmp edx, ebx
jne 0x49ad0f
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x49ad25
cmp byte [edx], bl
je 0x49ad18
inc eax
cmp byte [eax], bl
jne 0x49ad13
sub eax, edx
and eax, 0x3fffffff
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x44]
add eax, 0x34
mov dword [esp + 0x24], eax
cmp dword [eax + 0xc], ebx
je 0x49ad7f
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, ebx
jle 0x49ad6d
movzx ecx, byte [edx]
movzx edx, byte [ecx + 0x53b5e8]
lea ecx, [eax*8]
xor edx, ecx
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov edx, dword [esp + 0x20]
dec ecx
inc edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
jg 0x49ad42
mov ecx, dword [esp + 0x24]
xor edx, edx
div dword [ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
jmp 0x49ad81
xor edx, edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call fcn.0046c300
add esp, 8
cmp eax, ebx
je 0x49addc
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x49addc
jmp 0x49ada4
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push ebx
push eax
push edi
push edx
call fcn.0049fb10
add esp, 0x10
cmp eax, ebx
je 0x49adcd
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push 2
push ecx
push edi
push eax
push edx
call fcn.004b1a50
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x49ada0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push 2
push ebx
push 0x6a
push ecx
push edx
call fcn.004b1b90
mov eax, dword [esi + 0x20]
add esp, 0x24
cmp eax, ebx
je 0x49ae19
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0xc]
sub eax, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret