Function at 0x413350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x490]
cmp dword [esi + 0x48c], ecx
je 0x413397
lea eax, [ecx + ecx*2]
shl eax, 4
add esi, eax
mov eax, dword [esi + 0x4b8]
mov edx, dword [esi + 0x4bc]
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x4b8]
pop esi
mov dword [edx + 0x490], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x31738], 0
mov dword [esi + 0x48c], 0
mov dword [esi + 0x490], 0
jne 0x4133c9
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00416120
mov dword [ebp - 0x1c], eax
add esp, 8
mov eax, dword [ebp - 0x50]
jmp 0x4133d8
mov eax, dword [esi + 0x494]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x498]
push ebx
mov ebx, dword [esi + 0x49c]
mov dword [ebp - 0x14], eax
cmp ebx, 2
jae 0x4133fb
mov eax, dword [ebp + 0x10]
pop ebx
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov eax, 0x111
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esi + 0xc]
call eax
add esp, 4
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea edx, [eax - 1]
mov al, byte [edx]
mov byte [ebp - 1], al
lea eax, [esi + 0x3173c]
mov dword [ebp - 0x20], edx
xor esi, esi
mov dword [ebp - 0x4c], eax
push edi
mov eax, dword [eax + esi*4]
lea ecx, [esi*4]
mov edi, edx
mov dword [ebp + ecx - 0x6c], eax
sub edi, eax
mov dword [ebp - 0x50], ecx
mov al, byte [ebp - 1]
dec edi
cmp al, byte [edi]
jne 0x41349a
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x41349a
mov edx, 2
cmp ebx, edx
jbe 0x413480
mov eax, dword [ebp - 0x20]
sub edi, eax
lea ecx, [eax + 2]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x41347d
inc edx
inc ecx
cmp edx, ebx
jb 0x413470
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
mov dword [ebp + ecx - 0x7c], edx
cmp edx, dword [ebp + eax - 0x7c]
mov edx, dword [ebp - 0x20]
jbe 0x4134a2
mov edi, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], edi
jmp 0x4134a5
mov dword [ebp + ecx - 0x7c], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
inc esi
cmp esi, 4
jb 0x413433
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + edi*4 - 0x7c]
mov eax, dword [esi + 0x31734]
cmp ebx, eax
jb 0x4134e6
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
lea eax, [ebx - 1]
test eax, eax
je 0x4134dd
mov ecx, dword [esi + 0x14]
add dword [esi + 0x31738], eax
push eax
push dword [esi + 0x18]
call ecx
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
cmp edi, eax
jb 0x413521
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + ecx*4 + 0x30e9c]
add ecx, 4
mov dword [eax], ecx
lea eax, [edi - 1]
test eax, eax
je 0x413518
add dword [esi + 0x31738], eax
push eax
push dword [esi + 0x18]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edx
sub eax, dword [ebp - 0x6c]
mov al, byte [eax - 1]
mov byte [ebp - 2], al
cmp edi, 2
jae 0x413550
cmp byte [ebp - 1], al
je 0x413550
cmp ebx, 2
jae 0x413550
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3174c]
mov ecx, 8
mov dword [esi + 0x4a4], eax
mov eax, dword [esi + 0x323a8]
and eax, dword [ebp + 0xc]
sub cl, byte [esi + 0x32398]
movzx edx, byte [edx - 1]
mov edi, dword [esi + 0x3174c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
and eax, dword [esi + 0x323a4]
shr edx, cl
mov ecx, dword [esi + 0x32398]
shl eax, cl
add edx, eax
lea eax, [esi + 0x30ca0]
imul ecx, edx, 0xc00
mov dword [ebp - 0x30], eax
push eax
add ecx, dword [esi + 0x323ac]
cmp edi, 7
jb 0x4135c2
movzx eax, byte [ebp - 2]
push eax
movzx eax, byte [ebp - 1]
push eax
push ecx
call fcn.00414e30
add esp, 0x10
jmp 0x4135d0
movzx eax, byte [ebp - 1]
push eax
push ecx
call fcn.00414de0
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov ecx, eax
shl edi, 4
add edi, edx
mov eax, dword [esi + edi*4 + 0x323b0]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add eax, ecx
mov dword [esi + 0x4ec], 0xffffffff
mov dword [esi + 0x4d0], eax
mov dword [esi + 0x4d8], 0
mov edi, dword [esi + 0x3174c]
mov eax, edi
shl eax, 4
add eax, edx
mov eax, dword [esi + eax*4 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [esi + eax*4 + 0x30ca0]
mov eax, dword [esi + edi*4 + 0x326b0]
xor eax, 0x7f0
mov dword [ebp - 0x4c], ecx
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add eax, ecx
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 2]
cmp al, byte [ebp - 1]
jne 0x41369e
mov eax, edi
shl eax, 4
add eax, edx
mov ecx, dword [esi + eax*4 + 0x32770]
mov eax, dword [esi + edi*4 + 0x326e0]
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x30ca0]
add ecx, dword [esi + eax*4 + 0x30ca0]
add ecx, dword [ebp - 0x34]
cmp ecx, dword [esi + 0x4d0]
jae 0x41369e
mov dword [esi + 0x4d0], ecx
mov dword [esi + 0x4ec], 0
mov dword [esi + 0x4d8], 0
cmp dword [ebp - 0x1c], ebx
cmovae ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
cmp ebx, 2
jae 0x4136c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x4ec]
pop edi
pop ebx
mov dword [eax], ecx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x6c]
mov ecx, ebx
mov dword [esi + 0x4e8], 0
mov dword [esi + 0x4c0], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x4c4], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x4c8], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x4cc], eax
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, 0x4a0
add eax, esi
dec ecx
mov dword [eax], 0x40000000
lea eax, [eax - 0x30]
cmp ecx, 2
jae 0x413701
xor ebx, ebx
mov edi, dword [ebp + ebx*4 - 0x7c]
cmp edi, 2
jb 0x41377e
push edx
push dword [esi + 0x3174c]
push ebx
push esi
call fcn.00414870
imul ecx, dword [ebp - 0x20], 0x110
add esp, 0x10
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
lea eax, [esi + 0x4bc]
add ecx, 0xe131
add ecx, edi
lea edx, [esi + ecx*4]
lea ecx, [edi + edi*2]
shl ecx, 4
add eax, ecx
mov ecx, dword [edx]
add ecx, dword [ebp - 0x50]
cmp ecx, dword [eax - 0x1c]
jae 0x41376f
mov dword [eax - 0x1c], ecx
mov dword [eax - 4], 0
mov dword [eax], ebx
mov dword [eax - 0x14], 0
dec edi
sub edx, 4
sub eax, 0x30
cmp edi, 2
jae 0x413752
mov edx, dword [ebp - 0x20]
inc ebx
cmp ebx, 4
jb 0x413712
mov eax, dword [esi + 0x3174c]
mov ebx, dword [ebp - 0x7c]
mov eax, dword [esi + eax*4 + 0x326b0]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
cmp ebx, 2
jb 0x4137ac
inc ebx
jmp 0x4137b1
mov ebx, 2
cmp ebx, dword [ebp - 0x1c]
ja 0x4138b7
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp ebx, dword [esi + 0x30ea0]
jbe 0x4137df
jmp 0x4137d0
add ecx, 2
cmp ebx, dword [esi + ecx*4 + 0x30ea0]
ja 0x4137d0
mov dword [ebp - 0x20], ecx
imul eax, edx, 0x110
add eax, 0xce1e
add eax, ebx
lea edi, [esi + eax*4]
lea eax, [ebx + ebx*2]
shl eax, 4
add eax, 0x4bc
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + ecx*4 + 0x30ea4]
lea edx, [ebx - 2]
mov dword [ebp - 0x2c], edi
mov edi, dword [edi]
add edi, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
cmp ebx, 5
jb 0x41381e
mov edx, 3
cmp eax, 0x80
jae 0x413833
shl edx, 7
add edx, eax
add edi, dword [esi + edx*4 + 0x31b50]
jmp 0x413873
mov ecx, 0x1ffff
shl edx, 5
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
add edx, ecx
mov ecx, dword [ebp - 0x34]
and ecx, 0xf
movzx eax, byte [eax + esi + 0x304a0]
lea eax, [eax + edx*2]
mov eax, dword [esi + eax*4 + 0x31750]
add eax, dword [esi + ecx*4 + 0x32350]
mov ecx, dword [ebp - 0x20]
add edi, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
cmp edi, dword [edx - 0x1c]
jae 0x413891
add eax, 4
mov dword [edx - 0x1c], edi
mov dword [edx - 4], 0
mov dword [edx], eax
mov dword [edx - 0x14], 0
cmp ebx, dword [esi + ecx*4 + 0x30ea0]
jne 0x4138a5
add ecx, 2
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x14]
je 0x4138b7
mov edi, dword [ebp - 0x2c]
inc ebx
add edi, 4
add edx, 0x30
mov dword [ebp - 0x28], edx
jmp 0x4137ff
mov ebx, 1
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
je 0x41450a
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00416120
mov ecx, eax
add esp, 8
mov dword [ebp - 0x54], ecx
cmp ecx, dword [esi + 0x31734]
jae 0x4144fb
inc dword [ebp + 0xc]
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, esi
mov dword [ebp - 0x4c], ebx
mov edx, dword [ebx + 0x4a8]
mov ecx, dword [ebx + 0x4b8]
test edx, edx
je 0x41395e
dec ecx
cmp dword [ebx + 0x4ac], 0
je 0x413949
mov eax, dword [ebx + 0x4b0]
lea eax, [eax + eax*2]
add eax, eax
cmp dword [ebx + 0x4b4], 4
mov edi, dword [esi + eax*8 + 0x4a4]
jae 0x413939
mov edi, dword [edi*4 + 0x43c8bc]
mov edi, dword [edi*4 + 0x43c85c]
jmp 0x41396a
mov edi, dword [edi*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 edi, dword [edi*4 + 0x43c85c]
jmp 0x41396a
lea eax, [ecx + ecx*2]
add eax, eax
mov edi, dword [esi + eax*8 + 0x4a4]
mov edi, dword [edi*4 + 0x43c85c]
jmp 0x41396a
lea eax, [ecx + ecx*2]
add eax, eax
mov edi, dword [esi + eax*8 + 0x4a4]
mov eax, dword [ebp - 8]
dec eax
cmp ecx, eax
jne 0x413999
cmp dword [ebx + 0x4bc], 0
jne 0x41398a
mov edi, dword [edi*4 + 0x43c8ec]
mov dword [ebp - 0xc], edi
jmp 0x413a51
mov edi, dword [edi*4 + 0x43c85c]
mov dword [ebp - 0xc], edi
jmp 0x413a51
test edx, edx
je 0x4139bb
cmp dword [ebx + 0x4ac], 0
je 0x4139bb
mov ecx, dword [ebx + 0x4b0]
mov edx, dword [ebx + 0x4b4]
mov edi, dword [edi*4 + 0x43c8bc]
jmp 0x4139d6
mov edx, dword [ebx + 0x4bc]
cmp edx, 4
jae 0x4139cf
mov edi, dword [edi*4 + 0x43c8bc]
jmp 0x4139d6
mov edi, dword [edi*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]
lea eax, [ecx + ecx*2]
mov dword [ebp - 0xc], edi
shl eax, 4
lea ecx, [esi + 0x4a0]
add ecx, eax
mov dword [ebp - 0x50], ecx
cmp edx, 4
jae 0x413a39
mov eax, dword [ecx + edx*4 + 0x20]
mov dword [ebp - 0x6c], eax
mov eax, 1
cmp edx, eax
jb 0x413a1c
lea esi, [ecx + 0x20]
mov ecx, edx
lea eax, [edx + 1]
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jb 0x413a19
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
jmp 0x413a51
mov ecx, dword [ebp - 0x50]
lea esi, [ecx + 0x20]
mov ecx, 4
lea edi, [ebp - 0x6c]
sub ecx, eax
lea edi, [edi + eax*4]
lea esi, [esi + eax*4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
jmp 0x413a51
lea eax, [edx - 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x4a4], edi
mov dword [ebx + 0x4c0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x4c4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x4c8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x4cc], eax
mov edi, dword [ebx + 0x4a0]
push dword [esi + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], 0
call eax
add esp, 4
lea edx, [eax - 1]
mov al, byte [edx]
mov ecx, edx
sub ecx, dword [ebp - 0x6c]
dec ecx
mov byte [ebp - 1], al
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], edx
mov al, byte [ecx]
mov ecx, dword [esi + 0x323a8]
and ecx, dword [ebp + 0xc]
mov byte [ebp - 2], al
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov ecx, 8
sub cl, byte [esi + 0x32398]
mov eax, dword [esi + eax*4 + 0x323b0]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add eax, edi
mov dword [ebp - 0x20], eax
lea eax, [edx - 1]
movzx edx, byte [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
and eax, dword [esi + 0x323a4]
shr edx, cl
mov ecx, dword [esi + 0x32398]
shl eax, cl
add edx, eax
imul ecx, edx, 0xc00
add ecx, dword [esi + 0x323ac]
cmp dword [ebp - 0xc], 7
mov dword [ebp - 0x50], ecx
jb 0x413b38
lea eax, [esi + 0x30ca0]
push eax
movzx eax, byte [ebp - 2]
push eax
movzx eax, byte [ebp - 1]
push eax
push ecx
call fcn.00414e30
add esp, 0x10
mov edi, eax
jmp 0x413b76
movzx edx, byte [ebp - 1]
xor edi, edi
mov ebx, dword [ebp - 0x50]
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
and ecx, 1
shr eax, 8
neg ecx
and ecx, 0x7f0
xor ecx, dword [ebx + eax*4]
shr ecx, 4
add edi, dword [esi + ecx*4 + 0x30ca0]
cmp edx, 0x10000
jb 0x413b47
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebx + 0x4d0]
jae 0x413bb0
mov dword [ebx + 0x4d0], eax
mov edx, 1
mov eax, dword [ebp - 8]
mov dword [ebx + 0x4e8], eax
mov dword [ebx + 0x4ec], 0xffffffff
mov dword [ebx + 0x4d8], 0
jmp 0x413bb3
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
mov eax, dword [esi + edi*4 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [esi + eax*4 + 0x30ca0]
mov eax, dword [ebp - 0xc]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
mov eax, dword [esi + eax*4 + 0x326b0]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add eax, ecx
mov cl, byte [ebp - 1]
mov ch, byte [ebp - 2]
mov dword [ebp - 0x38], eax
cmp ch, cl
jne 0x413c6c
mov eax, dword [ebp - 8]
cmp dword [ebx + 0x4e8], eax
jae 0x413c0e
cmp dword [ebx + 0x4ec], 0
je 0x413c6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + edi*4 + 0x32770]
shr ecx, 4
mov eax, dword [esi + eax*4 + 0x326e0]
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x30ca0]
add ecx, dword [esi + eax*4 + 0x30ca0]
add ecx, dword [ebp - 0x38]
cmp ecx, dword [ebx + 0x4d0]
ja 0x413c66
mov eax, dword [ebp - 8]
mov edx, 1
mov dword [ebx + 0x4d0], ecx
mov dword [ebx + 0x4e8], eax
mov dword [ebx + 0x4ec], 0
mov dword [ebx + 0x4d8], 0
mov ch, byte [ebp - 2]
mov cl, byte [ebp - 1]
mov ebx, dword [ebp - 8]
mov eax, 0xfff
mov edi, dword [esi + 0x49c]
sub eax, ebx
cmp eax, edi
cmovb edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 2
jb 0x4144da
mov edi, dword [esi + 0x31734]
mov eax, edi
mov ebx, dword [ebp - 0x2c]
cmp ebx, edi
cmovbe eax, ebx
mov dword [ebp - 0x28], eax
test edx, edx
jne 0x413de5
cmp ch, cl
je 0x413de5
inc edi
mov edx, 1
cmp edi, ebx
cmova edi, ebx
cmp edi, edx
jbe 0x413cdd
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
sub ebx, eax
lea ecx, [eax + 1]
lea ebx, [ebx]
mov al, byte [ecx]
cmp al, byte [ebx + ecx]
jne 0x413cdd
inc edx
inc ecx
cmp edx, edi
jb 0x413cd0
lea ebx, [edx - 1]
mov dword [ebp - 0x48], ebx
cmp ebx, 2
jb 0x413de5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
inc ecx
and ecx, dword [esi + 0x323a8]
inc edi
mov edx, dword [eax*4 + 0x43c85c]
add edi, ebx
mov ebx, dword [ebp - 0x10]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov ecx, dword [esi + eax*4 + 0x323b0]
mov eax, dword [esi + edx*4 + 0x326b0]
xor ecx, 0x7f0
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov edx, dword [esi + ecx*4 + 0x30ca0]
add edx, dword [esi + eax*4 + 0x30ca0]
add edx, dword [ebp - 0x20]
cmp ebx, edi
jae 0x413d6d
lea eax, [ebx + ebx*2]
mov ecx, edi
shl eax, 4
sub ecx, ebx
add eax, 0x4a0
add eax, esi
add ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x413d60
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebx*4 + 0x43c85c]
mov ecx, dword [esi + ecx*4 + 0x32770]
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4 + 0x326e0]
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x30ca0]
add ecx, dword [esi + eax*4 + 0x30ca0]
imul eax, dword [ebp - 0x4c], 0x110
add eax, dword [ebp - 0x48]
add ecx, dword [esi + eax*4 + 0x384c4]
lea eax, [edi + edi*2]
add ecx, edx
shl eax, 4
lea edx, [esi + 0x4a0]
add edx, eax
cmp ecx, dword [edx]
jae 0x413de5
mov eax, dword [ebp - 8]
inc eax
mov dword [edx], ecx
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
mov dword [edx + 8], 1
mov dword [edx + 0xc], 0
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], edx
mov al, byte [ecx]
mov ebx, ecx
sub ebx, dword [ebp + edx*4 - 0x6c]
dec ebx
mov dword [ebp - 0x24], ebx
cmp al, byte [ebx]
jne 0x4140e9
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x4140e9
mov edi, 2
cmp dword [ebp - 0x28], edi
jbe 0x413e43
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 2]
mov esi, dword [ebp - 0x28]
sub edx, ebx
lea esp, [esp]
mov al, byte [edx + ecx]
cmp al, byte [ecx]
jne 0x413e3d
inc edi
inc ecx
cmp edi, esi
jb 0x413e30
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add ecx, edi
cmp eax, ecx
jae 0x413e6f
sub ecx, dword [ebp - 0x10]
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x4a0
add eax, esi
add dword [ebp - 0x10], ecx
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x413e62
mov ebx, dword [ebp - 0x40]
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
push edx
push esi
call fcn.00414870
add eax, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x3c], eax
imul eax, ebx, 0x110
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
lea ecx, [eax + 0xe131]
add ecx, edi
lea edx, [esi + ecx*4]
mov ecx, dword [ebp - 8]
add ecx, edi
add esi, 0x4bc
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, esi
mov esi, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp - 0x3c]
cmp eax, dword [ecx - 0x1c]
jae 0x413ecf
mov dword [ecx - 0x1c], eax
mov dword [ecx - 4], esi
mov dword [ecx], ebx
mov dword [ecx - 0x14], 0
dec edi
sub edx, 4
sub ecx, 0x30
cmp edi, 2
jae 0x413eb6
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
test edx, edx
jne 0x413ef1
lea ecx, [eax + 1]
mov dword [ebp - 0x20], ecx
mov edi, dword [esi + 0x31734]
lea ecx, [eax + 1]
add edi, ecx
cmp edi, dword [ebp - 0x2c]
cmova edi, dword [ebp - 0x2c]
cmp ecx, edi
jae 0x413f20
lea edx, [ecx + ebx]
mov ebx, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x24]
mov al, byte [ebx + edx]
cmp al, byte [edx]
jne 0x413f1d
inc ecx
inc edx
cmp ecx, edi
jb 0x413f10
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
sub eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, 2
jb 0x4140e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x30]
mov esi, dword [ebp + 0xc]
mov edi, dword [eax*4 + 0x43c8bc]
add esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x323a8]
mov eax, dword [ebp - 0x24]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [ebp - 0x44]
movzx edx, byte [eax + ecx]
mov ecx, 8
mov eax, dword [ebp + 8]
sub cl, byte [eax + 0x32398]
mov eax, esi
shr edx, cl
mov ecx, dword [ebp + 8]
and eax, dword [ecx + 0x323a4]
mov ecx, dword [ecx + 0x32398]
shl eax, cl
mov ecx, dword [ebp + 8]
add edx, eax
imul eax, edx, 0xc00
add eax, dword [ecx + 0x323ac]
push eax
call fcn.00414e30
mov edx, eax
and esi, ebx
mov eax, dword [ebp + 8]
mov ecx, edi
shl ecx, 4
add esp, 0x10
add esi, ecx
mov edi, dword [edi*4 + 0x43c85c]
mov dword [ebp - 0x48], edi
mov ecx, dword [eax + esi*4 + 0x323b0]
mov esi, eax
mov eax, dword [ebp - 0x18]
shr ecx, 4
add edx, dword [esi + ecx*4 + 0x30ca0]
mov ecx, dword [ebp - 0x50]
add ecx, eax
inc eax
add edx, dword [esi + ecx*4 + 0x384c4]
mov ecx, dword [ebp + 0xc]
add edx, dword [ebp - 0x3c]
add ecx, eax
and ecx, ebx
mov eax, edi
mov ebx, dword [ebp - 8]
shl eax, 4
inc ebx
add eax, ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + edi*4 + 0x326b0]
mov edi, dword [ebp - 0x10]
xor ecx, 0x7f0
mov dword [ebp - 0x50], eax
mov eax, dword [esi + eax*4 + 0x323b0]
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x30ca0]
add ecx, dword [esi + eax*4 + 0x30ca0]
mov eax, dword [ebp - 0x18]
add ecx, edx
mov edx, dword [ebp - 0x4c]
add eax, edx
add ebx, eax
mov dword [ebp - 0x24], ecx
cmp edi, ebx
jae 0x414062
lea eax, [edi + edi*2]
mov ecx, ebx
shl eax, 4
sub ecx, edi
add eax, 0x4a0
add eax, esi
add edi, ecx
mov dword [ebp - 0x10], edi
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x414055
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + ecx*4 + 0x32770]
mov eax, dword [esi + eax*4 + 0x326e0]
xor ecx, 0x7f0
shr ecx, 4
shr eax, 4
mov edi, dword [esi + ecx*4 + 0x30ca0]
lea ecx, [esi + 0x4a0]
add edi, dword [esi + eax*4 + 0x30ca0]
imul eax, dword [ebp - 0x3c], 0x110
add eax, edx
mov edx, dword [ebp - 0x1c]
add edi, dword [esi + eax*4 + 0x384c4]
lea eax, [ebx + ebx*2]
add edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 8]
shl eax, 4
add ecx, eax
cmp edi, dword [ecx]
jae 0x4140e1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ecx], edi
add eax, ebx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edx
mov ecx, dword [ebp - 0x14]
jmp 0x4140ec
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 4
jb 0x413df4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x54]
cmp edx, ecx
jbe 0x41412b
xor eax, eax
mov edx, ecx
cmp ecx, dword [esi + 0x30ea0]
jbe 0x41411c
nop
add eax, 2
cmp ecx, dword [esi + eax*4 + 0x30ea0]
ja 0x414110
mov dword [esi + eax*4 + 0x30ea0], ecx
add eax, 2
mov dword [ebp - 0x34], eax
jmp 0x41412e
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp edx, dword [ebp - 0x20]
jb 0x4144da
mov eax, dword [ebp - 0xc]
lea ecx, [edx + ebx]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + eax*4 + 0x326b0]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x30ca0]
add dword [ebp - 0x58], eax
cmp edx, ecx
jae 0x41417d
lea eax, [edx + edx*2]
sub ecx, edx
shl eax, 4
add eax, 0x4a0
add eax, esi
add edx, ecx
mov dword [ebp - 0x10], edx
nop
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x414170
mov edx, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x28], edi
cmp edx, dword [esi + 0x30ea0]
jbe 0x41419f
lea ecx, [ecx]
add edi, 2
cmp edx, dword [esi + edi*4 + 0x30ea0]
ja 0x414190
mov dword [ebp - 0x28], edi
lea eax, [edi*4]
mov ecx, 0x1ffff
mov ebx, dword [eax + esi + 0x30ea4]
sub ecx, ebx
shr ecx, 0x1f
mov dword [ebp - 0x18], eax
neg ecx
and ecx, 0xa
mov dword [ebp - 0x48], ebx
add ecx, 6
mov eax, ebx
shr eax, cl
movzx eax, byte [eax + esi + 0x304a0]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x4c], eax
lea ecx, [edx + 1]
imul eax, dword [ebp - 0x40], 0x110
add edx, 0xce1e
add eax, edx
lea edx, [esi + eax*4]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
lea edi, [eax + eax*2]
shl edi, 4
add edi, 0x4bc
add edi, esi
mov dword [ebp - 0x50], edx
lea eax, [ecx - 1]
mov edx, dword [edx]
add edx, dword [ebp - 0x58]
cmp eax, 5
mov dword [ebp - 0x3c], eax
lea eax, [ecx - 3]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
jb 0x414221
mov eax, 3
cmp ebx, 0x80
jae 0x414237
shl eax, 7
add eax, ebx
add edx, dword [esi + eax*4 + 0x31b50]
jmp 0x414255
shl eax, 6
mov ecx, ebx
add eax, dword [ebp - 0x4c]
and ecx, 0xf
mov eax, dword [esi + eax*4 + 0x31750]
add eax, dword [esi + ecx*4 + 0x32350]
mov ecx, dword [ebp - 0x1c]
add edx, eax
mov dword [ebp - 0x40], edx
cmp edx, dword [edi - 0x1c]
jae 0x414272
mov eax, dword [ebp - 8]
mov dword [edi - 4], eax
lea eax, [ebx + 4]
mov dword [edi - 0x1c], edx
mov dword [edi], eax
mov dword [edi - 0x14], 0
mov eax, dword [ebp - 0x18]
lea edx, [ecx - 1]
cmp edx, dword [eax + esi + 0x30ea0]
jne 0x4144cb
mov eax, dword [ebp - 0x14]
mov edx, ecx
mov edi, dword [esi + 0x31734]
sub eax, ebx
add edi, ecx
dec eax
cmp edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
cmova edi, dword [ebp - 0x2c]
cmp ecx, edi
jae 0x4142c0
mov ebx, dword [ebp - 0x14]
add ecx, eax
sub ebx, eax
lea ebx, [ebx]
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4142bd
inc edx
inc ecx
cmp edx, edi
jb 0x4142b0
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
lea edi, [ecx - 1]
sub eax, edi
add edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 2
jb 0x414474
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x30]
mov ebx, dword [esi + 0x323a8]
mov esi, ebx
mov edx, dword [ebp + 0xc]
mov edi, dword [eax*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]
dec edx
mov eax, dword [ebp - 0x54]
add edx, ecx
mov dword [ebp - 0x20], ebx
and esi, edx
mov ebx, dword [ebp + 8]
movzx eax, byte [ecx + eax - 1]
push eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ecx - 2]
mov ecx, 8
sub cl, byte [ebx + 0x32398]
shr eax, cl
mov ecx, ebx
and edx, dword [ecx + 0x323a4]
mov ecx, dword [ecx + 0x32398]
shl edx, cl
mov ecx, ebx
add eax, edx
imul eax, eax, 0xc00
add eax, dword [ecx + 0x323ac]
push eax
call fcn.00414e30
mov edx, eax
mov ecx, edi
mov edi, dword [edi*4 + 0x43c85c]
mov eax, ebx
shl ecx, 4
add esp, 0x10
add ecx, esi
mov ecx, dword [eax + ecx*4 + 0x323b0]
shr ecx, 4
add edx, dword [eax + ecx*4 + 0x30ca0]
lea ecx, [esi + 1]
and ecx, dword [ebp - 0x20]
mov esi, ebx
add edx, dword [ebp - 0x40]
mov eax, edi
mov ebx, dword [ebp - 0x3c]
shl eax, 4
inc ebx
add eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + edi*4 + 0x326b0]
mov dword [ebp - 0x54], eax
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4 + 0x323b0]
xor eax, 0x7f0
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + ecx*4 + 0x30ca0]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x30ca0]
mov eax, dword [ebp - 8]
add ecx, edx
mov edx, dword [ebp - 0x18]
add eax, edx
add ebx, eax
mov dword [ebp - 0x5c], ecx
cmp edi, ebx
jae 0x4143f0
lea eax, [edi + edi*2]
mov ecx, ebx
shl eax, 4
sub ecx, edi
add eax, 0x4a0
add eax, esi
add edi, ecx
mov dword [ebp - 0x10], edi
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
dec ecx
jne 0x4143e3
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
mov ecx, dword [esi + ecx*4 + 0x32770]
mov eax, dword [esi + eax*4 + 0x326e0]
xor ecx, 0x7f0
shr ecx, 4
shr eax, 4
mov edi, dword [esi + ecx*4 + 0x30ca0]
lea ecx, [esi + 0x4a0]
add edi, dword [esi + eax*4 + 0x30ca0]
imul eax, dword [ebp - 0x20], 0x110
add eax, edx
add edi, dword [esi + eax*4 + 0x384c4]
lea eax, [ebx + ebx*2]
add edi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 8]
shl eax, 4
add ecx, eax
cmp edi, dword [ecx]
jae 0x414477
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ecx], edi
add eax, ebx
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], eax
jmp 0x414477
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x28]
add edi, 2
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x38]
je 0x4144da
lea eax, [edi*4]
mov edi, dword [ebp - 0x24]
mov ebx, dword [eax + esi + 0x30ea4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], ebx
cmp ebx, 0x80
jb 0x4144c8
mov ecx, 0x1ffff
mov eax, ebx
sub ecx, ebx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + esi + 0x304a0]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x50]
add edi, 0x30
add edx, 4
inc ecx
jmp 0x414200
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x10]
jne 0x4138c8
push ebx
push dword [ebp + 0x10]
push esi
call fcn.00412ee0
add esp, 0xc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x498], eax
mov dword [esi + 0x494], ecx
push ebx
push dword [ebp + 0x10]
push esi
call fcn.00412ee0
add esp, 0xc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret