Function at 0x4d76e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x522104]
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 - 0x68], esi
mov dword [ebp - 0x70], eax
cmp dword [esi + 0x34], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
jne 0x4d772e
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.004da940
mov ecx, dword [ebp - 0x38]
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], ecx
jmp 0x4d773a
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x28]
cmp eax, 2
jb 0x4d8a5d
mov edi, dword [esi + 0xc]
mov ecx, 0x111
push dword [esi]
cmp eax, ecx
cmova eax, ecx
mov ecx, edi
mov dword [ebp - 0x34], eax
call dword [0x4ee33c]
call edi
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x78], 0
xor ebx, ebx
lea edx, [eax - 1]
mov al, byte [edx]
mov dword [ebp - 0x74], edx
mov byte [ebp - 0x25], al
nop dword [eax]
mov eax, dword [esi + ebx*4 + 0x38]
mov edi, edx
sub edi, eax
mov dword [ebp + ebx*4 - 0x14], eax
mov al, byte [ebp - 0x25]
cmp al, byte [edi]
jne 0x4d77db
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x4d77db
mov edx, 2
cmp ecx, edx
jbe 0x4d77c3
mov eax, dword [ebp - 0x74]
sub edi, eax
mov esi, dword [ebp - 0x34]
lea ecx, [eax + 2]
nop
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x4d77bd
inc edx
inc ecx
cmp edx, esi
jb 0x4d77b0
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x78]
mov eax, ebx
mov dword [ebp + ebx*4 - 0x24], edx
cmp edx, dword [ebp + edi*4 - 0x24]
mov edx, dword [ebp - 0x74]
cmovbe eax, edi
mov dword [ebp - 0x78], eax
jmp 0x4d77e6
mov eax, dword [ebp - 0x78]
mov dword [ebp + ebx*4 - 0x24], 0
inc ebx
cmp ebx, 4
jb 0x4d7780
mov ebx, dword [ebp + eax*4 - 0x24]
mov ecx, dword [esi + 0x30]
cmp ebx, ecx
jb 0x4d782c
mov dword [esi + 0x90], eax
lea ecx, [ebx - 1]
push ecx
push dword [esi]
lea eax, [ebx - 1]
add dword [esi + 0x34], eax
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x4ee33c]
call esi
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x2c]
lea eax, [esi + 0x948]
mov dword [ebp - 0x50], eax
cmp edi, ecx
jb 0x4d787e
mov eax, dword [ebp - 0x64]
mov eax, dword [esi + eax*4 + 0x944]
add eax, 4
mov dword [esi + 0x90], eax
lea eax, [edi - 1]
add dword [esi + 0x34], eax
lea eax, [edi - 1]
push eax
push dword [esi]
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x4ee33c]
call esi
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
mov cl, byte [edx]
mov eax, edx
mov edx, dword [ebp - 0x14]
sub eax, edx
cmp ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x74]
cmova edi, ebx
mov al, byte [eax]
mov byte [ebp - 0x25], cl
mov byte [ebp - 0x26], al
mov dword [ebp - 0x30], edi
cmp edi, 2
jae 0x4d78ab
cmp cl, al
jne 0x4d8a5d
mov ax, word [esi + 0x2c]
mov word [esi + 0xbca8], ax
mov eax, dword [ebp - 0x70]
mov ebx, eax
movzx edx, byte [edx - 1]
mov ecx, dword [esi + 0x94]
and ebx, dword [esi + 0x4c]
shl eax, 8
add edx, eax
mov dword [ebp - 0x5c], ebx
and edx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
shl edx, cl
cmp dword [esi + 0x2c], 7
lea ecx, [edx + edx*2]
lea edx, [eax + ecx*2]
movzx ecx, byte [ebp - 0x25]
lea eax, [esi + 0x748]
push eax
jb 0x4d7900
movzx eax, byte [ebp - 0x26]
push eax
push ecx
push edx
call fcn.004d90d0
add esp, 0x10
jmp 0x4d790a
push ecx
push edx
call fcn.004d9090
add esp, 0xc
mov edx, dword [esi + 0x2c]
mov ecx, eax
mov eax, edx
shl eax, 4
add eax, ebx
movzx eax, word [esi + eax*2 + 0x1e9c]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, ecx
mov dword [esi + 0xbcd0], 0xffffffff
mov dword [esi + 0xbcc4], eax
mov ecx, edx
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [esi + 0xbcca], ax
shl ecx, 4
add ecx, ebx
movzx eax, word [esi + ecx*2 + 0x1e9c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
mov dword [ebp - 0x54], eax
movzx eax, word [esi + edx*2 + 0x1e3c]
xor eax, 0x7f0
shr eax, 4
mov ebx, dword [esi + eax*4 + 0x748]
add ebx, dword [ebp - 0x54]
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x60], ebx
cmp byte [ebp - 0x26], al
jne 0x4d79e2
cmp dword [ebp - 0x24], 0
jne 0x4d79e2
movzx ecx, word [esi + ecx*2 + 0x201c]
movzx eax, word [esi + edx*2 + 0x1e54]
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x748]
add ecx, dword [esi + eax*4 + 0x748]
or eax, 0xffffffff
add ecx, ebx
cmp ecx, dword [ebp - 0x38]
jae 0x4d79d2
mov dword [esi + 0xbcc4], ecx
xor eax, eax
mov dword [esi + 0xbcd0], 0
cmp edi, 2
jae 0x4d79e2
mov dword [esi + 0x90], eax
jmp 0x4d8a67
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov edi, dword [ebp - 0x5c]
mov dword [esi + 0xbccc], 1
mov dword [esi + 0xbcb4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xbcb8], eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xbcbc], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xbcc0], eax
mov dword [ebp - 0x34], ebx
nop
mov edx, dword [ebp + ebx*4 - 0x24]
cmp edx, 2
jb 0x4d7b2a
mov ecx, dword [esi + 0x2c]
movzx eax, word [esi + ecx*2 + 0x1e54]
mov dword [ebp - 0x38], eax
test ebx, ebx
jne 0x4d7a6a
shl ecx, 4
add ecx, edi
movzx eax, word [esi + ecx*2 + 0x201c]
mov ecx, dword [ebp - 0x38]
xor eax, 0x7f0
shr eax, 4
shr ecx, 4
mov ebx, dword [esi + eax*4 + 0x748]
add ebx, dword [esi + ecx*4 + 0x748]
jmp 0x4d7ad4
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
mov dword [ebp - 0x58], eax
movzx eax, word [esi + ecx*2 + 0x1e6c]
mov dword [ebp - 0x38], eax
cmp ebx, 1
jne 0x4d7a9b
mov ebx, dword [ebp - 0x58]
shr eax, 4
add ebx, dword [esi + eax*4 + 0x748]
jmp 0x4d7ad4
movzx ecx, word [esi + ecx*2 + 0x1e84]
mov eax, 2
sub eax, ebx
shr ecx, 4
mov ebx, dword [ebp - 0x38]
shr eax, 4
xor ebx, 0x7f0
and eax, 0x7f
shr ebx, 4
xor ecx, eax
mov eax, dword [esi + ecx*4 + 0x748]
add eax, dword [esi + ebx*4 + 0x748]
mov ebx, dword [ebp - 0x58]
add ebx, eax
mov eax, dword [ebp - 0x60]
lea ecx, [esi + 0xbcb0]
add eax, ebx
imul ebx, edi, 0x110
mov dword [ebp - 0x38], eax
mov eax, edx
shl eax, 5
add ecx, eax
add ebx, edx
add esi, 0x789c
lea ebx, [esi + ebx*4]
mov esi, dword [ebp - 0x34]
nop dword [eax]
mov eax, dword [ebx]
add eax, dword [ebp - 0x38]
cmp eax, dword [ecx - 0xc]
jae 0x4d7b18
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 ebx, 4
sub ecx, 0x20
cmp edx, 2
jae 0x4d7b00
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x34]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, 4
jb 0x4d7a20
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
inc ebx
cmp ebx, dword [ebp - 0x2c]
ja 0x4d7c9e
mov eax, dword [esi + 0x2c]
xor edx, edx
mov dword [ebp - 0x2c], edx
movzx eax, word [esi + eax*2 + 0x1e3c]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
cmp ebx, 2
jae 0x4d7b71
lea ebx, [edx + 2]
jmp 0x4d7b8f
cmp ebx, dword [esi + 0x948]
jbe 0x4d7b8f
nop dword [eax]
add edx, 2
cmp ebx, dword [esi + edx*4 + 0x948]
ja 0x4d7b80
mov dword [ebp - 0x2c], edx
mov eax, ebx
mov ecx, ebx
shl eax, 7
add eax, 0x487
shl ecx, 5
mov dword [ebp - 0x38], eax
add ecx, 0xbcb0
imul eax, dword [ebp - 0x5c], 0x110
add ecx, esi
mov edi, dword [ebp - 0x38]
add eax, 0xd26
add eax, ebx
lea eax, [esi + eax*4]
mov dword [ebp - 0x40], eax
mov eax, 0xffff4310
sub eax, esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + edx*4 + 4]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x38], eax
cmp ebx, 5
jae 0x4d7bf7
mov eax, dword [ebp - 0x80]
add eax, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
jmp 0x4d7c05
mov dword [ebp - 0x54], 0x60
mov dword [ebp - 0x58], 0x707
mov eax, dword [ebp - 0x34]
cmp eax, 0x80
jae 0x4d7c1a
and eax, 0x7f
add eax, dword [ebp - 0x58]
mov eax, dword [esi + eax*4]
jmp 0x4d7c55
cmp eax, 0x20000
sbb edx, edx
and edx, 0xfffffff6
add edx, 0x10
mov ecx, edx
shr eax, cl
movzx ecx, byte [eax + esi + 0x2c9c]
mov eax, dword [ebp - 0x54]
add eax, edx
mov edx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi + eax*4 + 0x121c]
and ecx, 0xf
add eax, dword [esi + ecx*4 + 0x11dc]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ebp - 0x38]
cmp eax, dword [ecx - 0xc]
jae 0x4d7c71
mov dword [ecx - 0xc], eax
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ecx - 4], ebx
mov dword [ecx], eax
xor eax, eax
mov word [ecx - 6], ax
cmp ebx, dword [esi + edx*4 + 0x948]
lea eax, [esi + 0x948]
jne 0x4d7c8b
add edx, 2
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebp - 0x64]
je 0x4d7c9b
add dword [ebp - 0x40], 4
inc ebx
sub edi, 0xffffff80
add ecx, 0x20
jmp 0x4d7bcd
mov edi, dword [ebp - 0x30]
mov ebx, 1
mov dword [ebp - 0x44], ebx
cmp edi, ebx
je 0x4d8942
mov dword [ebp - 0x30], edi
cmp ebx, 0x7c0
jae 0x4d88d9
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004da940
mov ecx, eax
add esp, 8
mov dword [ebp - 0x54], ecx
cmp ecx, dword [esi + 0x30]
jae 0x4d88ce
mov edx, dword [ebp - 0x44]
inc dword [ebp - 0x70]
shl ebx, 5
add ebx, esi
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebx + 0xbcac]
sub edx, eax
cmp eax, 1
jne 0x4d7d27
cmp dword [ebx + 0xbcb0], 0
mov eax, 0x500084
mov edi, dword [ebp - 0x7c]
mov ecx, 0x500060
cmove ecx, eax
shl edx, 5
movzx eax, word [edx + esi + 0xbca8]
mov edx, dword [ebp - 0x74]
movzx ecx, byte [ecx + eax]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], ecx
jmp 0x4d7dee
movzx edi, word [ebx + 0xbcaa]
mov ecx, dword [ebx + 0xbcb0]
test di, di
je 0x4d7d53
sub edx, edi
mov dword [ebp - 0x48], 8
cmp edi, 1
jne 0x4d7d78
cmp ecx, 4
sbb eax, eax
neg eax
add eax, 7
jmp 0x4d7d75
mov eax, edx
shl eax, 5
movzx eax, word [eax + esi + 0xbca8]
cmp ecx, 4
jae 0x4d7d6e
movzx eax, byte [eax + 0x500078]
jmp 0x4d7d75
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 - 0x48], eax
shl edx, 5
lea eax, [edx + 0xbca4]
mov edx, dword [eax + esi + 0x14]
add eax, esi
mov dword [ebp - 0x74], edx
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x78], edi
cmp ecx, 4
jae 0x4d7dd0
test ecx, ecx
jne 0x4d7da6
mov ecx, edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x74], edx
jmp 0x4d7dd9
mov dword [ebp - 0x10], edi
mov edi, edx
mov dword [ebp - 0x7c], edi
cmp ecx, 1
jne 0x4d7dbe
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x74], edx
jmp 0x4d7de2
mov edx, edi
mov edi, dword [eax + ecx*4 + 0x10]
xor ecx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [eax + ecx*4 + 0x10]
jmp 0x4d7ddf
mov eax, dword [eax + 0x18]
lea edi, [ecx - 3]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x7c], edi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov word [ebx + 0xbca8], cx
mov ecx, dword [ebp - 0x78]
mov dword [ebx + 0xbcb4], edi
mov dword [ebx + 0xbcb8], ecx
mov dword [ebx + 0xbcbc], edx
mov dword [ebx + 0xbcc0], eax
mov edi, dword [esi + 0xc]
mov ecx, edi
push dword [esi]
call dword [0x4ee33c]
call edi
mov ecx, dword [ebp - 0x70]
add esp, 4
and ecx, dword [esi + 0x4c]
mov edx, dword [ebx + 0xbca4]
lea edi, [eax - 1]
mov dword [ebp - 0x38], ecx
mov al, byte [edi]
mov byte [ebp - 0x25], al
mov eax, edi
sub eax, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], edi
mov al, byte [eax]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x48]
shl eax, 4
add eax, ecx
mov dword [ebp - 0x80], eax
movzx ecx, word [esi + eax*2 + 0x1e9c]
mov eax, ecx
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, edx
mov dword [ebp - 0x60], eax
mov eax, dword [esi + ecx*4 + 0x748]
add eax, edx
xor edx, edx
mov dword [ebp - 0x40], edx
mov edx, dword [ebx + 0xbcc4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x6c], edx
cmp edx, 0x40000000
jae 0x4d7e9f
mov cl, byte [ebp - 0x25]
cmp byte [ebp - 0x26], cl
je 0x4d7ea3
cmp eax, edx
jbe 0x4d7ead
xor edi, edi
mov dword [ebp - 0x2c], edi
jmp 0x4d7f62
mov eax, dword [ebp - 0x70]
movzx edx, byte [edi - 1]
mov ecx, dword [esi + 0x94]
shl eax, 8
add edx, eax
mov eax, dword [esi + 0x50]
and edx, dword [esi + 0x48]
shl edx, cl
cmp dword [ebp - 0x48], 7
lea ecx, [edx + edx*2]
movzx edx, byte [ebp - 0x25]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x50], ecx
jb 0x4d7ef4
lea eax, [esi + 0x748]
push eax
movzx eax, byte [ebp - 0x26]
push eax
push edx
push ecx
call fcn.004d90d0
add esp, 0x10
mov edi, eax
jmp 0x4d7f27
mov ebx, dword [ebp - 0x50]
xor edi, edi
or edx, 0x100
nop
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 + 0x748]
cmp edx, 2
jae 0x4d7f00
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x6c]
add ecx, edi
mov dword [ebp - 0x2c], ecx
cmp ecx, edx
jae 0x4d7f62
xor eax, eax
mov dword [ebx + 0xbcc4], ecx
mov dword [ebx + 0xbccc], 1
mov edx, ecx
mov dword [ebx + 0xbcd0], 0xffffffff
mov word [ebx + 0xbcca], ax
mov dword [ebp - 0x40], 1
mov ecx, dword [ebp - 0x48]
mov edi, 0x7ff
sub edi, dword [ebp - 0x44]
lea eax, [ecx + 0xf1e]
lea eax, [esi + eax*2]
mov dword [ebp - 0x88], eax
movzx eax, word [eax]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x28]
cmp eax, edi
cmovbe edi, eax
mov al, byte [ebp - 0x26]
mov ah, byte [ebp - 0x25]
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x2c]
cmp ecx, 7
jae 0x4d803d
cmp al, ah
jne 0x4d803d
cmp dword [ebp - 0x8c], edx
jae 0x4d803d
cmp dword [ebx + 0xbccc], 2
jb 0x4d7fd6
cmp dword [ebx + 0xbcd0], 0
je 0x4d803d
mov eax, dword [ebp - 0x80]
movzx ecx, word [esi + eax*2 + 0x201c]
mov eax, dword [ebp - 0x48]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x1e54]
mov ecx, dword [esi + ecx*4 + 0x748]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
add ecx, dword [ebp - 0x8c]
cmp ecx, edx
jae 0x4d8037
xor eax, eax
mov dword [ebx + 0xbcc4], ecx
mov word [ebx + 0xbcca], ax
xor edx, edx
mov al, byte [ebp - 0x26]
mov ah, byte [ebp - 0x25]
mov dword [ebx + 0xbccc], 1
mov dword [ebx + 0xbcd0], 0
jmp 0x4d8040
mov al, byte [ebp - 0x26]
mov ah, byte [ebp - 0x25]
mov edx, dword [ebp - 0x40]
cmp dword [ebp - 0x64], 2
jb 0x4d88ba
mov ecx, dword [esi + 0x30]
mov ebx, ecx
cmp dword [ebp - 0x64], ecx
cmovbe ebx, dword [ebp - 0x64]
test edx, edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
jne 0x4d8255
test edi, edi
je 0x4d8255
cmp al, ah
je 0x4d8255
cmp dword [ebp - 0x64], 2
jbe 0x4d8255
mov ebx, dword [ebp - 0x4c]
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x4d8255
mov al, byte [edx + 2]
cmp al, byte [ebx + 2]
jne 0x4d8255
lea edi, [ecx + 1]
mov edx, 3
cmp edi, dword [ebp - 0x64]
cmova edi, dword [ebp - 0x64]
cmp edi, edx
jbe 0x4d80c2
lea ecx, [ebx + 3]
mov ebx, dword [ebp - 0x3c]
sub ebx, dword [ebp - 0x4c]
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4d80c2
inc edx
inc ecx
cmp edx, edi
jb 0x4d80b5
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x44]
inc ebx
and ebx, dword [esi + 0x4c]
add ecx, edx
movzx edi, byte [eax + 0x500060]
mov eax, ecx
cmp dword [ebp - 0x30], ecx
mov dword [ebp - 0x6c], ecx
cmovae eax, dword [ebp - 0x30]
dec edx
movzx ecx, word [esi + edi*2 + 0x1e3c]
mov dword [ebp - 0x4c], edx
xor ecx, 0x7f0
mov dword [ebp - 0x30], eax
mov edx, edi
shl edx, 4
add edx, ebx
shr ecx, 4
movzx eax, word [esi + edx*2 + 0x201c]
mov ecx, dword [esi + ecx*4 + 0x748]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + edx*2 + 0x1e9c]
mov edx, ecx
xor eax, 0x7f0
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x4c]
shr eax, 4
add edx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + edi*2 + 0x1e54]
mov edi, dword [ebp - 0x30]
shr eax, 4
add edx, dword [esi + eax*4 + 0x748]
imul eax, ebx, 0x110
add eax, ecx
add edx, dword [esi + eax*4 + 0x789c]
mov eax, dword [ebp - 0x6c]
add edx, dword [ebp - 0x2c]
shl eax, 5
cmp edx, dword [eax + esi + 0xbca4]
jae 0x4d819f
mov dword [eax + esi + 0xbcac], ecx
mov ecx, 1
mov dword [eax + esi + 0xbca4], edx
mov dword [eax + esi + 0xbcb0], 0
mov word [eax + esi + 0xbcaa], cx
mov dword [ebp - 0x30], edi
mov edx, dword [ebp - 0x3c]
xor ebx, ebx
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x40], ebx
nop
mov eax, dword [ebp + ebx*4 - 0x14]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x84], eax
mov al, byte [edx]
mov dword [ebp - 0x50], ecx
cmp al, byte [ecx]
jne 0x4d8502
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4d8502
mov edx, 2
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x5c], edx
jbe 0x4d8206
mov esi, dword [ebp + ebx*4 - 0x14]
add ecx, edx
mov edi, dword [ebp - 0x5c]
nop dword [eax]
mov al, byte [ecx + esi]
cmp al, byte [ecx]
jne 0x4d81fd
inc edx
inc ecx
cmp edx, edi
jb 0x4d81f0
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x44]
add ecx, edx
cmp edi, ecx
mov dword [ebp - 0x90], ecx
mov eax, ecx
cmovae eax, edi
mov edi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
movzx ecx, word [esi + eax*2 + 0x1e54]
test ebx, ebx
jne 0x4d825d
mov eax, dword [ebp - 0x80]
shr ecx, 4
movzx eax, word [esi + eax*2 + 0x201c]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, dword [esi + ecx*4 + 0x748]
jmp 0x4d82c5
mov edi, dword [ebp - 0x30]
jmp 0x4d81a2
xor ecx, 0x7f0
shr ecx, 4
cmp dword [ebp - 0x40], 1
mov eax, dword [esi + ecx*4 + 0x748]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
movzx ebx, word [esi + ecx*2 + 0x1e6c]
jne 0x4d828d
shr ebx, 4
add eax, dword [esi + ebx*4 + 0x748]
jmp 0x4d82c5
movzx ecx, word [esi + ecx*2 + 0x1e84]
mov eax, 2
sub eax, dword [ebp - 0x40]
xor ebx, 0x7f0
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
shr ebx, 4
mov eax, dword [esi + ecx*4 + 0x748]
add eax, dword [esi + ebx*4 + 0x748]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
imul eax, dword [ebp - 0x38], 0x110
add eax, 0x1e27
add eax, edx
mov edx, dword [ebp - 0x40]
lea eax, [esi + eax*4]
mov dword [ebp - 0x94], eax
mov ebx, eax
mov eax, dword [ebp - 0x90]
shl eax, 5
add eax, 0xbcb0
add eax, esi
nop word [eax + eax]
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax - 0xc]
jae 0x4d8318
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 0x4d8300
test edx, edx
mov edx, dword [ebp - 0x4c]
lea eax, [edx + 1]
jne 0x4d8331
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x30]
add ecx, eax
cmp ecx, dword [ebp - 0x64]
cmova ecx, dword [ebp - 0x64]
add eax, 2
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x90], eax
cmp eax, ecx
ja 0x4d84f9
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
add ebx, eax
mov edi, dword [ebp - 0x6c]
add ecx, eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x30], edi
mov al, byte [ebx - 2]
cmp al, byte [ecx - 2]
jne 0x4d8646
mov al, byte [ebx - 1]
mov dword [ebp - 0x30], edi
cmp al, byte [ecx - 1]
jne 0x4d8646
mov ecx, dword [ebp - 0x70]
lea eax, [esi + 0x748]
push eax
mov eax, dword [ebp - 0x50]
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.004d90d0
mov ecx, dword [ebp - 0x48]
add esp, 0x10
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + 0x500078]
shl ecx, 4
add ecx, edi
movzx ecx, word [esi + ecx*2 + 0x1e9c]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x748]
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 + 0x20bc]
movzx eax, word [esi + eax*2 + 0x1f3c]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x748]
add ecx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + 0x1e46]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + 0x1e5e]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
add edx, ecx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x90]
cmp edx, edi
jae 0x4d8491
mov ecx, dword [ebp - 0x98]
mov esi, dword [ebp - 0x84]
mov al, byte [esi + ecx]
cmp al, byte [ecx]
jne 0x4d848e
inc edx
inc ecx
cmp edx, edi
jb 0x4d8481
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x4c]
add eax, edx
mov ecx, eax
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x6c], ecx
cmovae eax, dword [ebp - 0x6c]
mov dword [ebp - 0x30], 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 + 0x789c]
add eax, dword [ebp - 0x2c]
cmp eax, dword [ecx + esi + 0xbca4]
jae 0x4d84fc
mov dword [ecx + esi + 0xbca4], eax
lea eax, [edi + 1]
mov edi, dword [ebp - 0x30]
mov dword [ecx + esi + 0xbcac], edx
mov word [ecx + esi + 0xbcaa], ax
mov dword [ecx + esi + 0xbcb0], ebx
mov dword [ebp - 0x30], edi
jmp 0x4d84ff
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
inc ebx
mov dword [ebp - 0x40], ebx
cmp ebx, 4
jb 0x4d81b0
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x54]
cmp ecx, edx
jbe 0x4d854e
xor eax, eax
mov dword [ebp - 0x54], edx
xor ecx, ecx
cmp edx, dword [esi + 0x948]
jbe 0x4d853e
nop dword [eax + eax]
add eax, 2
mov ecx, eax
cmp edx, dword [esi + eax*4 + 0x948]
ja 0x4d8530
mov dword [esi + eax*4 + 0x948], edx
lea eax, [ecx + 2]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
cmp ecx, dword [ebp - 0x34]
jb 0x4d88ba
mov eax, dword [ebp - 0x88]
movzx eax, word [eax]
shr eax, 4
mov eax, dword [esi + eax*4 + 0x748]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x44]
add eax, ecx
cmp edi, eax
cmovae eax, edi
mov edi, dword [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], ebx
cmp edi, dword [esi + 0x948]
jbe 0x4d859f
add ebx, 2
cmp edi, dword [esi + ebx*4 + 0x948]
ja 0x4d8590
mov dword [ebp - 0x54], ebx
lea eax, [ebx*4]
mov ebx, dword [ebp - 0x34]
mov edx, dword [eax + esi + 0x94c]
cmp edx, 0x20000
mov dword [ebp - 0x60], eax
mov eax, edx
sbb ecx, ecx
mov dword [ebp - 0x4c], edx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2c9c]
lea eax, [eax + ecx*2]
imul ecx, dword [ebp - 0x38], 0x110
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x70]
add eax, edi
add edi, 3
shl eax, 8
add ecx, 0xd26
mov dword [ebp - 0x5c], eax
add ecx, ebx
add ebx, dword [ebp - 0x44]
shl ebx, 5
add ebx, 0xbcb0
add ebx, esi
lea ecx, [esi + ecx*4]
mov eax, dword [ecx]
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], ecx
mov ecx, 3
mov dword [ebp - 0x84], eax
lea eax, [edi - 5]
cmp eax, ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x2c], edi
cmovb ecx, eax
mov eax, edx
cmp edx, 0x80
jae 0x4d864e
shl ecx, 7
and eax, 0x7f
add ecx, eax
mov ecx, dword [esi + ecx*4 + 0x161c]
jmp 0x4d8665
mov ebx, dword [ebp - 0x40]
jmp 0x4d84ff
shl ecx, 6
and eax, 0xf
add ecx, dword [ebp - 0x50]
mov ecx, dword [esi + ecx*4 + 0x121c]
add ecx, dword [esi + eax*4 + 0x11dc]
mov eax, dword [ebp - 0x84]
add eax, ecx
mov dword [ebp - 0x98], eax
cmp eax, dword [ebx - 0xc]
jae 0x4d868c
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 - 0x60]
lea ecx, [edi - 3]
mov dword [ebp - 0x80], ecx
cmp ecx, dword [eax + esi + 0x948]
jne 0x4d88a4
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 - 0x64]
mov dword [ebp - 0x60], ecx
cmova ebx, dword [ebp - 0x64]
mov dword [ebp - 0x50], edx
cmp edi, ebx
ja 0x4d885c
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0x3c]
add ecx, edi
mov dword [ebp - 0x38], eax
mov esi, eax
mov al, byte [ecx - 2]
cmp al, byte [esi - 2]
mov esi, dword [ebp - 0x68]
jne 0x4d885c
mov esi, dword [ebp - 0x38]
mov al, byte [ecx - 1]
cmp al, byte [esi - 1]
mov esi, dword [ebp - 0x68]
jne 0x4d885c
cmp edi, ebx
jae 0x4d871a
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
mov edi, eax
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x4d8714
inc edx
inc ecx
cmp edx, ebx
jb 0x4d8707
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x2c]
add eax, 0xfffffffd
mov edx, dword [ebp - 0x3c]
add edi, eax
lea eax, [esi + 0x748]
and edi, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x60]
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 - 0x5c]
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.004d90d0
mov ecx, dword [ebp - 0x48]
lea edx, [edi + 1]
and edx, dword [esi + 0x4c]
add esp, 0x10
mov ebx, dword [ebp - 0x50]
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 - 0x44]
add edi, ebx
movzx ecx, word [esi + ecx*2 + 0x1e9c]
shr ecx, 4
add eax, dword [esi + ecx*4 + 0x748]
add eax, dword [ebp - 0x98]
cmp dword [ebp - 0x30], edi
movzx ecx, word [esi + edx*2 + 0x209c]
mov dword [ebp - 0x84], eax
mov eax, edi
cmovae eax, dword [ebp - 0x30]
xor ecx, 0x7f0
mov dword [ebp - 0x30], eax
or eax, 0xffffffff
sub eax, dword [ebp - 0x80]
add ebx, eax
shr ecx, 4
movzx eax, word [esi + edx*2 + 0x1f1c]
xor eax, 0x7f0
shl edi, 5
shr eax, 4
mov ecx, dword [esi + ecx*4 + 0x748]
add ecx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + 0x1e44]
xor eax, 0x7f0
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
movzx eax, word [esi + 0x1e5c]
shr eax, 4
add ecx, dword [esi + eax*4 + 0x748]
imul eax, edx, 0x110
add eax, ebx
add ecx, dword [esi + eax*4 + 0x789c]
add ecx, dword [ebp - 0x84]
cmp ecx, dword [edi + esi + 0xbca4]
jae 0x4d8859
mov eax, dword [ebp - 0x80]
inc eax
mov dword [edi + esi + 0xbca4], ecx
mov word [edi + esi + 0xbcaa], ax
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [edi + esi + 0xbcac], ebx
mov dword [edi + esi + 0xbcb0], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x54]
add ebx, 2
mov dword [ebp - 0x54], ebx
cmp ebx, dword [ebp - 0x58]
je 0x4d88ba
lea eax, [ebx*4]
mov ebx, dword [ebp - 0x8c]
mov edx, dword [eax + esi + 0x94c]
cmp edx, 0x20000
mov dword [ebp - 0x60], eax
mov eax, edx
sbb ecx, ecx
mov dword [ebp - 0x4c], edx
and ecx, 0xfffffff6
add ecx, 0x10
shr eax, cl
movzx eax, byte [eax + esi + 0x2c9c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x6c]
add ebx, 0x20
add dword [ebp - 0x5c], 0x100
add ecx, 4
inc edi
jmp 0x4d8604
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x30]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, edi
jne 0x4d7cb1
jmp 0x4d8942
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], ecx
jmp 0x4d8942
mov ecx, dword [ebp - 0x44]
mov eax, ebx
shl eax, 5
lea edx, [ecx + 1]
mov ebx, dword [eax + esi + 0xbca4]
mov eax, ecx
mov dword [ebp - 0x34], eax
cmp edx, edi
ja 0x4d891a
mov eax, edx
shl eax, 5
mov ecx, dword [eax + esi + 0xbca4]
cmp ebx, ecx
mov eax, edx
cmovb eax, dword [ebp - 0x34]
inc edx
cmp ebx, ecx
mov dword [ebp - 0x34], eax
cmovb ecx, ebx
mov ebx, ecx
cmp edx, edi
jbe 0x4d88f4
mov dword [ebp - 0x34], eax
mov ecx, eax
sub ecx, dword [ebp - 0x44]
je 0x4d893d
add dword [esi + 0x34], ecx
mov edi, dword [esi + 0x14]
push ecx
push dword [esi]
mov ecx, edi
call dword [0x4ee33c]
call edi
mov edi, dword [ebp - 0x30]
add esp, 8
mov eax, dword [ebp - 0x34]
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov eax, edi
shl eax, 5
add eax, 0xbca4
add eax, esi
nop
mov dword [eax], 0x40000000
lea eax, [eax - 0x20]
sub edi, 1
jne 0x4d8950
inc ebx
mov edi, ebx
mov dword [esi + 0x1c], ebx
shl edi, 5
lea ecx, [edi + 0xbcac]
lea edx, [edi + 0xbcb0]
add ecx, esi
add edx, esi
mov eax, dword [ebp - 0x44]
shl eax, 5
mov dword [ebp - 0x2c], ebx
mov ebx, dword [eax + esi + 0xbcb0]
mov dword [ebp - 0x34], ebx
mov ebx, dword [eax + esi + 0xbcac]
mov dword [ebp - 0x88], ebx
movzx ebx, word [eax + esi + 0xbcaa]
mov eax, dword [ebp - 0x88]
sub dword [ebp - 0x44], eax
test ebx, ebx
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x2c]
je 0x4d8a20
dec ebx
mov dword [ecx - 0x20], eax
mov eax, dword [ebp - 0x58]
sub ecx, 0x20
sub dword [ebp - 0x44], eax
sub edi, 0x20
mov dword [ebp - 0x2c], ebx
sub edx, 0x20
lea ebx, [esi + 0xbcb0]
add ebx, edi
mov dword [ebp - 0x88], ebx
mov ebx, dword [ebp - 0x2c]
cmp eax, 1
jne 0x4d89f8
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebx], esi
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x2c]
jmp 0x4d8a20
lea eax, [edi + esi]
sub edx, 0x20
mov dword [eax + 0xbcb0], 0
dec ebx
mov eax, dword [ebp - 0x58]
sub edi, 0x20
dec eax
mov dword [ecx - 0x20], 1
sub ecx, 0x20
mov dword [edx], 0xffffffff
cmp dword [ebp - 0x44], 0
je 0x4d8a40
mov esi, dword [ebp - 0x34]
sub edx, 0x20
dec ebx
mov dword [ecx - 0x20], eax
sub edi, 0x20
sub ecx, 0x20
mov dword [edx], esi
mov esi, dword [ebp - 0x68]
jmp 0x4d8977
mov ecx, dword [ebp - 0x34]
pop edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x90], ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
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.004a4c5b
mov esp, ebp
pop ebp
ret