Function at 0x4d1230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], edi
cmp dword [ebx + 0x18], ecx
je 0x4d1286
lea edx, [ecx + ecx*2]
add edx, edx
mov eax, dword [ebx + edx*8 + 0x74c]
lea edx, [ebx + edx*8 + 0x734]
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov dword [edi], ecx
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x1c], edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
cmp dword [ebx + 0x30], eax
jne 0x4d12a7
lea eax, [ebp - 0x40]
push eax
mov esi, ebx
call fcn.004d0fe0
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x4d12b3
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x68], eax
cmp eax, 2
jae 0x4d12d9
pop esi
mov dword [edi], 0xffffffff
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
cmp eax, 0x111
jbe 0x4d12e7
mov dword [ebp - 0x68], 0x111
mov eax, dword [ebx]
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 - 0x50], edi
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x25], al
mov dword [ebp - 0x64], edi
jmp 0x4d1310
lea edi, [edx*4]
mov eax, dword [edi + ebx + 0x34]
mov ecx, esi
sub ecx, eax
mov dword [ebp + edi - 0x14], eax
mov al, byte [ebp - 0x25]
dec ecx
cmp al, byte [ecx]
jne 0x4d1371
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x4d1371
mov eax, 2
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x68], eax
jbe 0x4d135c
lea edx, [esi + 2]
sub ecx, esi
mov al, byte [edx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x60]
jne 0x4d1359
inc eax
inc edx
mov dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x68]
jb 0x4d1345
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
mov dword [ebp + edi - 0x24], eax
cmp eax, dword [ebp + ecx - 0x24]
jbe 0x4d1379
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x64], edi
jmp 0x4d1379
mov dword [ebp + edi - 0x24], 0
inc edx
mov dword [ebp - 0x4c], edx
cmp edx, 4
jb 0x4d1310
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x44], edi
cmp edi, ecx
jb 0x4d13c0
mov edx, dword [ebp - 0x7c]
mov dword [edx], eax
lea eax, [edi - 1]
test eax, eax
je 0x4d13ae
add dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x14]
push eax
mov eax, dword [ebx]
push eax
call ecx
add esp, 8
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jb 0x4d1406
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebx + edx*4 + 0x31130]
mov edx, dword [ebp - 0x7c]
add ecx, 4
mov dword [edx], ecx
lea ecx, [eax - 1]
test ecx, ecx
je 0x4d23c0
mov eax, dword [ebx]
add dword [ebx + 0x30], 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.00503edf
mov esp, ebp
pop ebp
ret
mov edx, esi
sub edx, dword [ebp - 0x14]
mov cl, byte [edx - 1]
mov byte [ebp - 0x2d], cl
cmp eax, 2
jae 0x4d143e
cmp byte [ebp - 0x25], cl
je 0x4d143e
cmp edi, 2
jae 0x4d143e
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.00503edf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x58]
mov edi, dword [ebx + 0x44]
and eax, edx
and edx, dword [ebx + 0x54]
mov dword [ebx + 0x738], edi
movzx esi, byte [esi - 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x48]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, eax
shl edx, cl
movzx ecx, byte [ebp - 0x25]
add esi, edx
imul esi, esi, 0x600
add esi, dword [ebx + 0x60]
cmp edi, 7
jb 0x4d1493
lea eax, [ebx + 0x30f34]
push eax
movzx eax, byte [ebp - 0x2d]
push esi
call fcn.004d0ae0
add esp, 8
jmp 0x4d149e
lea edx, [ebx + 0x30f34]
call fcn.004d0aa0
mov esi, dword [ebp - 0x34]
mov ecx, edi
shl ecx, 4
add ecx, esi
movzx edx, word [ebx + ecx*2 + 0x32608]
lea ecx, [ebx + ecx*2 + 0x32608]
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30f34]
add edx, eax
mov dword [ebx + 0x764], edx
mov dword [ebx + 0x780], 0xffffffff
xor edx, edx
mov dword [ebx + 0x76c], edx
movzx eax, word [ecx]
movzx ecx, word [ebx + edi*2 + 0x32788]
xor eax, 0x7f0
xor ecx, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr ecx, 4
mov ecx, dword [ebx + ecx*4 + 0x30f34]
add ecx, eax
mov dword [ebp - 0x50], eax
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x64], ecx
cmp byte [ebp - 0x2d], al
jne 0x4d155c
mov eax, edi
shl eax, 4
add eax, esi
movzx eax, word [ebx + eax*2 + 0x327e8]
movzx esi, word [ebx + edi*2 + 0x327a0]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30f34]
add eax, ecx
cmp eax, dword [ebx + 0x764]
jae 0x4d155c
mov dword [ebx + 0x764], eax
mov dword [ebx + 0x780], edx
mov dword [ebx + 0x76c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
jb 0x4d156b
mov dword [ebp - 0x48], eax
jmp 0x4d1570
mov dword [ebp - 0x48], ecx
mov eax, ecx
cmp eax, 2
jae 0x4d1595
mov ecx, dword [ebx + 0x780]
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.00503edf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x77c], edx
mov dword [ebx + 0x754], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x758], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x75c], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x760], ecx
lea ecx, [eax + eax*2]
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x734]
jmp 0x4d15d0
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x4d15d0
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x24]
cmp esi, 2
jb 0x4d1643
mov edx, dword [ebp - 0x34]
push edx
mov edx, dword [ebx + 0x44]
mov eax, edi
mov ecx, ebx
call fcn.004d1080
add eax, dword [ebp - 0x64]
lea ecx, [esi + esi*2 + 0x75]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x110
add eax, esi
shl ecx, 4
add esp, 4
lea eax, [ebx + eax*4 + 0x378b4]
add ecx, ebx
mov edi, edi
mov edx, dword [eax]
add edx, dword [ebp - 0x44]
cmp edx, dword [ecx - 0x1c]
jae 0x4d1637
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 0x4d1620
inc edi
cmp edi, 4
jb 0x4d15e1
mov ecx, dword [ebx + 0x44]
movzx edx, word [ebx + ecx*2 + 0x32788]
mov ecx, dword [ebp - 0x24]
shr edx, 4
mov eax, dword [ebx + edx*4 + 0x30f34]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
cmp ecx, 2
jb 0x4d166f
inc ecx
jmp 0x4d1674
mov ecx, 2
mov dword [ebp - 0x60], ecx
cmp ecx, dword [ebp - 0x2c]
ja 0x4d176e
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp ecx, dword [ebx + 0x31134]
jbe 0x4d169f
lea ecx, [ecx]
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x31134]
ja 0x4d1690
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
imul eax, eax, 0x110
add eax, ecx
lea edi, [ecx + ecx*2 + 0x75]
lea eax, [ebx + eax*4 + 0x3306c]
shl edi, 4
mov dword [ebp - 0x4c], eax
add edi, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebx + edx*4 + 0x31138]
mov edx, dword [eax]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x64], edi
lea eax, [ecx - 2]
cmp ecx, 5
jb 0x4d16df
mov eax, 3
cmp esi, 0x80
jae 0x4d16f5
shl eax, 7
add eax, esi
add edx, dword [ebx + eax*4 + 0x31dc8]
jmp 0x4d1732
cmp esi, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
mov edi, esi
shr edi, cl
shl eax, 5
add eax, ecx
movzx edi, byte [edi + ebx + 0x30734]
lea ecx, [edi + eax*2 + 0xc672]
mov ecx, dword [ebx + ecx*4]
mov edi, dword [ebp - 0x64]
mov eax, esi
and eax, 0xf
add ecx, dword [ebx + eax*4 + 0x325c8]
add edx, ecx
mov ecx, dword [ebp - 0x60]
cmp edx, dword [edi - 0x1c]
jae 0x4d1747
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 + 0x31134]
jne 0x4d175e
add eax, 2
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x40]
je 0x4d176e
add dword [ebp - 0x4c], 4
inc ecx
mov dword [ebp - 0x60], ecx
add edi, 0x30
jmp 0x4d16bd
mov edi, 1
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x48], edi
je 0x4d23b0
nop
lea edx, [ebp - 0x64]
push edx
mov esi, ebx
call fcn.004d0fe0
add esp, 4
mov dword [ebp - 0x78], eax
cmp eax, dword [ebx + 0x2c]
jae 0x4d23a7
inc dword [ebp - 0x74]
lea esi, [edi + edi*2]
shl esi, 4
mov ecx, dword [esi + ebx + 0x73c]
mov eax, dword [esi + ebx + 0x74c]
add esi, ebx
mov dword [ebp - 0x50], esi
test ecx, ecx
je 0x4d1814
dec eax
cmp dword [esi + 0x740], 0
je 0x4d17ff
mov ecx, dword [esi + 0x744]
lea ecx, [ecx + ecx*2]
add ecx, ecx
cmp dword [esi + 0x748], 4
mov ecx, dword [ebx + ecx*8 + 0x738]
jae 0x4d17ef
mov ecx, dword [ecx*4 + 0x531d7c]
mov edx, dword [ecx*4 + 0x531d1c]
jmp 0x4d1820
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 + 0x531d1c]
jmp 0x4d1820
lea edx, [eax + eax*2]
add edx, edx
mov ecx, dword [ebx + edx*8 + 0x738]
mov edx, dword [ecx*4 + 0x531d1c]
jmp 0x4d1820
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, dword [ebx + ecx*8 + 0x738]
dec edi
cmp eax, edi
jne 0x4d184c
cmp dword [esi + 0x750], 0
jne 0x4d183d
mov edx, dword [edx*4 + 0x531dac]
mov dword [ebp - 0x54], edx
jmp 0x4d18eb
mov eax, dword [edx*4 + 0x531d1c]
mov dword [ebp - 0x54], eax
jmp 0x4d18eb
mov ecx, dword [esi + 0x73c]
test ecx, ecx
je 0x4d1877
cmp dword [esi + 0x740], 0
je 0x4d1877
mov ecx, dword [esi + 0x748]
mov eax, dword [esi + 0x744]
mov edx, dword [edx*4 + 0x531d7c]
mov dword [ebp - 0x2c], ecx
jmp 0x4d189e
mov ecx, dword [esi + 0x750]
mov dword [ebp - 0x2c], ecx
cmp ecx, 4
jae 0x4d1894
mov ecx, dword [edx*4 + 0x531d7c]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x4d18a1
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 - 0x54], edx
lea eax, [eax + eax*2]
add eax, eax
lea edx, [ebx + eax*8 + 0x734]
cmp ecx, 4
jae 0x4d19c4
mov eax, dword [edx + ecx*4 + 0x20]
mov dword [ebp - 0x14], eax
mov eax, 1
cmp ecx, eax
jb 0x4d18d7
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 0x4d18e8
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 - 0x50]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x738], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x754], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x758], ecx
mov ecx, dword [esi + 0x734]
mov dword [esi + 0x75c], edx
mov dword [esi + 0x760], eax
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
push edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], 0
call eax
mov cl, byte [eax - 1]
lea edi, [eax - 1]
mov eax, edi
sub eax, dword [ebp - 0x14]
mov byte [ebp - 0x25], cl
mov ecx, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x5c], eax
mov al, byte [eax]
mov byte [ebp - 0x2d], al
mov eax, dword [ebx + 0x58]
and eax, dword [ebp - 0x74]
shl ecx, 4
mov dword [ebp - 0x50], eax
add eax, ecx
movzx edx, word [ebx + eax*2 + 0x32608]
shr edx, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + edx*4 + 0x30f34]
add eax, dword [ebp - 0x2c]
movzx edx, byte [edi - 1]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x48]
mov ecx, 8
sub cl, al
shr edx, cl
mov ecx, dword [ebp - 0x74]
and ecx, dword [ebx + 0x54]
add esp, 4
mov dword [ebp - 0x44], ecx
mov ecx, eax
mov eax, dword [ebp - 0x44]
shl eax, cl
mov dword [ebp - 0x60], edi
add edx, eax
imul edx, edx, 0x600
add edx, dword [ebx + 0x60]
cmp dword [ebp - 0x54], 7
jb 0x4d19e1
movzx ecx, byte [ebp - 0x25]
lea eax, [ebx + 0x30f34]
push eax
movzx eax, byte [ebp - 0x2d]
push edx
call fcn.004d0ae0
add esp, 8
jmp 0x4d1a30
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 0x4d18eb
movzx eax, byte [ebp - 0x25]
or eax, 0x100
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], eax
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 - 0x38]
add ecx, dword [ebx + eax*4 + 0x30f34]
mov eax, dword [ebp - 0x4c]
add eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x4c], eax
cmp eax, 0x10000
jb 0x4d19f4
mov eax, ecx
mov edx, dword [ebp - 0x58]
add edx, eax
mov dword [ebp - 0x58], edx
cmp edx, dword [esi + 0x764]
jae 0x4d1a6a
mov dword [esi + 0x764], edx
mov edx, dword [ebp - 0x3c]
mov dword [esi + 0x77c], edx
mov dword [esi + 0x780], 0xffffffff
mov dword [esi + 0x76c], 0
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x34]
movzx ecx, word [ebx + eax*2 + 0x32608]
mov edx, dword [ebp - 0x54]
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + ecx*4 + 0x30f34]
movzx ecx, word [ebx + edx*2 + 0x32788]
add eax, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x2d]
xor ecx, 0x7f0
shr ecx, 4
mov ecx, dword [ebx + ecx*4 + 0x30f34]
add ecx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
cmp dl, byte [ebp - 0x25]
jne 0x4d1b22
mov eax, dword [esi + 0x77c]
cmp eax, dword [ebp - 0x3c]
jae 0x4d1aca
cmp dword [esi + 0x780], 0
je 0x4d1b22
mov edx, dword [ebp - 0x54]
movzx eax, word [ebx + edx*2 + 0x327a0]
mov edx, dword [ebp - 0x34]
movzx edx, word [ebx + edx*2 + 0x327e8]
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr edx, 4
add eax, dword [ebx + edx*4 + 0x30f34]
add eax, ecx
cmp eax, dword [esi + 0x764]
ja 0x4d1b22
mov dword [esi + 0x764], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x77c], eax
xor eax, eax
mov dword [esi + 0x780], eax
mov dword [esi + 0x76c], eax
mov dword [ebp - 0x40], 1
mov ecx, dword [ebx + 0x28]
mov eax, 0xfff
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
jae 0x4d1b39
mov ecx, eax
mov dword [ebp - 0x4c], eax
cmp ecx, 2
jb 0x4d2393
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x68], ecx
cmp ecx, esi
jbe 0x4d1b52
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x40], 0
jne 0x4d1ca3
mov dl, byte [ebp - 0x25]
cmp byte [ebp - 0x2d], dl
je 0x4d1ca3
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
cmp eax, ecx
jbe 0x4d1b77
mov eax, ecx
mov dword [ebp - 0x38], ecx
mov esi, 1
cmp eax, esi
jbe 0x4d1b96
mov ecx, dword [ebp - 0x5c]
lea eax, [edi + 1]
sub ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x4d1b96
inc esi
inc eax
cmp esi, dword [ebp - 0x38]
jb 0x4d1b88
dec esi
mov dword [ebp - 0x2c], esi
cmp esi, 2
jb 0x4d1ca3
mov eax, dword [ebp - 0x54]
mov eax, dword [eax*4 + 0x531d1c]
mov ecx, dword [ebp - 0x74]
mov edx, eax
shl edx, 4
inc ecx
and ecx, dword [ebx + 0x58]
mov dword [ebp - 0x40], eax
movzx eax, word [ebx + eax*2 + 0x32788]
add edx, ecx
mov dword [ebp - 0x44], edx
movzx edx, word [ebx + edx*2 + 0x32608]
xor edx, 0x7f0
xor eax, 0x7f0
shr edx, 4
shr eax, 4
mov dword [ebp - 0x5c], edx
mov edx, dword [ebx + eax*4 + 0x30f34]
mov eax, dword [ebp - 0x5c]
add edx, dword [ebx + eax*4 + 0x30f34]
mov eax, dword [ebp - 0x3c]
add edx, dword [ebp - 0x58]
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], esi
cmp eax, esi
jae 0x4d1c32
lea esi, [eax + eax*2]
add esi, esi
lea esi, [ebx + esi*8 + 0x734]
mov dword [ebp - 0x5c], esi
mov esi, dword [ebp - 0x38]
sub esi, eax
add eax, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
add eax, 0x30
dec esi
mov dword [eax], 0x40000000
jne 0x4d1c26
mov eax, dword [ebp - 0x44]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x327e8]
mov esi, dword [ebp - 0x40]
movzx esi, word [ebx + esi*2 + 0x327a0]
add ecx, dword [ebp - 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30f34]
add eax, dword [ebx + ecx*4 + 0x378b4]
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x734]
lea ecx, [ebx + ecx*8 + 0x734]
jae 0x4d1ca3
mov edx, dword [ebp - 0x3c]
inc edx
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dl, byte [edi]
mov eax, edi
sub eax, dword [ebp + ecx*4 - 0x14]
dec eax
mov dword [ebp - 0x58], eax
cmp dl, byte [eax]
jne 0x4d1f9f
mov al, byte [edi + 1]
mov ecx, dword [ebp - 0x58]
cmp al, byte [ecx + 1]
jne 0x4d1f9f
mov esi, 2
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x68], esi
jbe 0x4d1d01
lea eax, [edi + 2]
sub ecx, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx + eax]
jne 0x4d1cfe
inc esi
inc eax
cmp esi, dword [ebp - 0x68]
jb 0x4d1cf0
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
add eax, esi
mov dword [ebp - 0x5c], eax
cmp edx, eax
jae 0x4d1d2f
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebx + ecx*8 + 0x734]
mov dword [ebp - 0x48], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x4d1d23
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x54]
mov ecx, ebx
mov dword [ebp - 0x44], esi
call fcn.004d1080
mov ecx, dword [ebp - 0x50]
add eax, dword [ebp - 0x80]
imul ecx, ecx, 0x110
mov dword [ebp - 0x70], ecx
mov edx, esi
add edx, ecx
lea ecx, [ebx + edx*4 + 0x378b4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx + ecx*2 + 0x75]
shl ecx, 4
add esp, 4
mov dword [ebp - 0x6c], eax
add ecx, ebx
mov edx, dword [ebp - 0x38]
mov edx, dword [edx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x4d1d96
mov dword [ecx - 0x1c], edx
mov edx, dword [ebp - 0x3c]
mov dword [ecx - 4], edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
dec dword [ebp - 0x34]
sub dword [ebp - 0x38], 4
sub ecx, 0x30
cmp dword [ebp - 0x34], 2
jae 0x4d1d75
cmp dword [ebp - 0x2c], 0
jne 0x4d1db2
lea eax, [esi + 1]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 1]
add ecx, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
cmp ecx, edx
jbe 0x4d1dcc
mov ecx, edx
mov dword [ebp - 0x38], edx
cmp eax, ecx
jae 0x4d1dec
mov edx, dword [ebp - 0x58]
lea ecx, [eax + edi]
sub edx, edi
mov al, byte [ecx]
cmp al, byte [ecx + edx]
mov eax, dword [ebp - 0x34]
jne 0x4d1dec
inc eax
inc ecx
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x38]
jb 0x4d1dd8
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
mov dword [ebp - 0x34], eax
cmp eax, 2
jb 0x4d1f9f
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebx + 0x48]
add eax, esi
mov dword [ebp - 0x38], eax
lea eax, [ebx + 0x30f34]
push eax
movzx eax, byte [esi + ecx]
movzx ecx, byte [esi + edi]
movzx esi, byte [edi + esi - 1]
mov edi, dword [ebp - 0x38]
and edi, dword [ebx + 0x54]
mov dword [ebp - 0x5c], ecx
mov ecx, 8
sub cl, dl
shr esi, cl
mov ecx, edx
shl edi, cl
mov ecx, dword [ebp - 0x5c]
add esi, edi
imul esi, esi, 0x600
add esi, dword [ebx + 0x60]
push esi
call fcn.004d0ae0
mov edx, dword [ebp - 0x54]
mov edx, dword [edx*4 + 0x531d7c]
mov edi, dword [ebx + 0x58]
mov ecx, dword [ebp - 0x38]
and ecx, edi
mov esi, edx
mov edx, dword [edx*4 + 0x531d1c]
shl esi, 4
add ecx, esi
movzx ecx, word [ebx + ecx*2 + 0x32608]
mov esi, dword [ebp - 0x44]
shr ecx, 4
add eax, dword [ebx + ecx*4 + 0x30f34]
mov ecx, dword [ebp - 0x70]
add ecx, esi
add eax, dword [ebx + ecx*4 + 0x378b4]
mov ecx, dword [ebp - 0x74]
add eax, dword [ebp - 0x6c]
lea ecx, [ecx + esi + 1]
and ecx, edi
mov edi, edx
shl edi, 4
add edi, ecx
mov dword [ebp - 0x5c], edx
movzx edx, word [ebx + edx*2 + 0x32788]
mov dword [ebp - 0x70], edi
movzx edi, word [ebx + edi*2 + 0x32608]
xor edx, 0x7f0
shr edx, 4
mov edx, dword [ebx + edx*4 + 0x30f34]
xor edi, 0x7f0
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30f34]
mov edi, dword [ebp - 0x3c]
add edx, eax
mov eax, dword [ebp - 0x34]
add eax, esi
lea eax, [eax + edi + 1]
mov edi, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x44], eax
cmp edi, eax
jae 0x4d1f1c
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x734]
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x48]
sub eax, edi
add edi, eax
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x6c]
lea esp, [esp]
add edi, 0x30
dec eax
mov dword [edi], 0x40000000
jne 0x4d1f10
mov eax, dword [ebp - 0x70]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x327e8]
mov edi, dword [ebp - 0x5c]
movzx edi, word [ebx + edi*2 + 0x327a0]
add ecx, dword [ebp - 0x34]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30f34]
mov edi, dword [ebp - 0x60]
add eax, dword [ebx + ecx*4 + 0x378b4]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x734]
lea ecx, [ebx + ecx*8 + 0x734]
jae 0x4d1f9f
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
lea edx, [esi + eax + 1]
mov dword [ecx + 0x18], edx
mov edx, 1
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jb 0x4d1cb1
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x68]
cmp edx, ecx
jbe 0x4d1fe9
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x78], edx
cmp ecx, dword [ebx + 0x31134]
jbe 0x4d1fdc
jmp 0x4d1fd0
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x31134]
ja 0x4d1fd0
mov dword [ebx + eax*4 + 0x31134], ecx
add eax, 2
mov dword [ebp - 0x64], eax
cmp edx, dword [ebp - 0x40]
jb 0x4d2393
mov ecx, dword [ebp - 0x54]
movzx edx, word [ebx + ecx*2 + 0x32788]
shr edx, 4
mov eax, dword [ebx + edx*4 + 0x30f34]
add eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x3c]
cmp edx, eax
jae 0x4d203f
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, edx
add edx, eax
lea ecx, [ebx + ecx*8 + 0x734]
mov dword [ebp - 0x48], edx
add ecx, 0x30
dec eax
mov dword [ecx], 0x40000000
jne 0x4d2033
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x58], eax
cmp ecx, dword [ebx + 0x31134]
jbe 0x4d205f
nop
add eax, 2
cmp ecx, dword [ebx + eax*4 + 0x31134]
ja 0x4d2050
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + eax*4 + 0x31138]
cmp eax, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
mov edx, eax
shr edx, cl
mov dword [ebp - 0x34], eax
movzx edx, byte [edx + ebx + 0x30734]
lea ecx, [edx + ecx*2]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x50]
imul ecx, ecx, 0x110
add ecx, edx
lea ecx, [ebx + ecx*4 + 0x3306c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x3c]
lea ecx, [edx + ecx + 0x27]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, ebx
lea esi, [edx + 1]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x50]
mov edx, dword [edx]
add edx, dword [ebp - 0x84]
lea ecx, [esi - 1]
cmp ecx, 5
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edx
lea ecx, [esi - 3]
jb 0x4d20d6
mov ecx, 3
cmp eax, 0x80
jae 0x4d20eb
shl ecx, 7
add ecx, eax
add edx, dword [ebx + ecx*4 + 0x31dc8]
jmp 0x4d2109
shl ecx, 6
add ecx, dword [ebp - 0x68]
mov edx, eax
mov ecx, dword [ebx + ecx*4 + 0x319c8]
and edx, 0xf
add ecx, dword [ebx + edx*4 + 0x325c8]
mov edx, dword [ebp - 0x40]
add edx, ecx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x40], edx
cmp edx, dword [ecx - 0x1c]
jae 0x4d2129
mov dword [ecx - 0x1c], edx
mov edx, dword [ebp - 0x3c]
mov dword [ecx - 4], edx
lea edx, [eax + 4]
mov dword [ecx], edx
mov dword [ecx - 0x14], 0
mov edx, dword [ebp - 0x58]
lea ecx, [esi - 1]
cmp ecx, dword [ebx + edx*4 + 0x31134]
jne 0x4d2385
mov edx, dword [ebp - 0x4c]
mov ecx, edi
sub ecx, eax
mov eax, dword [ebx + 0x2c]
add eax, esi
dec ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], eax
cmp eax, edx
jbe 0x4d2158
mov eax, edx
mov dword [ebp - 0x38], edx
cmp esi, eax
jae 0x4d218d
mov edx, edi
sub edx, ecx
lea eax, [ecx + esi]
mov dword [ebp - 0x6c], edx
jmp 0x4d2176
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
jne 0x4d218d
mov edx, dword [ebp - 0x2c]
inc edx
inc eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x70], eax
cmp edx, dword [ebp - 0x38]
jb 0x4d2170
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 0x4d2341
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x58]
lea edx, [edx + esi - 1]
and eax, edx
mov dword [ebp - 0x80], eax
lea eax, [ebx + 0x30f34]
push eax
movzx eax, byte [ecx + esi - 1]
movzx ecx, byte [edi + esi - 1]
movzx edi, byte [edi + esi - 2]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebx + 0x48]
mov esi, dword [ebp - 0x6c]
and esi, dword [ebx + 0x54]
mov ecx, 8
sub cl, dl
shr edi, cl
mov ecx, edx
shl esi, cl
mov ecx, dword [ebp - 0x70]
add edi, esi
imul edi, edi, 0x600
add edi, dword [ebx + 0x60]
push edi
call fcn.004d0ae0
mov ecx, dword [ebp - 0x54]
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 - 0x80]
mov esi, edx
mov edx, dword [edx*4 + 0x531d1c]
movzx edi, word [ebx + edx*2 + 0x32788]
shl esi, 4
add esi, ecx
movzx esi, word [ebx + esi*2 + 0x32608]
shr esi, 4
add eax, dword [ebx + esi*4 + 0x30f34]
mov esi, edx
add eax, dword [ebp - 0x40]
shl esi, 4
inc ecx
and ecx, dword [ebx + 0x58]
xor edi, 0x7f0
add esi, ecx
mov dword [ebp - 0x70], esi
movzx esi, word [ebx + esi*2 + 0x32608]
xor esi, 0x7f0
shr esi, 4
mov dword [ebp - 0x80], edx
mov edx, dword [ebx + esi*4 + 0x30f34]
mov esi, dword [ebp - 0x44]
shr edi, 4
add edx, dword [ebx + edi*4 + 0x30f34]
mov edi, dword [ebp - 0x3c]
add edx, eax
mov eax, dword [ebp - 0x2c]
lea eax, [eax + esi - 1]
lea eax, [eax + edi + 1]
mov edi, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x5c], eax
cmp edi, eax
jae 0x4d22bc
lea edi, [edi + edi*2]
add edi, edi
lea edi, [ebx + edi*8 + 0x734]
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x48]
sub eax, edi
add edi, eax
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x6c]
jmp 0x4d22b0
add edi, 0x30
dec eax
mov dword [edi], 0x40000000
jne 0x4d22b0
mov eax, dword [ebp - 0x70]
imul ecx, ecx, 0x110
movzx eax, word [ebx + eax*2 + 0x327e8]
mov edi, dword [ebp - 0x80]
movzx edi, word [ebx + edi*2 + 0x327a0]
add ecx, dword [ebp - 0x2c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [ebx + eax*4 + 0x30f34]
shr edi, 4
add eax, dword [ebx + edi*4 + 0x30f34]
mov edi, dword [ebp - 0x60]
add eax, dword [ebx + ecx*4 + 0x378b4]
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add eax, edx
cmp eax, dword [ebx + ecx*8 + 0x734]
lea ecx, [ebx + ecx*8 + 0x734]
jae 0x4d2341
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
lea edx, [esi + eax]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x18], edx
mov edx, 1
add eax, 4
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x58]
add eax, 2
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x64]
je 0x4d2393
mov eax, dword [ebx + eax*4 + 0x31138]
mov dword [ebp - 0x34], eax
cmp eax, 0x80
jb 0x4d2385
cmp eax, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
mov edx, eax
shr edx, cl
mov dword [ebp - 0x6c], ecx
movzx ecx, byte [edx + ebx + 0x30734]
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x68], ecx
add dword [ebp - 0x50], 4
add dword [ebp - 0x78], 0x30
inc esi
jmp 0x4d20b5
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov edi, eax
cmp eax, dword [ebp - 0x48]
jne 0x4d1780
jmp 0x4d23b0
mov ecx, dword [ebp - 0x64]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x20], eax
mov edx, dword [ebp - 0x7c]
push edx
mov eax, edi
mov ecx, ebx
call fcn.004d1140
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00503edf
mov esp, ebp
pop ebp
ret