Function at 0x499ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
test dword [edx + 0x18], 0x80000
movzx eax, byte [ebx + 0x1b6]
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], eax
je 0x49a16a
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x40]
mov eax, 0xfff0bdc0
mov dword [ebp - 0xc], eax
test esi, esi
je 0x499b30
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [edx + 0x14], eax
jle 0x499b30
mov ecx, dword [edx + 0x10]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], esi
je 0x499b2d
inc eax
add ecx, 0x10
cmp eax, dword [edx + 0x14]
jl 0x499b20
mov dword [ebp - 0xc], eax
mov ecx, dword [edx + 0x10]
add eax, eax
mov esi, dword [ecx + eax*8]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], eax
test eax, eax
je 0x499cf3
jmp 0x499b53
mov esi, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], eax
je 0x499b97
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [edi]
push eax
push ecx
call fcn.00445600
add esp, 8
test eax, eax
je 0x499b97
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
push edx
push edi
mov edi, dword [ebp + 0x18]
call fcn.0044ec30
add esp, 8
test eax, eax
je 0x499cdf
mov esi, dword [ebp - 0x20]
cmp byte [ebx + 0x1b6], 0
mov eax, dword [ebp - 4]
je 0x499bbb
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
push esi
push ecx
push edx
call fcn.0044d9b0
add esp, 0xc
mov edi, eax
jmp 0x499d86
mov edi, dword [eax + 8]
mov eax, dword [ebx]
cmp byte [eax + 0x91], 0
jne 0x499d3f
lea ecx, [ebx + 4]
push ecx
push eax
call fcn.004b8330
add esp, 8
test eax, eax
je 0x499d3f
inc dword [ebx + 0x40]
mov dword [ebx + 0xc], eax
xor edi, edi
cmp dword [ebp - 0x24], 0
je 0x49a168
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x49a168
test edi, edi
jne 0x499cdf
mov eax, ebx
call fcn.004605e0
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ecx + 0x14]
mov edx, dword [edi + 0x20]
lea edx, [eax + edx + 1]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
test eax, eax
jle 0x499c93
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov edx, dword [ebp + 0x10]
lea esi, [ecx + edx + 1]
cmp dword [eax + 0x54], ebx
jg 0x499c57
push edi
call fcn.00456650
add esp, 4
test eax, eax
jne 0x499c7d
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x4c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add dword [ebp - 0x1c], 8
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edx + 0x14]
jl 0x499c33
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x18]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [edx + 0x54], esi
jg 0x499cb5
push edi
call fcn.00456650
add esp, 4
test eax, eax
jne 0x499cdf
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x86
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x499b50
mov ebx, dword [edi + 0x40]
mov esi, dword [ebx + 0x44]
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
test esi, esi
je 0x499f27
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x499d2c
mov edi, edi
movzx ecx, cl
movzx ecx, byte [ecx + 0x520d38]
lea edi, [eax*8]
xor ecx, edi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x499d10
xor edx, edx
div dword [ebx + 0x38]
mov ebx, dword [esi + edx*8]
lea eax, [esi + edx*8]
mov esi, dword [eax + 4]
jmp 0x499f2d
mov edx, dword [ebx]
push esi
push edi
push edx
call fcn.0044d9b0
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x499d83
push edi
test esi, esi
je 0x499d6d
push esi
push str.no_such_table
push str._s:__s._s
call fcn.004683f0
add esp, 0x10
jmp 0x499d7f
push str.no_such_table
push str._s:__s
call fcn.004683f0
add esp, 0xc
mov byte [ebx + 0x11], 1
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x499bea
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ebx
lea eax, [ebp - 0x18]
call fcn.0046ea20
add esp, 0x10
test eax, eax
jne 0x499bea
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x499db7
mov dword [ebp - 0x10], eax
jmp 0x499dc3
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x499e38
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
movsx edx, word [edx + 0x20]
cmp dword [eax + esi*4], edx
jne 0x499de6
mov dword [eax + esi*4], 0xffffffff
mov edx, dword [ebp - 8]
cmp dword [edx + 0x11c], 0
je 0x499e2f
test ecx, ecx
je 0x499dff
mov eax, dword [ecx + 4]
movsx eax, word [eax + esi*2]
jmp 0x499e03
movsx eax, word [edi + 0x20]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edi]
push ecx
push eax
push edx
mov eax, ebx
call fcn.0046bd40
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [ebp - 0x10]
sete cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
inc esi
cmp esi, dword [edx + 0x14]
jl 0x499dd3
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp - 0xc]
push eax
push 0
push ecx
push edx
mov eax, ebx
call fcn.004593b0
mov eax, dword [ebp + 0x10]
inc dword [ebx + 0x44]
mov esi, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x499e7a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x14]
push edx
push esi
push eax
push edi
push ecx
push ebx
call fcn.00489750
add esp, 0x24
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x499ecd
mov eax, dword [ebx + 0x198]
test eax, eax
jne 0x499e8d
mov eax, ebx
mov eax, dword [eax + 0x210]
test eax, eax
je 0x499eaf
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
jne 0x499ea4
cmp byte [esi + 0x19], 7
je 0x499ecd
cmp eax, dword [esi + 0x20]
jne 0x499eaf
cmp byte [esi + 0x1a], 7
je 0x499ecd
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0xc]
push 1
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push esi
push ecx
push edi
push edx
push ebx
call fcn.00489750
add esp, 0x24
cmp dword [ebp - 0x18], 0
je 0x499cdf
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x208], 0
mov eax, dword [ebp - 0x18]
je 0x499ef0
call fcn.004452d0
jmp 0x499cdf
cmp eax, dword [ecx + 0x114]
jb 0x499f19
cmp eax, dword [ecx + 0x118]
jae 0x499f19
mov edx, dword [ecx + 0x110]
mov dword [eax], edx
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], eax
jmp 0x499cdf
push eax
call fcn.00445260
add esp, 4
jmp 0x499cdf
mov esi, dword [ebx + 0x40]
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
je 0x49a168
mov edi, dword [ebp - 0x28]
mov edx, dword [esi + 0xc]
push edi
push edx
dec ebx
call fcn.00445600
add esp, 8
test eax, eax
je 0x499f57
mov esi, dword [esi]
test ebx, ebx
jne 0x499f38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 8]
mov dword [ebp - 4], esi
test esi, esi
je 0x49a168
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x499f90
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp - 4]
push edx
call fcn.0044ec80
add esp, 0xc
test eax, eax
je 0x49a157
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18], 0
jne 0x499fbb
mov ecx, dword [ebp - 8]
test dword [ecx + 0x18], 0x1000000
jne 0x499fbb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x198], 0
jne 0x499fbb
cmp byte [eax + 0x14], 0
je 0x49a157
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
call fcn.0046ea20
add esp, 0x10
test eax, eax
je 0x499ff6
cmp dword [ebp - 0x24], 0
je 0x49a168
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x49a168
jmp 0x49a157
mov esi, dword [ebp - 8]
push 0
push 0x58
call fcn.004527c0
mov ebx, dword [ebp - 0x18]
mov edi, eax
add esp, 8
test edi, edi
je 0x49a110
push 0x58
push 0
push edi
call fcn.004bad00
mov dword [edi + 4], 1
mov ecx, dword [edi]
push ecx
push 1
push esi
mov eax, edi
call fcn.0045a180
add esp, 0x18
cmp byte [esi + 0x41], 0
mov edi, eax
je 0x49a048
push edi
mov eax, esi
call fcn.0044e310
jmp 0x49a10d
mov eax, dword [edi]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea edx, [eax + eax*4]
add edx, edx
lea eax, [edi + edx*8 - 0x48]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [edi + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov ecx, 1
add word [eax + 0x24], cx
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0x14]
add dword [ebx + 0x44], ecx
cmp eax, edx
je 0x49a0a3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0xc]
push ecx
push esi
push edx
push eax
push edi
push ebx
call fcn.00499430
add esp, 0x20
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49a0f7
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push 1
setne cl
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
movzx edx, byte [ecx + esi + 0x19]
mov ecx, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0xc]
push edx
push edi
push ebx
call fcn.00499430
add esp, 0x20
cmp byte [esi + 0x18], 0
jne 0x49a0f7
mov eax, dword [ebp - 0x28]
cmp eax, 9
je 0x49a0f7
cmp eax, 7
je 0x49a0f7
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x49a0f3
mov ebx, eax
mov byte [ebx + 0x15], 1
mov eax, dword [ebp - 8]
push edi
mov dword [edi + 0x10], 0
call fcn.0044e310
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
add esp, 4
test ebx, ebx
je 0x49a157
cmp dword [esi + 0x208], 0
je 0x49a128
mov eax, ebx
mov ecx, esi
call fcn.004452d0
jmp 0x49a157
cmp ebx, dword [esi + 0x114]
jb 0x49a14e
cmp ebx, dword [esi + 0x118]
jae 0x49a14e
mov eax, dword [esi + 0x110]
mov dword [ebx], eax
dec dword [esi + 0xfc]
mov dword [esi + 0x110], ebx
jmp 0x49a157
push ebx
call fcn.00445260
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x499f65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret