Function at 0x405ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x690]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
cmp dword [ebx + 0x68c], ecx
je 0x405eff
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, dword [ebx + edx*8 + 0x6b8]
lea edx, [ebx + edx*8 + 0x6a0]
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov dword [edi], ecx
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x690], edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
mov dword [ebx + 0x68c], eax
mov dword [ebx + 0x690], eax
cmp dword [ebx + 0x31938], eax
jne 0x405f29
lea eax, [ebp - 0x38]
push eax
mov esi, ebx
call fcn.00405c60
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x405f3b
mov ecx, dword [ebx + 0x694]
mov edx, dword [ebx + 0x698]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebx + 0x69c]
mov dword [ebp - 0x60], eax
cmp eax, 2
jae 0x405f64
pop esi
mov dword [edi], 0xffffffff
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
cmp eax, 0x111
jbe 0x405f72
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 0x405fa0
lea edi, [edx*4]
mov eax, dword [edi + ebx + 0x3193c]
mov ecx, esi
sub ecx, eax
mov dword [ebp + edi - 0x14], eax
mov al, byte [ebp - 0x25]
dec ecx
cmp al, byte [ecx]
jne 0x406004
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x406004
mov eax, 2
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x60], eax
jbe 0x405fef
lea edx, [esi + 2]
sub ecx, esi
mov al, byte [edx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x50]
jne 0x405fec
inc eax
inc edx
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x60]
jb 0x405fd8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + edi - 0x24], eax
cmp eax, dword [ebp + ecx - 0x24]
jbe 0x40600c
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], edi
jmp 0x40600c
mov dword [ebp + edi - 0x24], 0
inc edx
mov dword [ebp - 0x48], edx
cmp edx, 4
jb 0x405fa0
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebx + 0x31934]
mov dword [ebp - 0x5c], edi
cmp edi, ecx
jb 0x40605a
mov edx, dword [ebp - 0x7c]
mov dword [edx], eax
lea eax, [edi - 1]
test eax, eax
je 0x406048
add dword [ebx + 0x31938], 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.005332ca
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jb 0x4060a4
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + edx*4 + 0x3109c]
mov edx, dword [ebp - 0x7c]
add ecx, 4
mov dword [edx], ecx
lea ecx, [eax - 1]
test ecx, ecx
je 0x4070c6
mov eax, dword [ebx + 0x18]
add dword [ebx + 0x31938], 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.005332ca
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 0x4060dc
cmp byte [ebp - 0x25], cl
je 0x4060dc
cmp edi, 2
jae 0x4060dc
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.005332ca
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
mov edi, dword [ebx + 0x3194c]
mov eax, edx
and eax, dword [ebx + 0x325a8]
mov dword [ebx + 0x6a4], edi
movzx esi, byte [esi - 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x32598]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebx + 0x325a4]
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 + 0x325ac]
cmp edi, 7
jb 0x406148
lea eax, [ebx + 0x30ea0]
push eax
movzx eax, byte [ebp - 0x31]
push esi
call fcn.00405760
add esp, 8
jmp 0x406153
lea edx, [ebx + 0x30ea0]
call fcn.00405720
mov esi, dword [ebp - 0x30]
mov ecx, edi
shl ecx, 4
add ecx, esi
movzx edx, word [ebx + ecx*2 + 0x325b0]
lea ecx, [ebx + ecx*2 + 0x325b0]
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30ea0]
add edx, eax
mov dword [ebx + 0x6d0], edx
mov dword [ebx + 0x6ec], 0xffffffff
xor edx, edx
mov dword [ebx + 0x6d8], edx
movzx eax, word [ecx]
movzx ecx, word [ebx + edi*2 + 0x32730]
xor eax, 0x7f0
xor ecx, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr ecx, 4
mov ecx, dword [ebx + ecx*4 + 0x30ea0]
add ecx, eax
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x3c], ecx
cmp byte [ebp - 0x31], al
jne 0x406211
mov eax, edi
shl eax, 4
add eax, esi
movzx eax, word [ebx + eax*2 + 0x32790]
movzx esi, word [ebx + edi*2 + 0x32748]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ea0]
add eax, ecx
cmp eax, dword [ebx + 0x6d0]
jae 0x406211
mov dword [ebx + 0x6d0], eax
mov dword [ebx + 0x6ec], edx
mov dword [ebx + 0x6d8], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x406222
mov eax, ecx
mov dword [ebp - 0x4c], ecx
jmp 0x406225
mov dword [ebp - 0x4c], eax
cmp eax, 2
jae 0x40624a
mov ecx, dword [ebx + 0x6ec]
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.005332ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x6e8], edx
mov dword [ebx + 0x6c0], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x6c4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x6c8], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x6cc], ecx
lea ecx, [eax + eax*2]
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x6a0]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x406280
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x24]
cmp esi, 2
jb 0x4062f7
mov edx, dword [ebp - 0x30]
push edx
mov edx, dword [ebx + 0x3194c]
mov eax, edi
mov ecx, ebx
call fcn.00405d00
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 + 0x37858]
lea ecx, [ebx + ecx*8 + 0x6bc]
mov edx, dword [eax]
add edx, dword [ebp - 0x5c]
cmp edx, dword [ecx - 0x1c]
jae 0x4062eb
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 0x4062d4
inc edi
cmp edi, 4
jb 0x406291
mov edx, dword [ebx + 0x3194c]
movzx eax, word [ebx + edx*2 + 0x32730]
mov ecx, dword [ebp - 0x24]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp ecx, 2
jb 0x406326
inc ecx
jmp 0x40632b
mov ecx, 2
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp - 0x2c]
ja 0x40642b
xor edx, edx
mov dword [ebp - 0x2c], edx
cmp ecx, dword [ebx + 0x310a0]
jbe 0x406353
add edx, 2
cmp ecx, dword [ebx + edx*4 + 0x310a0]
ja 0x406344
mov dword [ebp - 0x2c], edx
mov esi, dword [ebp - 0x30]
imul esi, esi, 0x110
add esi, ecx
lea esi, [ebx + esi*4 + 0x33010]
mov dword [ebp - 0x48], esi
lea esi, [ecx + ecx*2]
add esi, esi
lea edi, [ebx + esi*8 + 0x6bc]
mov esi, dword [ebx + edx*4 + 0x310a4]
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 0x406392
mov eax, 3
cmp esi, 0x80
jae 0x4063a8
shl eax, 7
add eax, esi
add edx, dword [ebx + eax*4 + 0x31d50]
jmp 0x4063e9
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 + 0x306a0]
lea eax, [edi + eax*2 + 0xc654]
mov eax, dword [ebx + eax*4]
mov edi, dword [ebp - 0x5c]
and ecx, 0xf
add eax, dword [ebx + ecx*4 + 0x32550]
mov ecx, dword [ebp - 0x50]
add edx, eax
cmp edx, dword [edi - 0x1c]
jae 0x4063fe
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 + 0x310a0]
jne 0x406415
add eax, 2
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x38]
je 0x40642b
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 0x406374
mov edi, 1
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x4c], edi
je 0x4070b6
lea esp, [esp]
lea ecx, [ebp - 0x5c]
push ecx
mov esi, ebx
call fcn.00405c60
add esp, 4
mov dword [ebp - 0x50], eax
cmp eax, dword [ebx + 0x31934]
jae 0x4070a4
inc dword [ebp - 0x74]
lea esi, [edi + edi*2]
shl esi, 4
mov ecx, dword [esi + ebx + 0x6a8]
mov eax, dword [esi + ebx + 0x6b8]
add esi, ebx
mov dword [ebp - 0x54], esi
test ecx, ecx
je 0x4064d7
dec eax
cmp dword [esi + 0x6ac], 0
je 0x4064c2
mov ecx, dword [esi + 0x6b0]
lea ecx, [ecx + ecx*2]
add ecx, ecx
cmp dword [esi + 0x6b4], 4
mov ecx, dword [ebx + ecx*8 + 0x6a4]
jae 0x4064b2
mov ecx, dword [ecx*4 + 0x59151c]
mov edx, dword [ecx*4 + 0x5914bc]
jmp 0x4064e3
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 + 0x5914bc]
jmp 0x4064e3
lea edx, [eax + eax*2]
add edx, edx
mov ecx, dword [ebx + edx*8 + 0x6a4]
mov edx, dword [ecx*4 + 0x5914bc]
jmp 0x4064e3
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, dword [ebx + ecx*8 + 0x6a4]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x406511
cmp dword [esi + 0x6bc], 0
jne 0x406502
mov edx, dword [edx*4 + 0x59154c]
mov dword [ebp - 0x58], edx
jmp 0x4065b2
mov eax, dword [edx*4 + 0x5914bc]
mov dword [ebp - 0x58], eax
jmp 0x4065b2
cmp dword [esi + 0x6a8], 0
je 0x40653b
cmp dword [esi + 0x6ac], 0
je 0x40653b
mov ecx, dword [esi + 0x6b4]
mov eax, dword [esi + 0x6b0]
mov edx, dword [edx*4 + 0x59151c]
mov dword [ebp - 0x2c], ecx
jmp 0x406562
mov ecx, dword [esi + 0x6bc]
mov dword [ebp - 0x2c], ecx
cmp ecx, 4
jae 0x406558
mov ecx, dword [edx*4 + 0x59151c]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x406565
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 + 0x6a0]
cmp ecx, 4
jae 0x40669b
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [ebp - 0x14], eax
mov eax, 1
cmp ecx, eax
jb 0x40659b
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 0x4065ac
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 + 0x6a4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x6c0], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x6c4], ecx
mov ecx, dword [esi + 0x6a0]
mov dword [esi + 0x6c8], edx
mov dword [esi + 0x6cc], 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 + 0x325a8]
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 + 0x325b0]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
movzx edx, byte [edx - 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x32598]
mov ecx, 8
sub cl, al
shr edx, cl
mov ecx, dword [ebx + 0x325a4]
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 + 0x325ac]
cmp dword [ebp - 0x58], 7
jb 0x4066b8
movzx ecx, byte [ebp - 0x25]
lea eax, [ebx + 0x30ea0]
push eax
movzx eax, byte [ebp - 0x31]
push edx
call fcn.00405760
add esp, 8
jmp 0x40670c
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 0x4065b2
movzx eax, byte [ebp - 0x25]
or eax, 0x100
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
jmp 0x4066d0
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 + 0x30ea0]
mov eax, dword [ebp - 0x40]
add eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp eax, 0x10000
jb 0x4066d0
mov eax, ecx
mov edx, dword [ebp - 0x2c]
add edx, eax
mov dword [ebp - 0x2c], edx
cmp edx, dword [esi + 0x6d0]
jae 0x406743
mov dword [esi + 0x6d0], edx
mov dword [esi + 0x6e8], edi
mov dword [esi + 0x6ec], 0xffffffff
mov dword [esi + 0x6d8], 0
mov dword [ebp - 0x38], 1
mov edx, dword [ebp - 0x30]
movzx eax, word [ebx + edx*2 + 0x325b0]
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x32730]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
add eax, dword [ebp - 0x48]
xor edx, 0x7f0
shr edx, 4
mov ecx, dword [ebx + edx*4 + 0x30ea0]
add ecx, eax
mov dword [ebp - 0x80], eax
mov al, byte [ebp - 0x31]
mov dword [ebp - 0x84], ecx
cmp al, byte [ebp - 0x25]
jne 0x4067f4
cmp dword [esi + 0x6e8], edi
jae 0x40679f
cmp dword [esi + 0x6ec], 0
je 0x4067f4
mov edx, dword [ebp - 0x58]
movzx eax, word [ebx + edx*2 + 0x32748]
mov edx, dword [ebp - 0x30]
movzx edx, word [ebx + edx*2 + 0x32790]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr edx, 4
add eax, dword [ebx + edx*4 + 0x30ea0]
add eax, ecx
cmp eax, dword [esi + 0x6d0]
ja 0x4067f4
mov dword [esi + 0x6d0], eax
xor eax, eax
mov dword [esi + 0x6e8], edi
mov dword [esi + 0x6ec], eax
mov dword [esi + 0x6d8], eax
mov dword [ebp - 0x38], 1
mov ecx, dword [ebx + 0x69c]
mov eax, 0xfff
sub eax, edi
mov dword [ebp - 0x48], ecx
cmp eax, ecx
jae 0x40680d
mov ecx, eax
mov dword [ebp - 0x48], eax
cmp ecx, 2
jb 0x407095
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebx + 0x31934]
mov dword [ebp - 0x60], ecx
cmp ecx, esi
jbe 0x406829
mov dword [ebp - 0x60], esi
cmp dword [ebp - 0x38], 0
jne 0x40697c
mov al, byte [ebp - 0x25]
cmp byte [ebp - 0x31], al
je 0x40697c
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
cmp eax, ecx
jbe 0x40684e
mov eax, ecx
mov dword [ebp - 0x44], ecx
mov esi, 1
cmp eax, esi
jbe 0x406870
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 0x406870
inc esi
inc eax
cmp esi, dword [ebp - 0x44]
jb 0x406862
dec esi
mov dword [ebp - 0x38], esi
cmp esi, 2
jb 0x40697c
mov eax, dword [ebp - 0x58]
mov eax, dword [eax*4 + 0x5914bc]
mov ecx, dword [ebp - 0x74]
mov edx, eax
shl edx, 4
inc ecx
and ecx, dword [ebx + 0x325a8]
mov dword [ebp - 0x40], eax
movzx eax, word [ebx + eax*2 + 0x32730]
add edx, ecx
mov dword [ebp - 0x3c], edx
movzx edx, word [ebx + edx*2 + 0x325b0]
xor edx, 0x7f0
xor eax, 0x7f0
shr edx, 4
shr eax, 4
mov dword [ebp - 0x64], edx
mov edx, dword [ebx + eax*4 + 0x30ea0]
mov eax, dword [ebp - 0x64]
add edx, dword [ebx + eax*4 + 0x30ea0]
mov eax, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2c]
lea esi, [esi + edi + 1]
mov dword [ebp - 0x44], esi
cmp eax, esi
jae 0x40690c
lea esi, [eax + eax*2]
add esi, esi
lea esi, [ebx + esi*8 + 0x6a0]
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 0x406900
mov eax, dword [ebp - 0x3c]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32790]
mov esi, dword [ebp - 0x40]
movzx esi, word [ebx + esi*2 + 0x32748]
add ecx, dword [ebp - 0x38]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ea0]
add eax, dword [ebx + ecx*4 + 0x37858]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x6a0]
lea ecx, [ebx + ecx*8 + 0x6a0]
jae 0x40697c
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 0x406c91
mov edx, dword [ebp - 0x38]
mov eax, esi
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x406c91
mov esi, 2
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x60], esi
jbe 0x4069e3
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 0x4069e0
inc esi
inc eax
cmp esi, dword [ebp - 0x60]
jb 0x4069d2
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x4c]
lea eax, [esi + edi]
cmp edx, eax
jae 0x406a0c
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebx + ecx*8 + 0x6a0]
mov dword [ebp - 0x4c], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x406a00
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.00405d00
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 + 0x37858]
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 + 0x6bc]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x406a76
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 0x406a58
cmp dword [ebp - 0x2c], 0
jne 0x406a92
lea eax, [esi + 1]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebx + 0x31934]
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 0x406aaf
mov ecx, edx
mov dword [ebp - 0x40], edx
cmp eax, ecx
jae 0x406ad4
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 0x406ad4
inc eax
inc ecx
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x40]
jb 0x406ac0
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
mov dword [ebp - 0x30], eax
cmp eax, 2
jb 0x406c91
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebx + 0x32598]
add eax, esi
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x30ea0]
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 + 0x325a4]
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 + 0x325ac]
push esi
call fcn.00405760
mov edx, dword [ebp - 0x58]
mov edx, dword [edx*4 + 0x59151c]
mov edi, dword [ebx + 0x325a8]
mov ecx, dword [ebp - 0x40]
and ecx, edi
mov esi, edx
mov edx, dword [edx*4 + 0x5914bc]
shl esi, 4
add ecx, esi
movzx ecx, word [ebx + ecx*2 + 0x325b0]
mov esi, dword [ebp - 0x3c]
shr ecx, 4
add eax, dword [ebx + ecx*4 + 0x30ea0]
mov ecx, dword [ebp - 0x78]
add ecx, esi
add eax, dword [ebx + ecx*4 + 0x37858]
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 + 0x32730]
mov dword [ebp - 0x78], edi
movzx edi, word [ebx + edi*2 + 0x325b0]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30ea0]
xor edi, 0x7f0
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30ea0]
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 0x406c11
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x6a0]
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 0x406c05
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32790]
mov edi, dword [ebp - 0x64]
movzx edi, word [ebx + edi*2 + 0x32748]
add ecx, dword [ebp - 0x30]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30ea0]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37858]
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x6a0]
lea ecx, [ebx + ecx*8 + 0x6a0]
jae 0x406c91
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 0x406990
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
cmp edx, ecx
jbe 0x406cd9
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x50], edx
cmp ecx, dword [ebx + 0x310a0]
jbe 0x406ccc
lea ebx, [ebx]
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x310a0]
ja 0x406cc0
mov dword [ebx + eax*4 + 0x310a0], ecx
add eax, 2
mov dword [ebp - 0x5c], eax
cmp edx, dword [ebp - 0x44]
jb 0x407095
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + ecx*2 + 0x32730]
mov ecx, dword [ebp - 0x4c]
shr edx, 4
mov eax, dword [ebx + edx*4 + 0x30ea0]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
add eax, edi
cmp ecx, eax
jae 0x406d2c
lea edx, [ecx + ecx*2]
add edx, edx
sub eax, ecx
add ecx, eax
lea edx, [ebx + edx*8 + 0x6a0]
mov dword [ebp - 0x4c], ecx
lea esp, [esp]
add edx, 0x30
dec eax
mov dword [edx], 0x40000000
jne 0x406d20
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], eax
cmp edx, dword [ebx + 0x310a0]
jbe 0x406d4f
lea esp, [esp]
add eax, 2
cmp edx, dword [ebx + eax*4 + 0x310a0]
ja 0x406d40
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + eax*4 + 0x310a4]
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 + 0x306a0]
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 + 0x33010]
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 + 0x6bc]
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 0x406dc5
mov ecx, 3
cmp eax, 0x80
jae 0x406dda
shl ecx, 7
add ecx, eax
add edx, dword [ebx + ecx*4 + 0x31d50]
jmp 0x406df8
shl ecx, 6
add ecx, dword [ebp - 0x60]
mov edx, eax
mov ecx, dword [ebx + ecx*4 + 0x31950]
and edx, 0xf
add ecx, dword [ebx + edx*4 + 0x32550]
mov edx, dword [ebp - 0x38]
add edx, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
cmp edx, dword [ecx - 0x1c]
jae 0x406e15
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 + 0x310a0]
jne 0x407087
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x48]
sub ecx, eax
mov eax, dword [ebx + 0x31934]
add eax, esi
dec ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x40], eax
cmp eax, edx
jbe 0x406e48
mov eax, edx
mov dword [ebp - 0x40], edx
cmp esi, eax
jae 0x406e7d
mov edx, dword [ebp - 0x68]
sub edx, ecx
lea eax, [ecx + esi]
mov dword [ebp - 0x70], edx
jmp 0x406e66
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x406e7d
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 0x406e60
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 0x407041
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x325a8]
lea edx, [edx + esi - 1]
and eax, edx
mov dword [ebp - 0x78], eax
lea eax, [ebx + 0x30ea0]
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 + 0x32598]
mov ecx, 8
sub cl, dl
mov edx, dword [ebx + 0x325a4]
and edx, dword [ebp - 0x70]
shr esi, cl
mov ecx, dword [ebx + 0x32598]
shl edx, cl
mov ecx, edi
add esi, edx
imul esi, esi, 0x600
add esi, dword [ebx + 0x325ac]
push esi
call fcn.00405760
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 + 0x5914bc]
movzx edi, word [ebx + edx*2 + 0x32730]
shl esi, 4
add esi, ecx
movzx esi, word [ebx + esi*2 + 0x325b0]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30ea0]
mov esi, edx
add eax, dword [ebp - 0x38]
shl esi, 4
inc ecx
and ecx, dword [ebx + 0x325a8]
xor edi, 0x7f0
add esi, ecx
mov dword [ebp - 0x78], esi
movzx esi, word [ebx + esi*2 + 0x325b0]
xor esi, 0x7f0
shr esi, 4
mov dword [ebp - 0x84], edx
mov edx, dword [ebx + esi*4 + 0x30ea0]
mov esi, dword [ebp - 0x3c]
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30ea0]
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 0x406fbc
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x6a0]
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 0x406fb0
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x32790]
mov edi, dword [ebp - 0x84]
movzx edi, word [ebx + edi*2 + 0x32748]
add ecx, dword [ebp - 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30ea0]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30ea0]
mov edi, dword [ebp - 0x6c]
add eax, dword [ebx + ecx*4 + 0x37858]
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x6a0]
lea ecx, [ebx + ecx*8 + 0x6a0]
jae 0x407041
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 0x407095
mov eax, dword [ebx + eax*4 + 0x310a4]
mov dword [ebp - 0x50], eax
cmp eax, 0x80
jb 0x407087
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 + 0x306a0]
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x60], ecx
add dword [ebp - 0x54], 4
add dword [ebp - 0x44], 0x30
inc esi
jmp 0x406da7
inc edi
mov dword [ebp - 0x6c], edi
cmp edi, dword [ebp - 0x4c]
jne 0x406440
jmp 0x4070b6
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x698], eax
mov dword [ebx + 0x694], ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, edi
mov ecx, ebx
call fcn.00405dc0
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.005332ca
mov esp, ebp
pop ebp
ret