Function at 0x49f220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
test dword [esi + 0xc], 0x4000000
movzx eax, byte [edi + 0x1ba]
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], eax
je 0x49f7a3
cmp dword [edi + 0xc], 0
jne 0x49f268
mov eax, esi
call fcn.0047e540
mov dword [edi + 0xc], eax
test eax, eax
je 0x49f268
push 0x84
call fcn.0047e710
add esp, 4
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x44]
mov eax, 0xfff0bdc0
mov dword [ebp - 0xc], eax
test edx, edx
je 0x49f2a0
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [esi + 4], eax
jle 0x49f2a0
mov ecx, dword [esi + 8]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], edx
je 0x49f29d
inc eax
add ecx, 0x10
cmp eax, dword [esi + 4]
jl 0x49f290
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 8]
add eax, eax
mov edx, dword [ecx + eax*8]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], eax
test eax, eax
je 0x49f33a
mov ebx, eax
jmp 0x49f2c3
mov ebx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp byte [edi + 0x1ba], al
je 0x49f2ef
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
call fcn.00494c50
add esp, 0xc
jmp 0x49f3a1
mov esi, dword [edi]
cmp byte [esi + 0x7c], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
jne 0x49f352
lea ecx, [edi + 8]
push ecx
call fcn.004a73a0
add esp, 4
test eax, eax
je 0x49f352
inc dword [edi + 0x40]
mov dword [edi + 4], eax
cmp dword [ebp - 0x24], 0
je 0x49f7a3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e], 0
jne 0x49f7a3
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x49f2c0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x28], ecx
mov eax, ecx
test ecx, ecx
jne 0x49f4f7
mov dword [ebp - 0x14], ecx
jmp 0x49f510
mov esi, dword [ebp - 0x20]
mov edx, dword [edi]
push esi
push ebx
push edx
call fcn.00494c50
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x49f39e
push ebx
test esi, esi
je 0x49f384
push esi
push str.no_such_table
push str._s:__s._s
push edi
call fcn.0046b190
add esp, 0x14
jmp 0x49f397
push str.no_such_table
push str._s:__s
push edi
call fcn.0046b190
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov byte [edi + 0x12], 1
mov ebx, dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x49f313
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
call fcn.0049dd40
add esp, 0x10
test eax, eax
jne 0x49f313
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49f3d1
mov dword [ebp - 0x10], eax
jmp 0x49f3dd
mov ecx, dword [ebx + 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jle 0x49f451
mov eax, dword [ebp - 0x10]
lea ebx, [ebx]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 8]
jne 0x49f402
mov dword [eax + ebx*4], 0xffffffff
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xf8], 0
je 0x49f448
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49f41d
mov edx, dword [eax + 8]
mov eax, dword [edx + ebx*4]
jmp 0x49f420
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8]
push edx
push eax
mov eax, dword [esi + 4]
push eax
call fcn.00494420
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [ebp - 0x10]
sete cl
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
inc ebx
cmp ebx, dword [edx + 0x14]
jl 0x49f3f0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov ebx, dword [ebp - 0xc]
push eax
push 0
push ecx
push ebx
mov eax, edi
call fcn.00494660
mov eax, dword [ebp + 0xc]
inc dword [edi + 0x44]
add esp, 0x10
test eax, eax
je 0x49f491
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x10]
push eax
push ecx
push edx
push esi
push ebx
push edi
call fcn.0049dfd0
add esp, 0x24
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49f4b6
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push 1
push eax
mov eax, dword [ebp - 8]
push edx
push eax
push ecx
push esi
push ebx
push edi
call fcn.0049dfd0
add esp, 0x24
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x49f4e9
mov eax, dword [ebp - 4]
cmp ecx, dword [eax + 0xf0]
jb 0x49f4e9
cmp ecx, dword [eax + 0xf4]
jae 0x49f4e9
mov edx, dword [eax + 0xec]
mov dword [ecx], edx
dec dword [eax + 0xe4]
mov dword [eax + 0xec], ecx
jmp 0x49f32a
push ecx
call fcn.00468f60
add esp, 4
jmp 0x49f32a
cmp byte [ecx], 0
je 0x49f506
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x49f500
sub eax, ecx
and eax, 0x3fffffff
mov dword [ebp - 0x14], eax
mov esi, dword [ebx + 0x44]
add esi, 0x34
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x20], esi
je 0x49f557
mov edx, dword [ebp - 0x14]
xor eax, eax
cmp edx, eax
jle 0x49f551
jmp 0x49f530
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x53b5e8]
lea ebx, [eax*8]
xor esi, ebx
dec edx
xor eax, esi
inc ecx
test edx, edx
jg 0x49f530
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
xor edx, edx
div dword [esi]
jmp 0x49f559
xor edx, edx
mov eax, dword [ebp - 0x14]
push eax
push ecx
mov eax, esi
call fcn.0046c300
add esp, 8
test eax, eax
je 0x49f7a3
mov ebx, dword [eax + 8]
xor eax, eax
mov dword [ebp - 8], ebx
cmp ebx, eax
je 0x49f7a3
mov esi, dword [ebp - 4]
cmp byte [ebx + 0x18], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
jne 0x49f5a4
cmp dword [edi + 0x1a8], eax
jne 0x49f5a4
cmp byte [edi + 0x158], 0
je 0x49f793
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edx
push edi
lea eax, [ebp - 0xc]
call fcn.0049dd40
add esp, 0x10
test eax, eax
je 0x49f5d6
cmp dword [ebp - 0x24], 0
je 0x49f7a3
cmp byte [esi + 0x1e], 0
jne 0x49f7a3
jmp 0x49f793
cmp byte [esi + 0x1e], 0
mov eax, dword [ebp - 0xc]
jne 0x49f760
cmp byte [esi + 0xe2], 0
je 0x49f62a
mov eax, 0x40
cmp ax, word [esi + 0xe0]
ja 0x49f62a
mov eax, dword [esi + 0xec]
test eax, eax
je 0x49f62a
mov ecx, dword [eax]
inc dword [esi + 0xe4]
mov dword [esi + 0xec], ecx
mov ecx, dword [esi + 0xe4]
cmp ecx, dword [esi + 0xe8]
jle 0x49f626
mov dword [esi + 0xe8], ecx
mov esi, eax
jmp 0x49f684
cmp dword [0x567ef8], 0
je 0x49f665
mov eax, dword [0x56eb20]
test eax, eax
je 0x49f646
push eax
call dword [0x567f40]
add esp, 4
lea ebx, [ebp - 0x20]
mov eax, 0x40
call fcn.00468bc0
mov eax, dword [0x56eb20]
test eax, eax
je 0x49f673
push eax
call dword [0x567f48]
jmp 0x49f670
push 0x40
call dword [0x567f10]
mov dword [ebp - 0x20], eax
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x49f681
mov edx, dword [ebp - 4]
mov byte [edx + 0x1e], 1
mov ebx, dword [ebp - 8]
test esi, esi
je 0x49f75a
push 0x40
push 0
push esi
call fcn.004ecd20
mov edx, dword [ebp - 4]
mov eax, 1
mov word [esi + 2], ax
movsx ecx, word [esi]
add esp, 0xc
push ecx
push eax
push edx
mov eax, esi
call fcn.00498880
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 0xc
cmp byte [eax + 0x1e], 0
jne 0x49f751
movsx eax, word [esi]
lea ecx, [eax*8]
sub ecx, eax
mov dword [esi + ecx*8 - 0x2c], 0
mov dword [esi + ecx*8 - 0x30], 0
mov edx, dword [ebx]
lea eax, [esi + ecx*8 - 0x30]
mov dword [esi + 0x14], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov eax, edx
mov ecx, 1
add word [eax + 0x20], cx
mov edx, dword [edi + 0x44]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], edx
add dword [edi + 0x44], ecx
test eax, eax
je 0x49f726
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.0049e860
add esp, 0x20
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49f747
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
push 1
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.0049e860
add esp, 0x20
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], 0
push esi
call fcn.00498ad0
add esp, 4
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test eax, eax
je 0x49f78a
cmp eax, dword [esi + 0xf0]
jb 0x49f78a
cmp eax, dword [esi + 0xf4]
jae 0x49f78a
mov ecx, dword [esi + 0xec]
mov dword [eax], ecx
dec dword [esi + 0xe4]
mov dword [esi + 0xec], eax
jmp 0x49f793
push eax
call fcn.00468f60
add esp, 4
mov ebx, dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 8], ebx
cmp ebx, eax
jne 0x49f583
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret