Function at 0x527f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x490]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
cmp dword [ebx + 0x48c], ecx
je 0x527f7f
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, dword [ebx + edx*8 + 0x4b8]
lea edx, [ebx + edx*8 + 0x4a0]
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov dword [edi], ecx
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x490], edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
mov dword [ebx + 0x48c], eax
mov dword [ebx + 0x490], eax
cmp dword [ebx + 0x31738], eax
jne 0x527fa9
lea eax, [ebp - 0x38]
push eax
mov esi, ebx
call fcn.00527cd0
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x527fbb
mov ecx, dword [ebx + 0x494]
mov edx, dword [ebx + 0x498]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebx + 0x49c]
mov dword [ebp - 0x60], eax
cmp eax, 2
jae 0x527fe4
pop esi
mov dword [edi], 0xffffffff
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
cmp eax, 0x111
jbe 0x527ff2
mov dword [ebp - 0x60], 0x111
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
push eax
call ecx
lea esi, [eax - 1]
mov al, byte [esi]
xor edi, edi
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x25], al
mov dword [ebp - 0x5c], edi
jmp 0x528020
lea edi, [edx*4]
mov eax, dword [edi + ebx + 0x3173c]
mov ecx, esi
sub ecx, eax
mov dword [ebp + edi - 0x14], eax
mov al, byte [ebp - 0x25]
dec ecx
cmp al, byte [ecx]
jne 0x528084
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x528084
mov eax, 2
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x60], eax
jbe 0x52806f
lea edx, [esi + 2]
sub ecx, esi
mov al, byte [edx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x50]
jne 0x52806c
inc eax
inc edx
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x60]
jb 0x528058
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + edi - 0x24], eax
cmp eax, dword [ebp + ecx - 0x24]
jbe 0x52808c
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edi
jmp 0x52808c
mov dword [ebp + edi - 0x24], 0
inc edx
mov dword [ebp - 0x48], edx
cmp edx, 4
jb 0x528020
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebx + 0x31734]
mov dword [ebp - 0x5c], edi
cmp edi, ecx
jb 0x5280da
mov edx, dword [ebp - 0x7c]
mov dword [edx], eax
lea eax, [edi - 1]
test eax, eax
je 0x5280c8
add dword [ebx + 0x31738], eax
mov ecx, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
call ecx
add esp, 8
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jb 0x528124
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + edx*4 + 0x30e9c]
mov edx, dword [ebp - 0x7c]
add ecx, 4
mov dword [edx], ecx
lea ecx, [eax - 1]
test ecx, ecx
je 0x529146
mov eax, dword [ebx + 0x18]
add dword [ebx + 0x31738], ecx
push ecx
mov ecx, dword [ebx + 0x14]
push eax
call ecx
mov eax, dword [ebp - 0x2c]
add esp, 8
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
mov edx, esi
sub edx, dword [ebp - 0x14]
mov cl, byte [edx - 1]
mov byte [ebp - 0x31], cl
cmp eax, 2
jae 0x52815c
cmp byte [ebp - 0x25], cl
je 0x52815c
cmp edi, 2
jae 0x52815c
mov eax, dword [ebp - 0x7c]
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
mov edi, dword [ebx + 0x3174c]
mov eax, edx
and eax, dword [ebx + 0x323a8]
mov dword [ebx + 0x4a4], edi
movzx esi, byte [esi - 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x32398]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebx + 0x323a4]
and ecx, edx
mov dword [ebp - 0x3c], ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
shl eax, cl
movzx ecx, byte [ebp - 0x25]
add esi, eax
imul esi, esi, 0x600
add esi, dword [ebx + 0x323ac]
cmp edi, 7
jb 0x5281c8
lea eax, [ebx + 0x30ca0]
push eax
movzx eax, byte [ebp - 0x31]
push esi
call fcn.005277d0
add esp, 8
jmp 0x5281d3
lea edx, [ebx + 0x30ca0]
call fcn.00527790
mov esi, dword [ebp - 0x30]
mov ecx, edi
shl ecx, 4
add ecx, esi
movzx edx, word [ebx + ecx*2 + 0x323b0]
lea ecx, [ebx + ecx*2 + 0x323b0]
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30ca0]
add edx, eax
mov dword [ebx + 0x4d0], edx
mov dword [ebx + 0x4ec], 0xffffffff
xor edx, edx
mov dword [ebx + 0x4d8], edx
movzx eax, word [ecx]
movzx ecx, word [ebx + edi*2 + 0x32530]
xor eax, 0x7f0
xor ecx, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr ecx, 4
mov ecx, dword [ebx + ecx*4 + 0x30ca0]
add ecx, eax
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x3c], ecx
cmp byte [ebp - 0x31], al
jne 0x528291
mov eax, edi
shl eax, 4
add eax, esi
movzx eax, word [ebx + eax*2 + 0x32590]
movzx esi, word [ebx + edi*2 + 0x32548]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ca0]
add eax, ecx
cmp eax, dword [ebx + 0x4d0]
jae 0x528291
mov dword [ebx + 0x4d0], eax
mov dword [ebx + 0x4ec], edx
mov dword [ebx + 0x4d8], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x5282a2
mov eax, ecx
mov dword [ebp - 0x4c], ecx
jmp 0x5282a5
mov dword [ebp - 0x4c], eax
cmp eax, 2
jae 0x5282ca
mov ecx, dword [ebx + 0x4ec]
mov edx, dword [ebp - 0x7c]
pop esi
mov dword [edx], ecx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x4e8], edx
mov dword [ebx + 0x4c0], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x4c4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x4c8], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x4cc], ecx
lea ecx, [eax + eax*2]
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x4a0]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x528300
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x24]
cmp esi, 2
jb 0x528377
mov edx, dword [ebp - 0x30]
push edx
mov edx, dword [ebx + 0x3174c]
mov eax, edi
mov ecx, ebx
call fcn.00527d70
add eax, dword [ebp - 0x3c]
lea ecx, [esi + esi*2]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x110
add eax, esi
add esp, 4
add ecx, ecx
lea eax, [ebx + eax*4 + 0x37658]
lea ecx, [ebx + ecx*8 + 0x4bc]
mov edx, dword [eax]
add edx, dword [ebp - 0x5c]
cmp edx, dword [ecx - 0x1c]
jae 0x52836b
mov dword [ecx - 0x1c], edx
xor edx, edx
mov dword [ecx - 4], edx
mov dword [ecx], edi
mov dword [ecx - 0x14], edx
dec esi
sub eax, 4
sub ecx, 0x30
cmp esi, 2
jae 0x528354
inc edi
cmp edi, 4
jb 0x528311
mov edx, dword [ebx + 0x3174c]
movzx eax, word [ebx + edx*2 + 0x32530]
mov ecx, dword [ebp - 0x24]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp ecx, 2
jb 0x5283a6
inc ecx
jmp 0x5283ab
mov ecx, 2
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp - 0x2c]
ja 0x5284ab
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp ecx, dword [ebx + 0x30ea0]
jbe 0x5283d3
add edx, 2
cmp ecx, dword [ebx + edx*4 + 0x30ea0]
ja 0x5283c4
mov dword [ebp - 0x2c], edx
mov esi, dword [ebp - 0x30]
imul esi, esi, 0x110
add esi, ecx
lea esi, [ebx + esi*4 + 0x32e10]
mov dword [ebp - 0x48], esi
lea esi, [ecx + ecx*2]
add esi, esi
lea edi, [ebx + esi*8 + 0x4bc]
mov esi, dword [ebx + edx*4 + 0x30ea4]
mov edx, dword [ebp - 0x48]
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x5c], edi
lea eax, [ecx - 2]
cmp ecx, 5
jb 0x528412
mov eax, 3
cmp esi, 0x80
jae 0x528428
shl eax, 7
add eax, esi
add edx, dword [ebx + eax*4 + 0x31b50]
jmp 0x528469
mov ecx, 0x1ffff
sub ecx, esi
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edi, esi
shr edi, cl
shl eax, 5
add eax, ecx
mov ecx, esi
movzx edi, byte [edi + ebx + 0x304a0]
lea eax, [edi + eax*2 + 0xc5d4]
mov eax, dword [ebx + eax*4]
mov edi, dword [ebp - 0x5c]
and ecx, 0xf
add eax, dword [ebx + ecx*4 + 0x32350]
mov ecx, dword [ebp - 0x50]
add edx, eax
cmp edx, dword [edi - 0x1c]
jae 0x52847e
xor eax, eax
add esi, 4
mov dword [edi - 0x1c], edx
mov dword [edi - 4], eax
mov dword [edi], esi
mov dword [edi - 0x14], eax
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [ebx + eax*4 + 0x30ea0]
jne 0x528495
add eax, 2
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x38]
je 0x5284ab
add dword [ebp - 0x48], 4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x50], ecx
add edi, 0x30
jmp 0x5283f4
mov edi, 1
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x4c], edi
je 0x529136
lea esp, [esp]
lea ecx, [ebp - 0x5c]
push ecx
mov esi, ebx
call fcn.00527cd0
add esp, 4
mov dword [ebp - 0x50], eax
cmp eax, dword [ebx + 0x31734]
jae 0x529124
inc dword [ebp - 0x74]
lea esi, [edi + edi*2]
shl esi, 4
mov ecx, dword [esi + ebx + 0x4a8]
mov eax, dword [esi + ebx + 0x4b8]
add esi, ebx
mov dword [ebp - 0x54], esi
test ecx, ecx
je 0x528557
dec eax
cmp dword [esi + 0x4ac], 0
je 0x528542
mov ecx, dword [esi + 0x4b0]
lea ecx, [ecx + ecx*2]
add ecx, ecx
cmp dword [esi + 0x4b4], 4
mov ecx, dword [ebx + ecx*8 + 0x4a4]
jae 0x528532
mov ecx, dword [ecx*4 + 0x564f1c]
mov edx, dword [ecx*4 + 0x564ebc]
jmp 0x528563
mov ecx, dword [ecx*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov edx, dword [ecx*4 + 0x564ebc]
jmp 0x528563
lea edx, [eax + eax*2]
add edx, edx
mov ecx, dword [ebx + edx*8 + 0x4a4]
mov edx, dword [ecx*4 + 0x564ebc]
jmp 0x528563
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, dword [ebx + ecx*8 + 0x4a4]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x528591
cmp dword [esi + 0x4bc], 0
jne 0x528582
mov edx, dword [edx*4 + 0x564f4c]
mov dword [ebp - 0x58], edx
jmp 0x528632
mov eax, dword [edx*4 + 0x564ebc]
mov dword [ebp - 0x58], eax
jmp 0x528632
cmp dword [esi + 0x4a8], 0
je 0x5285bb
cmp dword [esi + 0x4ac], 0
je 0x5285bb
mov ecx, dword [esi + 0x4b4]
mov eax, dword [esi + 0x4b0]
mov edx, dword [edx*4 + 0x564f1c]
mov dword [ebp - 0x2c], ecx
jmp 0x5285e2
mov ecx, dword [esi + 0x4bc]
mov dword [ebp - 0x2c], ecx
cmp ecx, 4
jae 0x5285d8
mov ecx, dword [edx*4 + 0x564f1c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x5285e5
mov edx, dword [edx*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], edx
lea eax, [eax + eax*2]
add eax, eax
lea edx, [ebx + eax*8 + 0x4a0]
cmp ecx, 4
jae 0x52871b
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [ebp - 0x14], eax
mov eax, 1
cmp ecx, eax
jb 0x52861b
mov eax, dword [ebp - 0x2c]
inc eax
lea esi, [edx + 0x20]
lea edi, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jae 0x52862c
mov ecx, 4
lea edi, [ebp + eax*4 - 0x14]
lea esi, [edx + eax*4 + 0x20]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x4a4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x4c0], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x4c4], ecx
mov ecx, dword [esi + 0x4a0]
mov dword [esi + 0x4c8], edx
mov dword [esi + 0x4cc], eax
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
push edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], 0
call eax
movzx ecx, byte [eax - 1]
lea edx, [eax - 1]
mov eax, edx
sub eax, dword [ebp - 0x14]
mov byte [ebp - 0x25], cl
movzx ecx, byte [eax - 1]
dec eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x74]
and eax, dword [ebx + 0x323a8]
mov byte [ebp - 0x31], cl
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
shl ecx, 4
add eax, ecx
mov dword [ebp - 0x30], eax
movzx eax, word [ebx + eax*2 + 0x323b0]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
movzx edx, byte [edx - 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x32398]
mov ecx, 8
sub cl, al
shr edx, cl
mov ecx, dword [ebx + 0x323a4]
and ecx, dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x3c], ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
shl eax, cl
add edx, eax
imul edx, edx, 0x600
add edx, dword [ebx + 0x323ac]
cmp dword [ebp - 0x58], 7
jb 0x528738
movzx ecx, byte [ebp - 0x25]
lea eax, [ebx + 0x30ca0]
push eax
movzx eax, byte [ebp - 0x31]
push edx
call fcn.005277d0
add esp, 8
jmp 0x52878c
mov eax, dword [edx + 0x24]
add ecx, 0xfffffffc
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x528632
movzx eax, byte [ebp - 0x25]
or eax, 0x100
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
jmp 0x528750
mov ecx, eax
shr eax, 7
and eax, 1
shr ecx, 8
movzx ecx, word [edx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebx + eax*4 + 0x30ca0]
mov eax, dword [ebp - 0x40]
add eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp eax, 0x10000
jb 0x528750
mov eax, ecx
mov edx, dword [ebp - 0x2c]
add edx, eax
mov dword [ebp - 0x2c], edx
cmp edx, dword [esi + 0x4d0]
jae 0x5287c3
mov dword [esi + 0x4d0], edx
mov dword [esi + 0x4e8], edi
mov dword [esi + 0x4ec], 0xffffffff
mov dword [esi + 0x4d8], 0
mov dword [ebp - 0x38], 1
mov edx, dword [ebp - 0x30]
movzx eax, word [ebx + edx*2 + 0x323b0]
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x32530]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
add eax, dword [ebp - 0x48]
xor edx, 0x7f0
shr edx, 4
mov ecx, dword [ebx + edx*4 + 0x30ca0]
add ecx, eax
mov dword [ebp - 0x80], eax
mov al, byte [ebp - 0x31]
mov dword [ebp - 0x84], ecx
cmp al, byte [ebp - 0x25]
jne 0x528874
cmp dword [esi + 0x4e8], edi
jae 0x52881f
cmp dword [esi + 0x4ec], 0
je 0x528874
mov edx, dword [ebp - 0x58]
movzx eax, word [ebx + edx*2 + 0x32548]
mov edx, dword [ebp - 0x30]
movzx edx, word [ebx + edx*2 + 0x32590]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr edx, 4
add eax, dword [ebx + edx*4 + 0x30ca0]
add eax, ecx
cmp eax, dword [esi + 0x4d0]
ja 0x528874
mov dword [esi + 0x4d0], eax
xor eax, eax
mov dword [esi + 0x4e8], edi
mov dword [esi + 0x4ec], eax
mov dword [esi + 0x4d8], eax
mov dword [ebp - 0x38], 1
mov ecx, dword [ebx + 0x49c]
mov eax, 0xfff
sub eax, edi
mov dword [ebp - 0x48], ecx
cmp eax, ecx
jae 0x52888d
mov ecx, eax
mov dword [ebp - 0x48], eax
cmp ecx, 2
jb 0x529115
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebx + 0x31734]
mov dword [ebp - 0x60], ecx
cmp ecx, esi
jbe 0x5288a9
mov dword [ebp - 0x60], esi
cmp dword [ebp - 0x38], 0
jne 0x5289fc
mov al, byte [ebp - 0x25]
cmp byte [ebp - 0x31], al
je 0x5289fc
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
cmp eax, ecx
jbe 0x5288ce
mov eax, ecx
mov dword [ebp - 0x44], ecx
mov esi, 1
cmp eax, esi
jbe 0x5288f0
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea eax, [edx + 1]
sub ecx, edx
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x5288f0
inc esi
inc eax
cmp esi, dword [ebp - 0x44]
jb 0x5288e2
dec esi
mov dword [ebp - 0x38], esi
cmp esi, 2
jb 0x5289fc
mov eax, dword [ebp - 0x58]
mov eax, dword [eax*4 + 0x564ebc]
mov ecx, dword [ebp - 0x74]
mov edx, eax
shl edx, 4
inc ecx
and ecx, dword [ebx + 0x323a8]
mov dword [ebp - 0x40], eax
movzx eax, word [ebx + eax*2 + 0x32530]
add edx, ecx
mov dword [ebp - 0x3c], edx
movzx edx, word [ebx + edx*2 + 0x323b0]
xor edx, 0x7f0
xor eax, 0x7f0
shr edx, 4
shr eax, 4
mov dword [ebp - 0x64], edx
mov edx, dword [ebx + eax*4 + 0x30ca0]
mov eax, dword [ebp - 0x64]
add edx, dword [ebx + eax*4 + 0x30ca0]
mov eax, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2c]
lea esi, [esi + edi + 1]
mov dword [ebp - 0x44], esi
cmp eax, esi
jae 0x52898c
lea esi, [eax + eax*2]
add esi, esi
lea esi, [ebx + esi*8 + 0x4a0]
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x44]
sub esi, eax
add eax, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
add eax, 0x30
dec esi
mov dword [eax], 0x40000000
jne 0x528980
mov eax, dword [ebp - 0x3c]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32590]
mov esi, dword [ebp - 0x40]
movzx esi, word [ebx + esi*2 + 0x32548]
add ecx, dword [ebp - 0x38]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ca0]
add eax, dword [ebx + ecx*4 + 0x37658]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x4a0]
lea ecx, [ebx + ecx*8 + 0x4a0]
jae 0x5289fc
mov dword [ecx], eax
xor eax, eax
lea edx, [edi + 1]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x2c], 0
lea ebx, [ebx]
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [esi]
mov eax, esi
sub eax, dword [ebp + ecx*4 - 0x14]
dec eax
mov dword [ebp - 0x38], eax
cmp dl, byte [eax]
jne 0x528d11
mov edx, dword [ebp - 0x38]
mov eax, esi
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x528d11
mov esi, 2
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x60], esi
jbe 0x528a63
mov ecx, dword [ebp - 0x38]
mov edx, eax
lea eax, [edx + 2]
sub ecx, edx
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x528a60
inc esi
inc eax
cmp esi, dword [ebp - 0x60]
jb 0x528a52
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x4c]
lea eax, [esi + edi]
cmp edx, eax
jae 0x528a8c
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebx + ecx*8 + 0x4a0]
mov dword [ebp - 0x4c], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x528a80
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x58]
mov ecx, ebx
mov dword [ebp - 0x3c], esi
call fcn.00527d70
mov ecx, dword [ebp - 0x54]
add eax, dword [ebp - 0x84]
imul ecx, ecx, 0x110
mov dword [ebp - 0x78], ecx
mov edx, esi
add ecx, edx
lea ecx, [ebx + ecx*4 + 0x37658]
mov dword [ebp - 0x40], ecx
lea ecx, [edx + edi]
lea edx, [ecx + ecx*2]
add esp, 4
add edx, edx
mov dword [ebp - 0x70], eax
lea ecx, [ebx + edx*8 + 0x4bc]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x528af6
mov dword [ecx - 0x1c], edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx - 4], edi
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
dec dword [ebp - 0x30]
sub dword [ebp - 0x40], 4
sub ecx, 0x30
cmp dword [ebp - 0x30], 2
jae 0x528ad8
cmp dword [ebp - 0x2c], 0
jne 0x528b12
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebx + 0x31734]
mov edx, dword [ebp - 0x48]
lea eax, [esi + 1]
add ecx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], ecx
cmp ecx, edx
jbe 0x528b2f
mov ecx, edx
mov dword [ebp - 0x40], edx
cmp eax, ecx
jae 0x528b54
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x38]
add ecx, eax
sub edx, dword [ebp - 0x68]
mov edi, edi
mov al, byte [ecx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x30]
jne 0x528b54
inc eax
inc ecx
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x40]
jb 0x528b40
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
mov dword [ebp - 0x30], eax
cmp eax, 2
jb 0x528d11
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x32398]
add eax, esi
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x30ca0]
push eax
movzx eax, byte [esi + ecx]
mov ecx, dword [ebp - 0x68]
movzx edi, byte [esi + ecx]
movzx esi, byte [esi + ecx - 1]
mov ecx, 8
sub cl, dl
shr esi, cl
mov ecx, dword [ebp - 0x40]
and ecx, dword [ebx + 0x323a4]
mov dword [ebp - 0x64], ecx
mov ecx, edx
mov edx, dword [ebp - 0x64]
shl edx, cl
mov ecx, edi
add esi, edx
imul esi, esi, 0x600
add esi, dword [ebx + 0x323ac]
push esi
call fcn.005277d0
mov edx, dword [ebp - 0x58]
mov edx, dword [edx*4 + 0x564f1c]
mov edi, dword [ebx + 0x323a8]
mov ecx, dword [ebp - 0x40]
and ecx, edi
mov esi, edx
mov edx, dword [edx*4 + 0x564ebc]
shl esi, 4
add ecx, esi
movzx ecx, word [ebx + ecx*2 + 0x323b0]
mov esi, dword [ebp - 0x3c]
shr ecx, 4
add eax, dword [ebx + ecx*4 + 0x30ca0]
mov ecx, dword [ebp - 0x78]
add ecx, esi
add eax, dword [ebx + ecx*4 + 0x37658]
mov ecx, dword [ebp - 0x74]
add eax, dword [ebp - 0x70]
lea ecx, [ecx + esi + 1]
and ecx, edi
mov edi, edx
shl edi, 4
add edi, ecx
mov dword [ebp - 0x64], edx
movzx edx, word [ebx + edx*2 + 0x32530]
mov dword [ebp - 0x78], edi
movzx edi, word [ebx + edi*2 + 0x323b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30ca0]
xor edi, 0x7f0
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30ca0]
mov edi, dword [ebp - 0x6c]
add edx, eax
mov eax, dword [ebp - 0x30]
add eax, esi
lea eax, [eax + edi + 1]
mov edi, dword [ebp - 0x4c]
add esp, 8
mov dword [ebp - 0x3c], eax
cmp edi, eax
jae 0x528c91
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x4a0]
mov dword [ebp - 0x70], edi
mov edi, dword [ebp - 0x4c]
sub eax, edi
add edi, eax
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x70]
add edi, 0x30
dec eax
mov dword [edi], 0x40000000
jne 0x528c85
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32590]
mov edi, dword [ebp - 0x64]
movzx edi, word [ebx + edi*2 + 0x32548]
add ecx, dword [ebp - 0x30]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30ca0]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37658]
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x4a0]
lea ecx, [ebx + ecx*8 + 0x4a0]
jae 0x528d11
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x2c]
lea edx, [esi + edi + 1]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jb 0x528a10
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
cmp edx, ecx
jbe 0x528d59
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x50], edx
cmp ecx, dword [ebx + 0x30ea0]
jbe 0x528d4c
lea ebx, [ebx]
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x30ea0]
ja 0x528d40
mov dword [ebx + eax*4 + 0x30ea0], ecx
add eax, 2
mov dword [ebp - 0x5c], eax
cmp edx, dword [ebp - 0x44]
jb 0x529115
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x32530]
mov ecx, dword [ebp - 0x4c]
shr edx, 4
mov eax, dword [ebx + edx*4 + 0x30ca0]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
add eax, edi
cmp ecx, eax
jae 0x528dac
lea edx, [ecx + ecx*2]
add edx, edx
sub eax, ecx
add ecx, eax
lea edx, [ebx + edx*8 + 0x4a0]
mov dword [ebp - 0x4c], ecx
lea esp, [esp]
add edx, 0x30
dec eax
mov dword [edx], 0x40000000
jne 0x528da0
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], eax
cmp edx, dword [ebx + 0x30ea0]
jbe 0x528dcf
lea esp, [esp]
add eax, 2
cmp edx, dword [ebx + eax*4 + 0x30ea0]
ja 0x528dc0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + eax*4 + 0x30ea4]
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov esi, eax
shr esi, cl
mov dword [ebp - 0x50], eax
movzx esi, byte [esi + ebx + 0x304a0]
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x110
add ecx, edx
lea ecx, [ebx + ecx*4 + 0x32e10]
mov dword [ebp - 0x54], ecx
lea ecx, [edx + edi]
lea esi, [edx + 1]
lea edx, [ecx + ecx*2]
add edx, edx
lea ecx, [ebx + edx*8 + 0x4bc]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x54]
mov edx, dword [edx]
add edx, dword [ebp - 0x80]
lea ecx, [esi - 1]
cmp ecx, 5
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
lea ecx, [esi - 3]
jb 0x528e45
mov ecx, 3
cmp eax, 0x80
jae 0x528e5a
shl ecx, 7
add ecx, eax
add edx, dword [ebx + ecx*4 + 0x31b50]
jmp 0x528e78
shl ecx, 6
add ecx, dword [ebp - 0x60]
mov edx, eax
mov ecx, dword [ebx + ecx*4 + 0x31750]
and edx, 0xf
add ecx, dword [ebx + edx*4 + 0x32350]
mov edx, dword [ebp - 0x38]
add edx, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
cmp edx, dword [ecx - 0x1c]
jae 0x528e95
mov dword [ecx - 0x1c], edx
lea edx, [eax + 4]
mov dword [ecx - 4], edi
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
mov edx, dword [ebp - 0x30]
lea ecx, [esi - 1]
cmp ecx, dword [ebx + edx*4 + 0x30ea0]
jne 0x529107
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebx + 0x31734]
add eax, esi
dec ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x40], eax
cmp eax, edx
jbe 0x528ec8
mov eax, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x528efd
mov edx, dword [ebp - 0x68]
sub edx, ecx
lea eax, [ecx + esi]
mov dword [ebp - 0x70], edx
jmp 0x528ee6
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x528efd
mov edx, dword [ebp - 0x2c]
inc edx
inc eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x78], eax
cmp edx, dword [ebp - 0x40]
jb 0x528ee0
or edx, 0xffffffff
lea eax, [esi - 1]
sub edx, eax
mov eax, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x2c], eax
cmp eax, 2
jb 0x5290c1
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x323a8]
lea edx, [edx + esi - 1]
and eax, edx
mov dword [ebp - 0x78], eax
lea eax, [ebx + 0x30ca0]
push eax
movzx eax, byte [ecx + esi - 1]
mov ecx, dword [ebp - 0x68]
movzx edi, byte [esi + ecx - 1]
movzx esi, byte [ecx + esi - 2]
mov dword [ebp - 0x70], edx
mov edx, dword [ebx + 0x32398]
mov ecx, 8
sub cl, dl
mov edx, dword [ebx + 0x323a4]
and edx, dword [ebp - 0x70]
shr esi, cl
mov ecx, dword [ebx + 0x32398]
shl edx, cl
mov ecx, edi
add esi, edx
imul esi, esi, 0x600
add esi, dword [ebx + 0x323ac]
push esi
call fcn.005277d0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov ecx, dword [ebp - 0x78]
mov esi, edx
mov edx, dword [edx*4 + 0x564ebc]
movzx edi, word [ebx + edx*2 + 0x32530]
shl esi, 4
add esi, ecx
movzx esi, word [ebx + esi*2 + 0x323b0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ca0]
mov esi, edx
add eax, dword [ebp - 0x38]
shl esi, 4
inc ecx
and ecx, dword [ebx + 0x323a8]
xor edi, 0x7f0
add esi, ecx
mov dword [ebp - 0x78], esi
movzx esi, word [ebx + esi*2 + 0x323b0]
xor esi, 0x7f0
shr esi, 4
mov dword [ebp - 0x84], edx
mov edx, dword [ebx + esi*4 + 0x30ca0]
mov esi, dword [ebp - 0x3c]
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30ca0]
mov edi, dword [ebp - 0x6c]
add edx, eax
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi - 1]
lea eax, [eax + edi + 1]
mov edi, dword [ebp - 0x4c]
add esp, 8
mov dword [ebp - 0x64], eax
cmp edi, eax
jae 0x52903c
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x4a0]
mov dword [ebp - 0x70], edi
mov edi, dword [ebp - 0x4c]
sub eax, edi
add edi, eax
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x70]
lea ecx, [ecx]
add edi, 0x30
dec eax
mov dword [edi], 0x40000000
jne 0x529030
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32590]
mov edi, dword [ebp - 0x84]
movzx edi, word [ebx + edi*2 + 0x32548]
add ecx, dword [ebp - 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ca0]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30ca0]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37658]
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x4a0]
lea ecx, [ebx + ecx*8 + 0x4a0]
jae 0x5290c1
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x50]
lea edx, [esi + edi]
add eax, 4
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x5c]
je 0x529115
mov eax, dword [ebx + eax*4 + 0x30ea4]
mov dword [ebp - 0x50], eax
cmp eax, 0x80
jb 0x529107
mov edi, dword [ebp - 0x6c]
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edx, eax
shr edx, cl
movzx edx, byte [edx + ebx + 0x304a0]
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x60], ecx
add dword [ebp - 0x54], 4
add dword [ebp - 0x44], 0x30
inc esi
jmp 0x528e27
inc edi
mov dword [ebp - 0x6c], edi
cmp edi, dword [ebp - 0x4c]
jne 0x5284c0
jmp 0x529136
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x498], eax
mov dword [ebx + 0x494], ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, edi
mov ecx, ebx
call fcn.00527e30
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00521458
mov esp, ebp
pop ebp
ret