Function at 0x407510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x48c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
cmp dword [ebx + 0x488], ecx
je 0x40756f
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, dword [ebx + edx*8 + 0x4b4]
lea edx, [ebx + edx*8 + 0x49c]
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov dword [edi], ecx
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x48c], edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dae7
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
mov dword [ebx + 0x488], eax
mov dword [ebx + 0x48c], eax
cmp dword [ebx + 0x31734], eax
jne 0x407599
lea eax, [ebp - 0x38]
push eax
mov esi, ebx
call fcn.00407250
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x4075ab
mov ecx, dword [ebx + 0x490]
mov edx, dword [ebx + 0x494]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebx + 0x498]
mov dword [ebp - 0x60], eax
cmp eax, 2
jae 0x4075d4
pop esi
mov dword [edi], 0xffffffff
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dae7
mov esp, ebp
pop ebp
ret
cmp eax, 0x111
jbe 0x4075e2
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 0x407610
lea edi, [edx*4]
mov eax, dword [edi + ebx + 0x31738]
mov ecx, esi
sub ecx, eax
mov dword [ebp + edi - 0x14], eax
mov al, byte [ebp - 0x25]
dec ecx
cmp al, byte [ecx]
jne 0x407674
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x407674
mov eax, 2
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x60], eax
jbe 0x40765f
lea edx, [esi + 2]
sub ecx, esi
mov al, byte [edx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x50]
jne 0x40765c
inc eax
inc edx
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x60]
jb 0x407648
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + edi - 0x24], eax
cmp eax, dword [ebp + ecx - 0x24]
jbe 0x40767c
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edi
jmp 0x40767c
mov dword [ebp + edi - 0x24], 0
inc edx
mov dword [ebp - 0x48], edx
cmp edx, 4
jb 0x407610
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebx + 0x31730]
mov dword [ebp - 0x5c], edi
cmp edi, ecx
jb 0x4076ca
mov edx, dword [ebp - 0x7c]
mov dword [edx], eax
lea eax, [edi - 1]
test eax, eax
je 0x4076b8
add dword [ebx + 0x31734], 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.0040dae7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jb 0x407714
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + edx*4 + 0x30e98]
mov edx, dword [ebp - 0x7c]
add ecx, 4
mov dword [edx], ecx
lea ecx, [eax - 1]
test ecx, ecx
je 0x408736
mov eax, dword [ebx + 0x18]
add dword [ebx + 0x31734], 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.0040dae7
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 0x40774c
cmp byte [ebp - 0x25], cl
je 0x40774c
cmp edi, 2
jae 0x40774c
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.0040dae7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
mov edi, dword [ebx + 0x31748]
mov eax, edx
and eax, dword [ebx + 0x323a4]
mov dword [ebx + 0x4a0], edi
movzx esi, byte [esi - 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x32394]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebx + 0x323a0]
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 + 0x323a8]
cmp edi, 7
jb 0x4077b8
lea eax, [ebx + 0x30c9c]
push eax
movzx eax, byte [ebp - 0x31]
push esi
call fcn.00406c70
add esp, 8
jmp 0x4077c3
lea edx, [ebx + 0x30c9c]
call fcn.00406c30
mov esi, dword [ebp - 0x30]
mov ecx, edi
shl ecx, 4
add ecx, esi
movzx edx, word [ebx + ecx*2 + 0x323ac]
lea ecx, [ebx + ecx*2 + 0x323ac]
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30c9c]
add edx, eax
mov dword [ebx + 0x4cc], edx
mov dword [ebx + 0x4e8], 0xffffffff
xor edx, edx
mov dword [ebx + 0x4d4], edx
movzx eax, word [ecx]
movzx ecx, word [ebx + edi*2 + 0x3252c]
xor eax, 0x7f0
xor ecx, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr ecx, 4
mov ecx, dword [ebx + ecx*4 + 0x30c9c]
add ecx, eax
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x3c], ecx
cmp byte [ebp - 0x31], al
jne 0x407881
mov eax, edi
shl eax, 4
add eax, esi
movzx eax, word [ebx + eax*2 + 0x3258c]
movzx esi, word [ebx + edi*2 + 0x32544]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30c9c]
add eax, ecx
cmp eax, dword [ebx + 0x4cc]
jae 0x407881
mov dword [ebx + 0x4cc], eax
mov dword [ebx + 0x4e8], edx
mov dword [ebx + 0x4d4], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x407892
mov eax, ecx
mov dword [ebp - 0x4c], ecx
jmp 0x407895
mov dword [ebp - 0x4c], eax
cmp eax, 2
jae 0x4078ba
mov ecx, dword [ebx + 0x4e8]
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.0040dae7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x4e4], edx
mov dword [ebx + 0x4bc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x4c0], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x4c4], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x4c8], ecx
lea ecx, [eax + eax*2]
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x49c]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x4078f0
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x24]
cmp esi, 2
jb 0x407967
mov edx, dword [ebp - 0x30]
push edx
mov edx, dword [ebx + 0x31748]
mov eax, edi
mov ecx, ebx
call fcn.00407330
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 + 0x37654]
lea ecx, [ebx + ecx*8 + 0x4b8]
mov edx, dword [eax]
add edx, dword [ebp - 0x5c]
cmp edx, dword [ecx - 0x1c]
jae 0x40795b
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 0x407944
inc edi
cmp edi, 4
jb 0x407901
mov edx, dword [ebx + 0x31748]
movzx eax, word [ebx + edx*2 + 0x3252c]
mov ecx, dword [ebp - 0x24]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp ecx, 2
jb 0x407996
inc ecx
jmp 0x40799b
mov ecx, 2
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp - 0x2c]
ja 0x407a9b
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp ecx, dword [ebx + 0x30e9c]
jbe 0x4079c3
add edx, 2
cmp ecx, dword [ebx + edx*4 + 0x30e9c]
ja 0x4079b4
mov dword [ebp - 0x2c], edx
mov esi, dword [ebp - 0x30]
imul esi, esi, 0x110
add esi, ecx
lea esi, [ebx + esi*4 + 0x32e0c]
mov dword [ebp - 0x48], esi
lea esi, [ecx + ecx*2]
add esi, esi
lea edi, [ebx + esi*8 + 0x4b8]
mov esi, dword [ebx + edx*4 + 0x30ea0]
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 0x407a02
mov eax, 3
cmp esi, 0x80
jae 0x407a18
shl eax, 7
add eax, esi
add edx, dword [ebx + eax*4 + 0x31b4c]
jmp 0x407a59
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 + 0x3049c]
lea eax, [edi + eax*2]
mov eax, dword [ebx + eax*4 + 0x3174c]
mov edi, dword [ebp - 0x5c]
and ecx, 0xf
add eax, dword [ebx + ecx*4 + 0x3234c]
mov ecx, dword [ebp - 0x50]
add edx, eax
cmp edx, dword [edi - 0x1c]
jae 0x407a6e
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 + 0x30e9c]
jne 0x407a85
add eax, 2
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x38]
je 0x407a9b
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 0x4079e4
mov edi, 1
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x4c], edi
je 0x408726
lea esp, [esp]
lea ecx, [ebp - 0x5c]
push ecx
mov esi, ebx
call fcn.00407250
add esp, 4
mov dword [ebp - 0x50], eax
cmp eax, dword [ebx + 0x31730]
jae 0x408714
inc dword [ebp - 0x74]
lea esi, [edi + edi*2]
shl esi, 4
mov ecx, dword [esi + ebx + 0x4a4]
mov eax, dword [esi + ebx + 0x4b4]
add esi, ebx
mov dword [ebp - 0x54], esi
test ecx, ecx
je 0x407b47
dec eax
cmp dword [esi + 0x4a8], 0
je 0x407b32
mov ecx, dword [esi + 0x4ac]
lea ecx, [ecx + ecx*2]
add ecx, ecx
cmp dword [esi + 0x4b0], 4
mov ecx, dword [ebx + ecx*8 + 0x4a0]
jae 0x407b22
mov ecx, dword [ecx*4 + 0x428258]
mov edx, dword [ecx*4 + 0x4281f8]
jmp 0x407b53
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 + 0x4281f8]
jmp 0x407b53
lea edx, [eax + eax*2]
add edx, edx
mov ecx, dword [ebx + edx*8 + 0x4a0]
mov edx, dword [ecx*4 + 0x4281f8]
jmp 0x407b53
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, dword [ebx + ecx*8 + 0x4a0]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x407b81
cmp dword [esi + 0x4b8], 0
jne 0x407b72
mov edx, dword [edx*4 + 0x428288]
mov dword [ebp - 0x58], edx
jmp 0x407c22
mov eax, dword [edx*4 + 0x4281f8]
mov dword [ebp - 0x58], eax
jmp 0x407c22
cmp dword [esi + 0x4a4], 0
je 0x407bab
cmp dword [esi + 0x4a8], 0
je 0x407bab
mov ecx, dword [esi + 0x4b0]
mov eax, dword [esi + 0x4ac]
mov edx, dword [edx*4 + 0x428258]
mov dword [ebp - 0x2c], ecx
jmp 0x407bd2
mov ecx, dword [esi + 0x4b8]
mov dword [ebp - 0x2c], ecx
cmp ecx, 4
jae 0x407bc8
mov ecx, dword [edx*4 + 0x428258]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x407bd5
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 + 0x49c]
cmp ecx, 4
jae 0x407d0b
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [ebp - 0x14], eax
mov eax, 1
cmp ecx, eax
jb 0x407c0b
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 0x407c1c
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 + 0x4a0], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x4bc], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x4c0], ecx
mov ecx, dword [esi + 0x49c]
mov dword [esi + 0x4c4], edx
mov dword [esi + 0x4c8], 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 + 0x323a4]
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 + 0x323ac]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
movzx edx, byte [edx - 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x32394]
mov ecx, 8
sub cl, al
shr edx, cl
mov ecx, dword [ebx + 0x323a0]
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 + 0x323a8]
cmp dword [ebp - 0x58], 7
jb 0x407d28
movzx ecx, byte [ebp - 0x25]
lea eax, [ebx + 0x30c9c]
push eax
movzx eax, byte [ebp - 0x31]
push edx
call fcn.00406c70
add esp, 8
jmp 0x407d7c
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 0x407c22
movzx eax, byte [ebp - 0x25]
or eax, 0x100
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
jmp 0x407d40
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 + 0x30c9c]
mov eax, dword [ebp - 0x40]
add eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp eax, 0x10000
jb 0x407d40
mov eax, ecx
mov edx, dword [ebp - 0x2c]
add edx, eax
mov dword [ebp - 0x2c], edx
cmp edx, dword [esi + 0x4cc]
jae 0x407db3
mov dword [esi + 0x4cc], edx
mov dword [esi + 0x4e4], edi
mov dword [esi + 0x4e8], 0xffffffff
mov dword [esi + 0x4d4], 0
mov dword [ebp - 0x38], 1
mov edx, dword [ebp - 0x30]
movzx eax, word [ebx + edx*2 + 0x323ac]
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x3252c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
add eax, dword [ebp - 0x48]
xor edx, 0x7f0
shr edx, 4
mov ecx, dword [ebx + edx*4 + 0x30c9c]
add ecx, eax
mov dword [ebp - 0x80], eax
mov al, byte [ebp - 0x31]
mov dword [ebp - 0x84], ecx
cmp al, byte [ebp - 0x25]
jne 0x407e64
cmp dword [esi + 0x4e4], edi
jae 0x407e0f
cmp dword [esi + 0x4e8], 0
je 0x407e64
mov edx, dword [ebp - 0x58]
movzx eax, word [ebx + edx*2 + 0x32544]
mov edx, dword [ebp - 0x30]
movzx edx, word [ebx + edx*2 + 0x3258c]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr edx, 4
add eax, dword [ebx + edx*4 + 0x30c9c]
add eax, ecx
cmp eax, dword [esi + 0x4cc]
ja 0x407e64
mov dword [esi + 0x4cc], eax
xor eax, eax
mov dword [esi + 0x4e4], edi
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4d4], eax
mov dword [ebp - 0x38], 1
mov ecx, dword [ebx + 0x498]
mov eax, 0xfff
sub eax, edi
mov dword [ebp - 0x48], ecx
cmp eax, ecx
jae 0x407e7d
mov ecx, eax
mov dword [ebp - 0x48], eax
cmp ecx, 2
jb 0x408705
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebx + 0x31730]
mov dword [ebp - 0x60], ecx
cmp ecx, esi
jbe 0x407e99
mov dword [ebp - 0x60], esi
cmp dword [ebp - 0x38], 0
jne 0x407fec
mov al, byte [ebp - 0x25]
cmp byte [ebp - 0x31], al
je 0x407fec
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
cmp eax, ecx
jbe 0x407ebe
mov eax, ecx
mov dword [ebp - 0x44], ecx
mov esi, 1
cmp eax, esi
jbe 0x407ee0
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 0x407ee0
inc esi
inc eax
cmp esi, dword [ebp - 0x44]
jb 0x407ed2
dec esi
mov dword [ebp - 0x38], esi
cmp esi, 2
jb 0x407fec
mov eax, dword [ebp - 0x58]
mov eax, dword [eax*4 + 0x4281f8]
mov ecx, dword [ebp - 0x74]
mov edx, eax
shl edx, 4
inc ecx
and ecx, dword [ebx + 0x323a4]
mov dword [ebp - 0x40], eax
movzx eax, word [ebx + eax*2 + 0x3252c]
add edx, ecx
mov dword [ebp - 0x3c], edx
movzx edx, word [ebx + edx*2 + 0x323ac]
xor edx, 0x7f0
xor eax, 0x7f0
shr edx, 4
shr eax, 4
mov dword [ebp - 0x64], edx
mov edx, dword [ebx + eax*4 + 0x30c9c]
mov eax, dword [ebp - 0x64]
add edx, dword [ebx + eax*4 + 0x30c9c]
mov eax, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2c]
lea esi, [esi + edi + 1]
mov dword [ebp - 0x44], esi
cmp eax, esi
jae 0x407f7c
lea esi, [eax + eax*2]
add esi, esi
lea esi, [ebx + esi*8 + 0x49c]
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 0x407f70
mov eax, dword [ebp - 0x3c]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x3258c]
mov esi, dword [ebp - 0x40]
movzx esi, word [ebx + esi*2 + 0x32544]
add ecx, dword [ebp - 0x38]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30c9c]
add eax, dword [ebx + ecx*4 + 0x37654]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x49c]
lea ecx, [ebx + ecx*8 + 0x49c]
jae 0x407fec
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 0x408301
mov edx, dword [ebp - 0x38]
mov eax, esi
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x408301
mov esi, 2
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x60], esi
jbe 0x408053
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 0x408050
inc esi
inc eax
cmp esi, dword [ebp - 0x60]
jb 0x408042
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x4c]
lea eax, [esi + edi]
cmp edx, eax
jae 0x40807c
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebx + ecx*8 + 0x49c]
mov dword [ebp - 0x4c], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x408070
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.00407330
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 + 0x37654]
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 + 0x4b8]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x4080e6
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 0x4080c8
cmp dword [ebp - 0x2c], 0
jne 0x408102
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebx + 0x31730]
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 0x40811f
mov ecx, edx
mov dword [ebp - 0x40], edx
cmp eax, ecx
jae 0x408144
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 0x408144
inc eax
inc ecx
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x40]
jb 0x408130
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
mov dword [ebp - 0x30], eax
cmp eax, 2
jb 0x408301
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x32394]
add eax, esi
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x30c9c]
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 + 0x323a0]
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 + 0x323a8]
push esi
call fcn.00406c70
mov edx, dword [ebp - 0x58]
mov edx, dword [edx*4 + 0x428258]
mov edi, dword [ebx + 0x323a4]
mov ecx, dword [ebp - 0x40]
and ecx, edi
mov esi, edx
mov edx, dword [edx*4 + 0x4281f8]
shl esi, 4
add ecx, esi
movzx ecx, word [ebx + ecx*2 + 0x323ac]
mov esi, dword [ebp - 0x3c]
shr ecx, 4
add eax, dword [ebx + ecx*4 + 0x30c9c]
mov ecx, dword [ebp - 0x78]
add ecx, esi
add eax, dword [ebx + ecx*4 + 0x37654]
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 + 0x3252c]
mov dword [ebp - 0x78], edi
movzx edi, word [ebx + edi*2 + 0x323ac]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30c9c]
xor edi, 0x7f0
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30c9c]
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 0x408281
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x49c]
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 0x408275
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x3258c]
mov edi, dword [ebp - 0x64]
movzx edi, word [ebx + edi*2 + 0x32544]
add ecx, dword [ebp - 0x30]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30c9c]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37654]
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x49c]
lea ecx, [ebx + ecx*8 + 0x49c]
jae 0x408301
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 0x408000
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
cmp edx, ecx
jbe 0x408349
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x50], edx
cmp ecx, dword [ebx + 0x30e9c]
jbe 0x40833c
lea ebx, [ebx]
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x30e9c]
ja 0x408330
mov dword [ebx + eax*4 + 0x30e9c], ecx
add eax, 2
mov dword [ebp - 0x5c], eax
cmp edx, dword [ebp - 0x44]
jb 0x408705
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x3252c]
mov ecx, dword [ebp - 0x4c]
shr edx, 4
mov eax, dword [ebx + edx*4 + 0x30c9c]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
add eax, edi
cmp ecx, eax
jae 0x40839c
lea edx, [ecx + ecx*2]
add edx, edx
sub eax, ecx
add ecx, eax
lea edx, [ebx + edx*8 + 0x49c]
mov dword [ebp - 0x4c], ecx
lea esp, [esp]
add edx, 0x30
dec eax
mov dword [edx], 0x40000000
jne 0x408390
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], eax
cmp edx, dword [ebx + 0x30e9c]
jbe 0x4083bf
lea esp, [esp]
add eax, 2
cmp edx, dword [ebx + eax*4 + 0x30e9c]
ja 0x4083b0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + eax*4 + 0x30ea0]
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 + 0x3049c]
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 + 0x32e0c]
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 + 0x4b8]
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 0x408435
mov ecx, 3
cmp eax, 0x80
jae 0x40844a
shl ecx, 7
add ecx, eax
add edx, dword [ebx + ecx*4 + 0x31b4c]
jmp 0x408468
shl ecx, 6
add ecx, dword [ebp - 0x60]
mov edx, eax
mov ecx, dword [ebx + ecx*4 + 0x3174c]
and edx, 0xf
add ecx, dword [ebx + edx*4 + 0x3234c]
mov edx, dword [ebp - 0x38]
add edx, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
cmp edx, dword [ecx - 0x1c]
jae 0x408485
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 + 0x30e9c]
jne 0x4086f7
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebx + 0x31730]
add eax, esi
dec ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x40], eax
cmp eax, edx
jbe 0x4084b8
mov eax, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x4084ed
mov edx, dword [ebp - 0x68]
sub edx, ecx
lea eax, [ecx + esi]
mov dword [ebp - 0x70], edx
jmp 0x4084d6
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x4084ed
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 0x4084d0
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 0x4086b1
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x323a4]
lea edx, [edx + esi - 1]
and eax, edx
mov dword [ebp - 0x78], eax
lea eax, [ebx + 0x30c9c]
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 + 0x32394]
mov ecx, 8
sub cl, dl
mov edx, dword [ebx + 0x323a0]
and edx, dword [ebp - 0x70]
shr esi, cl
mov ecx, dword [ebx + 0x32394]
shl edx, cl
mov ecx, edi
add esi, edx
imul esi, esi, 0x600
add esi, dword [ebx + 0x323a8]
push esi
call fcn.00406c70
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 + 0x4281f8]
movzx edi, word [ebx + edx*2 + 0x3252c]
shl esi, 4
add esi, ecx
movzx esi, word [ebx + esi*2 + 0x323ac]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30c9c]
mov esi, edx
add eax, dword [ebp - 0x38]
shl esi, 4
inc ecx
and ecx, dword [ebx + 0x323a4]
xor edi, 0x7f0
add esi, ecx
mov dword [ebp - 0x78], esi
movzx esi, word [ebx + esi*2 + 0x323ac]
xor esi, 0x7f0
shr esi, 4
mov dword [ebp - 0x84], edx
mov edx, dword [ebx + esi*4 + 0x30c9c]
mov esi, dword [ebp - 0x3c]
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30c9c]
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 0x40862c
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x49c]
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 0x408620
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x3258c]
mov edi, dword [ebp - 0x84]
movzx edi, word [ebx + edi*2 + 0x32544]
add ecx, dword [ebp - 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30c9c]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30c9c]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37654]
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x49c]
lea ecx, [ebx + ecx*8 + 0x49c]
jae 0x4086b1
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 0x408705
mov eax, dword [ebx + eax*4 + 0x30ea0]
mov dword [ebp - 0x50], eax
cmp eax, 0x80
jb 0x4086f7
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 + 0x3049c]
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x60], ecx
add dword [ebp - 0x54], 4
add dword [ebp - 0x44], 0x30
inc esi
jmp 0x408417
inc edi
mov dword [ebp - 0x6c], edi
cmp edi, dword [ebp - 0x4c]
jne 0x407ab0
jmp 0x408726
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x494], eax
mov dword [ebx + 0x490], ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, edi
mov ecx, ebx
call fcn.00407420
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.0040dae7
mov esp, ebp
pop ebp
ret