Function at 0x408e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], eax
cmp dword [esi + 0x34], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x408ecb
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.0040bff0
mov dword [ebp - 0x38], eax
add esp, 8
mov eax, dword [ebp - 0x48]
jmp 0x408ed4
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x28]
mov dword [ebp - 0x44], eax
cmp ebx, 2
jb 0x40a236
push dword [esi]
mov eax, 0x111
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esi + 0xc]
call eax
add esp, 4
mov dword [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
lea edx, [eax - 1]
mov al, byte [edx]
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x25], al
mov edi, edi
mov eax, dword [esi + ecx*4 + 0x38]
mov edi, edx
sub edi, eax
mov dword [ebp + ecx*4 - 0x14], eax
mov al, byte [ebp - 0x25]
cmp al, byte [edi]
jne 0x408f70
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x408f70
mov edx, 2
cmp ebx, edx
jbe 0x408f50
mov eax, dword [ebp - 0x30]
sub edi, eax
lea ecx, [eax + 2]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x408f4d
inc edx
inc ecx
cmp edx, ebx
jb 0x408f40
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x34]
mov eax, ecx
mov dword [ebp + ecx*4 - 0x24], edx
cmp edx, dword [ebp + edi*4 - 0x24]
cmovbe eax, edi
cmp edx, 0x111
je 0x408f84
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x408f7b
mov eax, dword [ebp - 0x34]
mov dword [ebp + ecx*4 - 0x24], 0
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, 4
jb 0x408f10
mov edi, dword [ebp + eax*4 - 0x24]
mov ecx, dword [esi + 0x30]
cmp edi, ecx
jb 0x408fbc
lea ecx, [edi - 1]
mov dword [esi + 0x90], eax
add dword [esi + 0x34], ecx
lea ecx, [edi - 1]
push ecx
push dword [esi]
mov ecx, dword [esi + 0x14]
call ecx
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x38]
lea edx, [esi + 0x960]
mov dword [ebp - 0x64], edx
cmp ebx, ecx
jb 0x409003
mov eax, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 - 4]
add eax, 4
mov dword [esi + 0x90], eax
lea eax, [ebx - 1]
add dword [esi + 0x34], eax
lea eax, [ebx - 1]
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
mov eax, ecx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
sub eax, ecx
cmp edi, dword [ebp - 0x38]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x30]
cmova ebx, edi
mov al, byte [eax]
mov byte [ebp - 0x25], dl
mov byte [ebp - 0x26], al
mov dword [ebp - 0x2c], ebx
cmp ebx, 2
jae 0x409033
cmp dl, al
jne 0x40a236
mov ax, word [esi + 0x2c]
mov word [esi + 0xbcbc], ax
mov eax, dword [ebp - 0x68]
and eax, dword [esi + 0x4c]
movzx edx, byte [ecx - 1]
mov ecx, dword [esi + 0x94]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x68]
shl eax, 8
add edx, eax
mov eax, dword [esi + 0x50]
and edx, dword [esi + 0x48]
shl edx, cl
cmp dword [esi + 0x2c], 7
lea ecx, [edx + edx*2]
movzx edx, byte [ebp - 0x25]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x48], ecx
jb 0x40908e
lea eax, [esi + 0x760]
push eax
movzx eax, byte [ebp - 0x26]
push eax
push edx
push ecx
call fcn.0040a860
add esp, 0x10
mov edi, eax
jmp 0x4090c7
mov ebx, dword [ebp - 0x48]
xor edi, edi
or edx, 0x100
lea esp, [esp]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [ebx + edx*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
add edi, dword [esi + eax*4 + 0x760]
cmp edx, 2
jae 0x4090a0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x2c]
mov edx, eax
mov ecx, dword [ebp - 0x30]
shl eax, 4
add eax, ecx
movzx eax, word [esi + eax*2 + 0x1eb0]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add edi, eax
xor eax, eax
mov dword [esi + 0xbcd8], edi
mov word [esi + 0xbcde], ax
mov eax, edx
shl eax, 4
add ecx, eax
mov dword [esi + 0xbce4], 0xffffffff
movzx eax, word [esi + ecx*2 + 0x1eb0]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
mov dword [ebp - 0x58], eax
movzx eax, word [esi + edx*2 + 0x1e50]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov al, byte [ebp - 0x25]
cmp byte [ebp - 0x26], al
jne 0x40919d
cmp dword [ebp - 0x24], 0
jne 0x40919d
movzx ecx, word [esi + ecx*2 + 0x2030]
movzx eax, word [esi + edx*2 + 0x1e68]
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x760]
add ecx, dword [esi + eax*4 + 0x760]
or eax, 0xffffffff
add ecx, dword [ebp - 0x5c]
cmp ecx, edi
jae 0x40918d
mov dword [esi + 0xbcd8], ecx
xor eax, eax
mov dword [esi + 0xbce4], 0
cmp ebx, 2
jae 0x40919d
mov dword [esi + 0x90], eax
jmp 0x40a240
mov eax, dword [ebp - 0x78]
xor edi, edi
mov ebx, dword [ebp - 0x30]
mov dword [esi + 0xbcc8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
mov dword [esi + 0xbccc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8c], eax
mov dword [esi + 0xbcd0], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xbce0], 1
mov dword [esi + 0xbcd4], eax
mov dword [ebp - 0x34], edi
lea esp, [esp]
mov edx, dword [ebp + edi*4 - 0x24]
cmp edx, 2
jb 0x4092ea
mov ecx, dword [esi + 0x2c]
movzx eax, word [esi + ecx*2 + 0x1e68]
mov dword [ebp - 0x48], eax
test edi, edi
jne 0x40922a
shl ecx, 4
add ecx, ebx
movzx eax, word [esi + ecx*2 + 0x2030]
mov ecx, dword [ebp - 0x48]
xor eax, 0x7f0
shr eax, 4
shr ecx, 4
mov edi, dword [esi + eax*4 + 0x760]
add edi, dword [esi + ecx*4 + 0x760]
jmp 0x409294
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
mov dword [ebp - 0x50], eax
movzx eax, word [esi + ecx*2 + 0x1e80]
mov dword [ebp - 0x48], eax
cmp edi, 1
jne 0x40925b
mov edi, dword [ebp - 0x50]
shr eax, 4
add edi, dword [esi + eax*4 + 0x760]
jmp 0x409294
movzx ecx, word [esi + ecx*2 + 0x1e98]
mov eax, 2
sub eax, edi
shr ecx, 4
mov edi, dword [ebp - 0x48]
shr eax, 4
xor edi, 0x7f0
and eax, 0x7f
shr edi, 4
xor ecx, eax
mov eax, dword [esi + ecx*4 + 0x760]
add eax, dword [esi + edi*4 + 0x760]
mov edi, dword [ebp - 0x50]
add edi, eax
mov eax, dword [ebp - 0x5c]
lea ecx, [esi + 0xbcc4]
add eax, edi
imul edi, ebx, 0x110
mov dword [ebp - 0x48], eax
mov eax, edx
shl eax, 5
add ecx, eax
add edi, edx
add esi, 0x78b0
lea edi, [esi + edi*4]
mov esi, dword [ebp - 0x34]
lea ecx, [ecx]
mov eax, dword [edi]
add eax, dword [ebp - 0x48]
cmp eax, dword [ecx - 0xc]
jae 0x4092d8
mov dword [ecx - 0xc], eax
xor eax, eax
mov dword [ecx - 4], edx
mov dword [ecx], esi
mov word [ecx - 6], ax
dec edx
sub edi, 4
sub ecx, 0x20
cmp edx, 2
jae 0x4092c0
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x34]
inc edi
mov dword [ebp - 0x34], edi
cmp edi, 4
jb 0x4091e0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
inc edi
cmp edi, dword [ebp - 0x38]
ja 0x40945a
mov eax, dword [esi + 0x2c]
xor edx, edx
mov dword [ebp - 0x38], edx
movzx eax, word [esi + eax*2 + 0x1e50]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
cmp edi, 2
jae 0x409331
lea edi, [edx + 2]
jmp 0x40934f
cmp edi, dword [esi + 0x960]
jbe 0x40934f
lea esp, [esp]
add edx, 2
cmp edi, dword [esi + edx*4 + 0x960]
ja 0x409340
mov dword [ebp - 0x38], edx
mov eax, edi
mov ecx, edi
shl eax, 7
add eax, 0x48c
shl ecx, 5
mov dword [ebp - 0x48], eax
add ecx, 0xbcc4
imul eax, dword [ebp - 0x30], 0x110
add ecx, esi
mov ebx, dword [ebp - 0x48]
add eax, 0xd2b
add eax, edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x30], eax
mov eax, 0xffff4542
sub eax, esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + edx*4 + 4]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], ecx
mov eax, dword [eax]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
cmp edi, 5
jae 0x4093b7
mov eax, dword [ebp - 0x7c]
add eax, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], eax
jmp 0x4093c5
mov dword [ebp - 0x50], 0x70c
mov dword [ebp - 0x5c], 0x2a6
mov eax, dword [ebp - 0x34]
cmp eax, 0x80
jae 0x4093da
and eax, 0x7f
add eax, dword [ebp - 0x50]
mov eax, dword [esi + eax*4]
jmp 0x409411
cmp eax, 0x20000
sbb edx, edx
and edx, 0xfffffff6
add edx, 0x10
mov ecx, edx
shr eax, cl
movzx ecx, byte [eax + esi + 0x2cb0]
mov eax, dword [ebp - 0x5c]
add eax, edx
mov edx, dword [ebp - 0x38]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi + eax*4]
and ecx, 0xf
add eax, dword [esi + ecx*4 + 0x11f0]
mov ecx, dword [ebp - 0x58]
add eax, dword [ebp - 0x48]
cmp eax, dword [ecx - 0xc]
jae 0x40942d
mov dword [ecx - 0xc], eax
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ecx - 4], edi
mov dword [ecx], eax
xor eax, eax
mov word [ecx - 6], ax
cmp edi, dword [esi + edx*4 + 0x960]
lea eax, [esi + 0x960]
jne 0x409447
add edx, 2
mov dword [ebp - 0x38], edx
cmp edx, dword [ebp - 0x44]
je 0x409457
add dword [ebp - 0x30], 4
inc edi
sub ebx, 0xffffff80
add ecx, 0x20
jmp 0x40938d
mov ebx, dword [ebp - 0x2c]
mov ecx, 1
mov dword [ebp - 0x40], ecx
cmp ebx, ecx
je 0x40a113
mov dword [ebp - 0x2c], ebx
lea ecx, [ecx]
cmp ecx, 0x7c0
jae 0x40a0af
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0040bff0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x5c], ecx
cmp ecx, dword [esi + 0x30]
jae 0x40a0a1
mov edx, dword [ebp - 0x40]
mov edi, edx
inc dword [ebp - 0x68]
shl edi, 5
add edi, esi
mov dword [ebp - 0x34], edi
mov eax, dword [edi + 0xbcc0]
sub edx, eax
cmp eax, 1
jne 0x4094e5
cmp dword [edi + 0xbcc4], 0
mov eax, 0x5ab568
mov ecx, 0x5ab544
cmove ecx, eax
shl edx, 5
movzx eax, word [edx + esi + 0xbcbc]
mov edx, dword [ebp - 0x8c]
movzx ecx, byte [ecx + eax]
mov dword [ebp - 0x4c], ecx
jmp 0x4095d4
movzx eax, word [edi + 0xbcbe]
mov ecx, dword [edi + 0xbcc4]
test ax, ax
je 0x409516
sub edx, eax
mov dword [ebp - 0x4c], 8
cmp word [edi + 0xbcbe], 1
jne 0x40953b
cmp ecx, 4
sbb eax, eax
neg eax
add eax, 7
jmp 0x409538
mov eax, edx
shl eax, 5
movzx eax, word [eax + esi + 0xbcbc]
cmp ecx, 4
jae 0x409531
movzx eax, byte [eax + 0x5ab55c]
jmp 0x409538
movzx eax, byte [eax + 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 dword [ebp - 0x4c], eax
shl edx, 5
lea eax, [edx + 0xbcb8]
mov edx, dword [eax + esi + 0x10]
add eax, esi
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x8c], edx
cmp ecx, 4
jae 0x4095b6
test ecx, ecx
jne 0x409578
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x8c], edx
jmp 0x4095c5
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x78], edx
cmp ecx, 1
jne 0x40959a
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x8c], edx
jmp 0x4095cb
mov edi, dword [eax + ecx*4 + 0x10]
xor ecx, 1
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4 + 0x10]
mov dword [ebp - 0x8c], edx
jmp 0x4095cb
mov eax, dword [eax + 0x18]
add ecx, 0xfffffffd
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x78]
mov dword [edi + 0xbcc8], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 0xbccc], eax
mov eax, dword [ebp - 8]
mov word [edi + 0xbcbc], cx
mov dword [edi + 0xbcd0], edx
mov dword [edi + 0xbcd4], eax
push dword [esi]
mov eax, dword [esi + 0xc]
call eax
mov edx, dword [edi + 0xbcb8]
add esp, 4
lea ecx, [eax - 1]
mov al, byte [ecx]
mov byte [ebp - 0x25], al
mov dword [ebp - 0x3c], ecx
sub ecx, dword [ebp - 0x78]
mov dword [ebp - 0x60], ecx
mov al, byte [ecx]
mov ecx, dword [ebp - 0x68]
and ecx, dword [esi + 0x4c]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x4c]
shl eax, 4
add eax, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x7c], eax
movzx ecx, word [esi + eax*2 + 0x1eb0]
mov eax, ecx
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, edx
mov dword [ebp - 0x64], eax
mov eax, dword [esi + ecx*4 + 0x760]
add eax, edx
xor edx, edx
mov dword [ebp - 0x44], edx
mov edx, dword [edi + 0xbcd8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x58], edx
cmp edx, 0x40000000
jae 0x409681
mov cl, byte [ebp - 0x25]
cmp byte [ebp - 0x26], cl
je 0x409685
cmp eax, edx
jbe 0x409691
mov dword [ebp - 0x30], 0
jmp 0x40974f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x94]
movzx edx, byte [eax - 1]
mov eax, dword [ebp - 0x68]
shl eax, 8
add edx, eax
mov eax, dword [esi + 0x50]
and edx, dword [esi + 0x48]
shl edx, cl
cmp dword [ebp - 0x4c], 7
lea ecx, [edx + edx*2]
movzx edx, byte [ebp - 0x25]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x54], ecx
jb 0x4096d9
lea eax, [esi + 0x760]
push eax
movzx eax, byte [ebp - 0x26]
push eax
push edx
push ecx
call fcn.0040a860
add esp, 0x10
jmp 0x409714
mov ebx, dword [ebp - 0x54]
xor edi, edi
or edx, 0x100
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [ebx + edx*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
add edi, dword [esi + eax*4 + 0x760]
cmp edx, 2
jae 0x4096e4
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x58]
add ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, edx
jae 0x40974f
xor eax, eax
mov dword [edi + 0xbcd8], ecx
mov dword [edi + 0xbce0], 1
mov edx, ecx
mov dword [edi + 0xbce4], 0xffffffff
mov word [edi + 0xbcde], ax
mov dword [ebp - 0x44], 1
mov ecx, dword [ebp - 0x4c]
mov edi, 0x7ff
sub edi, dword [ebp - 0x40]
lea eax, [ecx + 0xf28]
lea eax, [esi + eax*2]
mov dword [ebp - 0x84], eax
movzx eax, word [eax]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, dword [ebp - 0x64]
cmp dword [esi + 0x28], edi
mov dword [ebp - 0x88], eax
cmovbe edi, dword [esi + 0x28]
cmp ecx, 7
mov al, byte [ebp - 0x26]
mov cl, byte [ebp - 0x25]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x34]
jae 0x409829
cmp al, cl
jne 0x409829
cmp dword [ebp - 0x88], edx
jae 0x409829
cmp dword [edi + 0xbce0], 2
jb 0x4097c2
cmp dword [edi + 0xbce4], 0
je 0x409829
mov eax, dword [ebp - 0x7c]
movzx ecx, word [esi + eax*2 + 0x2030]
mov eax, dword [ebp - 0x4c]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x1e68]
mov ecx, dword [esi + ecx*4 + 0x760]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
add ecx, dword [ebp - 0x88]
cmp ecx, edx
jae 0x409823
xor eax, eax
mov dword [edi + 0xbcd8], ecx
mov cl, byte [ebp - 0x25]
xor edx, edx
mov word [edi + 0xbcde], ax
mov al, byte [ebp - 0x26]
mov dword [edi + 0xbce0], 1
mov dword [edi + 0xbce4], 0
jmp 0x40982c
mov al, byte [ebp - 0x26]
mov cl, byte [ebp - 0x25]
mov edx, dword [ebp - 0x44]
cmp dword [ebp - 0x38], 2
jb 0x40a090
mov edi, dword [esi + 0x30]
mov ebx, edi
cmp dword [ebp - 0x38], edi
cmovbe ebx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ebx
test edx, edx
jne 0x409991
cmp dword [ebp - 0x30], edx
je 0x409991
mov edx, dword [ebp - 0x3c]
cmp al, cl
je 0x40998c
mov ebx, dword [ebp - 0x38]
cmp ebx, 2
jbe 0x40998c
mov ecx, dword [ebp - 0x60]
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40998c
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40998c
inc edi
mov edx, 3
cmp edi, ebx
cmova edi, ebx
cmp edi, edx
jbe 0x4098ad
mov ebx, dword [ebp - 0x3c]
add ecx, edx
sub ebx, dword [ebp - 0x60]
nop
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4098ad
inc edx
inc ecx
cmp edx, edi
jb 0x4098a0
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x40]
inc ebx
and ebx, dword [esi + 0x4c]
add ecx, edx
movzx edi, byte [eax + 0x5ab544]
mov eax, ecx
cmp dword [ebp - 0x2c], ecx
mov dword [ebp - 0x70], ecx
cmovae eax, dword [ebp - 0x2c]
dec edx
movzx ecx, word [esi + edi*2 + 0x1e50]
mov dword [ebp - 0x60], edx
xor ecx, 0x7f0
mov dword [ebp - 0x2c], eax
mov edx, edi
shl edx, 4
add edx, ebx
shr ecx, 4
movzx eax, word [esi + edx*2 + 0x2030]
mov ecx, dword [esi + ecx*4 + 0x760]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + edx*2 + 0x1eb0]
mov edx, ecx
xor eax, 0x7f0
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x60]
shr eax, 4
add edx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + edi*2 + 0x1e68]
mov edi, dword [ebp - 0x2c]
shr eax, 4
add edx, dword [esi + eax*4 + 0x760]
imul eax, ebx, 0x110
add eax, ecx
add edx, dword [esi + eax*4 + 0x78b0]
mov eax, dword [ebp - 0x70]
add edx, dword [ebp - 0x30]
shl eax, 5
cmp edx, dword [eax + esi + 0xbcb8]
jae 0x409994
mov dword [eax + esi + 0xbcc0], ecx
mov ecx, 1
mov dword [eax + esi + 0xbcb8], edx
mov dword [eax + esi + 0xbcc4], 0
mov word [eax + esi + 0xbcbe], cx
mov dword [ebp - 0x2c], edi
jmp 0x409994
mov edi, dword [ebp - 0x2c]
jmp 0x409997
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
xor ebx, ebx
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + ebx*4 - 0x14]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x80], eax
mov al, byte [edx]
mov dword [ebp - 0x54], ecx
cmp al, byte [ecx]
jne 0x409ce1
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x409ce1
mov edx, 2
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x58], edx
jbe 0x4099f6
mov esi, dword [ebp + ebx*4 - 0x14]
add ecx, edx
mov edi, dword [ebp - 0x58]
lea ecx, [ecx]
mov al, byte [esi + ecx]
cmp al, byte [ecx]
jne 0x4099ed
inc edx
inc ecx
cmp edx, edi
jb 0x4099e0
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x40]
add ecx, edx
cmp edi, ecx
mov dword [ebp - 0x90], ecx
mov eax, ecx
cmovae eax, edi
mov edi, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
movzx ecx, word [esi + eax*2 + 0x1e68]
test ebx, ebx
jne 0x409a45
mov eax, dword [ebp - 0x7c]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x2030]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, dword [esi + ecx*4 + 0x760]
jmp 0x409aad
xor ecx, 0x7f0
shr ecx, 4
cmp dword [ebp - 0x44], 1
mov eax, dword [esi + ecx*4 + 0x760]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
movzx ebx, word [esi + ecx*2 + 0x1e80]
jne 0x409a75
shr ebx, 4
add eax, dword [esi + ebx*4 + 0x760]
jmp 0x409aad
movzx ecx, word [esi + ecx*2 + 0x1e98]
mov eax, 2
sub eax, dword [ebp - 0x44]
xor ebx, 0x7f0
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
shr ebx, 4
mov eax, dword [esi + ecx*4 + 0x760]
add eax, dword [esi + ebx*4 + 0x760]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x30], eax
imul eax, dword [ebp - 0x48], 0x110
add eax, 0x1e2c
add eax, edx
mov edx, dword [ebp - 0x44]
lea eax, [esi + eax*4]
mov dword [ebp - 0x94], eax
mov ebx, eax
mov eax, dword [ebp - 0x90]
shl eax, 5
add eax, 0xbcc4
add eax, esi
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x30]
cmp ecx, dword [eax - 0xc]
jae 0x409afa
mov dword [eax - 0xc], ecx
xor ecx, ecx
mov dword [eax - 4], edi
mov dword [eax], edx
mov word [eax - 6], cx
dec edi
sub ebx, 4
sub eax, 0x20
cmp edi, 2
jae 0x409ae2
test edx, edx
mov edx, dword [ebp - 0x60]
lea eax, [edx + 1]
jne 0x409b13
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x30]
add ecx, eax
cmp ecx, dword [ebp - 0x38]
cmova ecx, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x90], eax
cmp eax, ecx
ja 0x409cd8
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
add ebx, eax
mov edi, dword [ebp - 0x70]
add ecx, eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x2c], edi
mov al, byte [ebx - 2]
cmp al, byte [ecx - 2]
jne 0x409e23
mov al, byte [ebx - 1]
mov dword [ebp - 0x2c], edi
cmp al, byte [ecx - 1]
jne 0x409e23
mov ecx, dword [ebp - 0x68]
lea eax, [esi + 0x760]
push eax
mov eax, dword [ebp - 0x54]
add ecx, edx
mov edi, ecx
shl ecx, 8
and edi, dword [esi + 0x4c]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [edx + eax - 1]
add eax, ecx
mov ecx, dword [esi + 0x94]
and eax, dword [esi + 0x48]
shl eax, cl
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x50]
lea eax, [eax + ecx*2]
push eax
call fcn.0040a860
mov ecx, dword [ebp - 0x4c]
add esp, 0x10
mov edx, dword [ebp - 0x30]
movzx ecx, byte [ecx + 0x5ab55c]
shl ecx, 4
add ecx, edi
movzx ecx, word [esi + ecx*2 + 0x1eb0]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x760]
mov ecx, dword [ebp - 0x94]
add eax, dword [ecx]
add edx, eax
lea eax, [edi + 1]
and eax, dword [esi + 0x4c]
mov dword [ebp - 0x94], eax
mov edi, dword [ebp - 0x9c]
movzx ecx, word [esi + eax*2 + 0x20d0]
movzx eax, word [esi + eax*2 + 0x1f50]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x760]
add ecx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + 0x1e5a]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + 0x1e72]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
add edx, ecx
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x90]
cmp edx, edi
jae 0x409c70
mov ecx, dword [ebp - 0x98]
mov esi, dword [ebp - 0x80]
mov al, byte [esi + ecx]
cmp al, byte [ecx]
jne 0x409c6d
inc edx
inc ecx
cmp edx, edi
jb 0x409c60
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x60]
add eax, edx
mov ecx, eax
mov ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x70], ecx
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
or eax, 0xffffffff
sub eax, edi
shl ecx, 5
add edx, eax
imul eax, dword [ebp - 0x94], 0x110
add eax, edx
mov eax, dword [esi + eax*4 + 0x78b0]
add eax, dword [ebp - 0x30]
cmp eax, dword [ecx + esi + 0xbcb8]
jae 0x409cdb
mov dword [ecx + esi + 0xbcb8], eax
lea eax, [edi + 1]
mov edi, dword [ebp - 0x2c]
mov dword [ecx + esi + 0xbcc0], edx
mov word [ecx + esi + 0xbcbe], ax
mov dword [ecx + esi + 0xbcc4], ebx
mov dword [ebp - 0x2c], edi
jmp 0x409cde
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, 4
jb 0x4099a3
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
cmp ecx, edx
jbe 0x409d2e
xor eax, eax
mov dword [ebp - 0x5c], edx
xor ecx, ecx
cmp edx, dword [esi + 0x960]
jbe 0x409d1e
jmp 0x409d10
add eax, 2
mov ecx, eax
cmp edx, dword [esi + eax*4 + 0x960]
ja 0x409d10
mov dword [esi + eax*4 + 0x960], edx
lea eax, [ecx + 2]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
cmp ecx, dword [ebp - 0x34]
jb 0x40a08d
mov eax, dword [ebp - 0x84]
movzx eax, word [eax]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x760]
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x40]
add eax, ecx
cmp edi, eax
cmovae eax, edi
mov edi, dword [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x5c], ebx
cmp edi, dword [esi + 0x960]
jbe 0x409d7f
add ebx, 2
cmp edi, dword [esi + ebx*4 + 0x960]
ja 0x409d70
mov dword [ebp - 0x5c], ebx
lea eax, [ebx*4]
mov ebx, dword [ebp - 0x34]
mov edx, dword [eax + esi + 0x964]
cmp edx, 0x20000
mov dword [ebp - 0x64], eax
mov eax, edx
sbb ecx, ecx
mov dword [ebp - 0x60], edx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2cb0]
lea eax, [eax + ecx*2]
imul ecx, dword [ebp - 0x48], 0x110
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
add eax, edi
add edi, 3
shl eax, 8
add ecx, 0xd2b
mov dword [ebp - 0x58], eax
add ecx, ebx
add ebx, dword [ebp - 0x40]
shl ebx, 5
add ebx, 0xbcc4
add ebx, esi
lea ecx, [esi + ecx*4]
mov eax, dword [ecx]
add eax, dword [ebp - 0x84]
mov dword [ebp - 0x70], ecx
mov ecx, 3
mov dword [ebp - 0x80], eax
lea eax, [edi - 5]
cmp eax, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x30], edi
cmovb ecx, eax
mov eax, edx
cmp edx, 0x80
jae 0x409e2b
shl ecx, 7
and eax, 0x7f
add ecx, eax
mov ecx, dword [esi + ecx*4 + 0x1630]
jmp 0x409e42
mov ebx, dword [ebp - 0x44]
jmp 0x409cde
shl ecx, 6
and eax, 0xf
add ecx, dword [ebp - 0x54]
mov ecx, dword [esi + ecx*4 + 0x1230]
add ecx, dword [esi + eax*4 + 0x11f0]
mov eax, dword [ebp - 0x80]
add eax, ecx
mov dword [ebp - 0x98], eax
cmp eax, dword [ebx - 0xc]
jae 0x409e66
mov dword [ebx - 0xc], eax
lea eax, [edi - 3]
mov dword [ebx - 4], eax
lea eax, [edx + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx - 6], ax
mov eax, dword [ebp - 0x64]
lea ecx, [edi - 3]
mov dword [ebp - 0x7c], ecx
cmp ecx, dword [eax + esi + 0x960]
jne 0x40a077
mov ebx, dword [esi + 0x30]
mov ecx, dword [ebp - 0x3c]
add ebx, 0xfffffffe
sub ecx, edx
add ebx, edi
dec ecx
mov edx, edi
cmp ebx, dword [ebp - 0x38]
mov dword [ebp - 0x64], ecx
cmova ebx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
cmp edi, ebx
ja 0x40a02f
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0x3c]
add ecx, edi
mov dword [ebp - 0x48], eax
mov esi, eax
mov al, byte [ecx - 2]
cmp al, byte [esi - 2]
mov esi, dword [ebp - 0x6c]
jne 0x40a02f
mov esi, dword [ebp - 0x48]
mov al, byte [ecx - 1]
cmp al, byte [esi - 1]
mov esi, dword [ebp - 0x6c]
jne 0x40a02f
cmp edi, ebx
jae 0x409ef3
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x80], eax
mov edi, eax
mov edi, edi
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x409eed
inc edx
inc ecx
cmp edx, ebx
jb 0x409ee0
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
add eax, 0xfffffffd
mov edx, dword [ebp - 0x3c]
add edi, eax
lea eax, [esi + 0x760]
and edi, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [ecx + eax - 3]
push eax
movzx eax, byte [edx + ecx - 3]
push eax
movzx eax, byte [edx + ecx - 4]
add eax, dword [ebp - 0x58]
and eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x94]
shl eax, cl
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x50]
lea eax, [eax + ecx*2]
push eax
call fcn.0040a860
mov ecx, dword [ebp - 0x4c]
lea edx, [edi + 1]
and edx, dword [esi + 0x4c]
add esp, 0x10
mov ebx, dword [ebp - 0x54]
movzx ecx, byte [ecx + 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]
shl ecx, 4
add ecx, edi
mov edi, dword [ebp - 0x40]
add edi, ebx
movzx ecx, word [esi + ecx*2 + 0x1eb0]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x760]
add eax, dword [ebp - 0x98]
cmp dword [ebp - 0x2c], edi
movzx ecx, word [esi + edx*2 + 0x20b0]
mov dword [ebp - 0x80], eax
mov eax, edi
cmovae eax, dword [ebp - 0x2c]
xor ecx, 0x7f0
mov dword [ebp - 0x2c], eax
or eax, 0xffffffff
sub eax, dword [ebp - 0x7c]
add ebx, eax
shr ecx, 4
movzx eax, word [esi + edx*2 + 0x1f30]
xor eax, 0x7f0
shl edi, 5
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x760]
add ecx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + 0x1e58]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
movzx eax, word [esi + 0x1e70]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x760]
imul eax, edx, 0x110
add eax, ebx
add ecx, dword [esi + eax*4 + 0x78b0]
add ecx, dword [ebp - 0x80]
cmp ecx, dword [edi + esi + 0xbcb8]
jae 0x40a02c
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [edi + esi + 0xbcb8], ecx
mov word [edi + esi + 0xbcbe], ax
mov eax, dword [ebp - 0x60]
add eax, 4
mov dword [edi + esi + 0xbcc0], ebx
mov dword [edi + esi + 0xbcc4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [ebp - 0x5c], ebx
cmp ebx, dword [ebp - 0x50]
je 0x40a08d
lea eax, [ebx*4]
mov ebx, dword [ebp - 0x88]
mov edx, dword [eax + esi + 0x964]
cmp edx, 0x20000
mov dword [ebp - 0x64], eax
mov eax, edx
sbb ecx, ecx
mov dword [ebp - 0x60], edx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2cb0]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x70]
add ebx, 0x20
add dword [ebp - 0x58], 0x100
add ecx, 4
inc edi
jmp 0x409de4
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, ebx
jne 0x409470
jmp 0x40a113
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0x24], eax
jmp 0x40a113
mov eax, ecx
lea edx, [ecx + 1]
shl eax, 5
mov edi, dword [eax + esi + 0xbcb8]
mov eax, ecx
mov dword [ebp - 0x34], eax
cmp edx, ebx
ja 0x40a0f6
jmp 0x40a0d0
mov eax, edx
shl eax, 5
mov ecx, dword [eax + esi + 0xbcb8]
cmp edi, ecx
mov eax, edx
cmovb eax, dword [ebp - 0x34]
inc edx
cmp edi, ecx
mov dword [ebp - 0x34], eax
cmovb ecx, edi
mov edi, ecx
cmp edx, ebx
jbe 0x40a0d0
mov dword [ebp - 0x34], eax
mov ecx, eax
sub ecx, dword [ebp - 0x40]
je 0x40a10e
mov eax, dword [esi + 0x14]
add dword [esi + 0x34], ecx
push ecx
push dword [esi]
call eax
mov eax, dword [ebp - 0x34]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x40], ecx
mov eax, ebx
shl eax, 5
add eax, 0xbcb8
add eax, esi
nop
mov dword [eax], 0x40000000
lea eax, [eax - 0x20]
sub ebx, 1
jne 0x40a120
lea edx, [ecx + 1]
mov ebx, edx
mov dword [ebp - 0x38], edx
mov dword [esi + 0x1c], edx
add edx, 0x5e6
shl ebx, 5
shl edx, 5
add edx, esi
lea edi, [ebx + 0xbcc4]
add edi, esi
nop
shl ecx, 5
mov eax, dword [ecx + esi + 0xbcc4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
add eax, 0x5e6
shl eax, 5
mov eax, dword [eax + esi]
mov dword [ebp - 0x84], eax
movzx eax, word [ecx + esi + 0xbcbe]
mov ecx, dword [ebp - 0x84]
sub dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40a1c7
dec dword [ebp - 0x38]
sub edx, 0x20
sub ebx, 0x20
sub edi, 0x20
mov dword [edx], ecx
mov ecx, eax
sub dword [ebp - 0x40], ecx
lea eax, [esi + 0xbcc4]
add eax, ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x38]
cmp ecx, 1
jne 0x40a1ed
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0xffffffff
mov dword [eax], esi
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x40], 0
je 0x40a217
dec eax
mov dword [edx - 0x20], ecx
mov ecx, dword [ebp - 0x40]
sub edi, 0x20
sub ebx, 0x20
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
sub edx, 0x20
mov dword [edi], eax
jmp 0x40a150
lea ecx, [ebx + esi]
sub edi, 0x20
mov dword [ecx + 0xbcc4], 0
dec eax
mov ecx, dword [ebp - 0x50]
sub ebx, 0x20
dec ecx
mov dword [edx - 0x20], 1
sub edx, 0x20
mov dword [edi], 0xffffffff
jmp 0x40a1ca
mov edx, dword [ebp - 0x34]
pop edi
mov dword [esi + 0x18], eax
mov eax, ecx
mov dword [esi + 0x90], edx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x90], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret