Function at 0x49a810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
mov al, byte [ebx + 0x1ba]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 1], al
test dword [esi + 0xc], 0x4000000
je 0x49ae56
cmp dword [ebx + 0xc], 0
jne 0x49a85a
push esi
call fcn.004b25a0
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x49a85a
push 0x87
push eax
call fcn.004b1c60
add esp, 8
mov eax, dword [ebp + 0xc]
push edi
mov edi, 0xfff0bdc0
mov dword [ebp - 0x10], edi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x49a88f
mov edx, dword [esi + 4]
xor edi, edi
mov dword [ebp - 0x10], edi
test edx, edx
jle 0x49a88f
mov eax, dword [esi + 8]
add eax, 0xc
nop
cmp dword [eax], ecx
je 0x49a88c
inc edi
add eax, 0x10
cmp edi, edx
jl 0x49a880
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 8]
add edi, edi
mov ecx, dword [eax + edi*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
test eax, eax
je 0x49a927
nop dword [eax + eax]
cmp byte [ebx + 0x1ba], 0
mov edi, dword [eax + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
je 0x49a8e4
push ecx
push edi
push esi
call fcn.00499b70
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x49a98b
mov ecx, dword [ebx]
cmp byte [ecx + 0x7c], 0
jne 0x49a93e
lea eax, [ebx + 8]
push eax
push ecx
call fcn.0049ed80
add esp, 8
test eax, eax
je 0x49a93e
inc dword [ebx + 0x40]
mov dword [ebx + 4], eax
cmp byte [ebp - 1], 0
je 0x49ae55
cmp byte [esi + 0x1e], 0
jne 0x49ae55
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x49a8b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x49abc2
jmp 0x49abd5
push dword [ebp - 0x24]
push edi
push dword [ebx]
call fcn.00499b70
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x49a993
mov eax, dword [ebp - 0x24]
push edi
test eax, eax
je 0x49a971
push eax
push str.no_such_table
push str._s:__s._s
push ebx
call fcn.004954d0
add esp, 0x14
jmp 0x49a984
push str.no_such_table
push str._s:__s
push ebx
call fcn.004954d0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov byte [ebx + 0x12], 1
test eax, eax
je 0x49a903
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 8]
push eax
push ebx
call fcn.0047cab0
add esp, 0x14
test eax, eax
jne 0x49a903
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x49a9be
mov edx, edi
mov dword [ebp - 0x14], edi
jmp 0x49a9cd
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ecx + 0x14], eax
jle 0x49aa4e
mov edi, dword [ebp - 0xc]
nop dword [eax]
mov esi, dword [ebp + 0xc]
lea ecx, [eax*4]
mov eax, dword [ecx + edx]
cmp eax, dword [esi + 4]
mov esi, dword [ebp - 0x2c]
jne 0x49a9fc
mov dword [ecx + edx], 0xffffffff
cmp dword [esi + 0x100], 0
je 0x49aa3c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49aa14
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
jmp 0x49aa17
mov eax, dword [edi + 4]
push dword [ebp - 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xc]
push dword [eax + ecx*8]
push dword [edi]
push ebx
call fcn.0048c3c0
mov edx, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ecx + 0x14]
jl 0x49a9e0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0
push dword [eax + 0x14]
push dword [ebp - 0x10]
push ebx
call fcn.004ae130
inc dword [ebx + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49aa8c
push dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.004779c0
add esp, 0x24
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49aab1
push dword [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.004779c0
add esp, 0x24
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x49aaf6
test edi, edi
je 0x49aadd
cmp edi, dword [esi + 0xf8]
jb 0x49aadd
cmp edi, dword [esi + 0xfc]
jae 0x49aadd
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x49a917
push edi
call dword [0x7d902c]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1e8]
add dword [eax], ecx
jmp 0x49a917
test edi, edi
je 0x49a917
cmp edi, dword [esi + 0xf8]
jb 0x49ab27
cmp edi, dword [esi + 0xfc]
jae 0x49ab27
mov eax, dword [esi + 0xf4]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0xf4], edi
jmp 0x49a917
test edi, edi
je 0x49a917
cmp dword [0x7d9008], 0
je 0x49abb3
mov eax, dword [0x7defa0]
test eax, eax
je 0x49ab4b
push eax
call dword [0x7d9050]
add esp, 4
push edi
call dword [0x7d902c]
mov ecx, dword [0x7dee98]
neg eax
add ecx, eax
mov eax, dword [0x7deec0]
cmp ecx, eax
mov dword [0x7dee98], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x7deebc]
dec ecx
mov dword [0x7deec0], eax
mov eax, dword [0x7deee4]
cmp ecx, eax
mov dword [0x7deebc], ecx
cmovg eax, ecx
mov dword [0x7deee4], eax
call dword [0x7d9024]
mov eax, dword [0x7defa0]
add esp, 8
test eax, eax
je 0x49a917
push eax
call dword [0x7d9058]
add esp, 4
jmp 0x49a917
push edi
call dword [0x7d9024]
add esp, 4
jmp 0x49a917
cmp byte [ecx], 0
je 0x49abcd
inc edi
cmp byte [edi], 0
jne 0x49abc7
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x34
mov dword [ebp - 0x24], eax
cmp dword [eax + 0xc], 0
je 0x49ac2d
xor eax, eax
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x49ac1e
xor ebx, ebx
mov esi, edi
movzx eax, byte [ecx]
dec esi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x72f6c8]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
inc ecx
xor ebx, edx
mov dword [ebp - 0x28], ecx
test esi, esi
jg 0x49abf1
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
xor edx, edx
div dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x49ac2f
xor edx, edx
push edx
push edi
push ecx
push eax
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x49ae55
mov edi, dword [eax + 8]
mov dword [ebp + 8], edi
test edi, edi
je 0x49ae55
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
jne 0x49ac7b
cmp dword [ebx + 0x1a8], 0
jne 0x49ac7b
cmp byte [ebx + 0x158], 0
je 0x49ae47
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0047cab0
add esp, 0x14
test eax, eax
je 0x49acad
cmp byte [ebp - 1], 0
je 0x49ae55
cmp byte [esi + 0x1e], 0
jne 0x49ae55
jmp 0x49ae47
push 0
push 0
push 0
push esi
call fcn.004ac7e0
mov edi, dword [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x20], eax
test eax, eax
je 0x49ad3e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
inc word [edx + 0x20]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x44]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x20], eax
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x24]
test edx, edx
je 0x49ad0e
push 0xffffffffffffffff
push edx
push edi
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push ecx
push ebx
call fcn.00478330
mov ecx, dword [ebp - 0x20]
add esp, 0x20
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49ad2a
push 1
push edx
push edi
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push ecx
push ebx
call fcn.00478330
add esp, 0x20
mov eax, dword [ebp - 0x20]
push eax
push esi
mov dword [eax + 0xc], 0
call fcn.004acc20
add esp, 8
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x49ad83
test edi, edi
je 0x49ad6a
cmp edi, dword [esi + 0xf8]
jb 0x49ad6a
cmp edi, dword [esi + 0xfc]
jae 0x49ad6a
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x49ae44
push edi
call dword [0x7d902c]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1e8]
add dword [eax], ecx
jmp 0x49ae44
test edi, edi
je 0x49ae44
cmp edi, dword [esi + 0xf8]
jb 0x49adb4
cmp edi, dword [esi + 0xfc]
jae 0x49adb4
mov eax, dword [esi + 0xf4]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0xf4], edi
jmp 0x49ae44
test edi, edi
je 0x49ae44
cmp dword [0x7d9008], 0
je 0x49ae3a
mov eax, dword [0x7defa0]
test eax, eax
je 0x49addc
push eax
call dword [0x7d9050]
add esp, 4
push edi
call dword [0x7d902c]
mov ecx, dword [0x7dee98]
neg eax
add ecx, eax
mov eax, dword [0x7deec0]
cmp ecx, eax
mov dword [0x7dee98], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x7deebc]
dec ecx
mov dword [0x7deec0], eax
mov eax, dword [0x7deee4]
cmp ecx, eax
mov dword [0x7deebc], ecx
cmovg eax, ecx
mov dword [0x7deee4], eax
call dword [0x7d9024]
mov eax, dword [0x7defa0]
add esp, 8
test eax, eax
je 0x49ae44
push eax
call dword [0x7d9058]
jmp 0x49ae41
push edi
call dword [0x7d9024]
add esp, 4
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp + 8], edi
test edi, edi
jne 0x49ac51
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret