Function at 0x4f5a10
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], edi
mov ebx, dword [edi + 0x490]
cmp dword [edi + 0x48c], ebx
je 0x4f5a61
mov ecx, dword [esp + 0x98]
lea eax, [ebx + ebx*2]
add eax, eax
mov esi, dword [edi + eax*8 + 0x4b8]
mov edx, dword [edi + eax*8 + 0x4bc]
mov dword [edi + 0x490], esi
sub esi, ebx
pop edi
mov eax, esi
mov dword [ecx], edx
pop esi
pop ebx
add esp, 0x88
ret
cmp dword [edi + 0x31738], 0
mov dword [edi + 0x48c], 0
mov dword [edi + 0x490], 0
jne 0x4f5a91
lea edx, [esp + 0x58]
call fcn.004f57b0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
jmp 0x4f5aa1
mov eax, dword [edi + 0x494]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x498]
mov ebx, dword [edi + 0x49c]
mov dword [esp + 0x1c], eax
push ebp
cmp ebx, 2
jb 0x4f6d05
push dword [edi + 0x18]
mov eax, 0x111
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0xc]
call eax
add esp, 4
mov dword [esp + 0x18], 0
xor ebp, ebp
lea edx, [eax - 1]
mov al, byte [edx]
mov dword [esp + 0x34], edx
mov byte [esp + 0x12], al
mov eax, dword [edi + ebp*4 + 0x3173c]
mov ecx, edx
sub ecx, eax
mov dword [esp + ebp*4 + 0x60], eax
mov al, byte [esp + 0x12]
cmp al, byte [ecx - 1]
lea esi, [ecx - 1]
jne 0x4f5b45
mov al, byte [edx + 1]
cmp al, byte [ecx]
jne 0x4f5b45
mov edx, 2
cmp ebx, edx
jbe 0x4f5b22
mov eax, dword [esp + 0x34]
sub esi, eax
lea ecx, [eax + 2]
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x4f5b22
inc edx
inc ecx
cmp edx, ebx
jb 0x4f5b15
mov ecx, dword [esp + 0x18]
mov eax, ebp
mov dword [esp + ebp*4 + 0x88], edx
cmp edx, dword [esp + ecx*4 + 0x88]
mov edx, dword [esp + 0x34]
cmovbe eax, ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4f5b54
mov ecx, dword [esp + 0x18]
mov dword [esp + ebp*4 + 0x88], 0
inc ebp
cmp ebp, 4
jb 0x4f5ae1
mov esi, dword [esp + ecx*4 + 0x88]
mov eax, dword [edi + 0x31734]
cmp esi, eax
jb 0x4f5b9a
mov eax, dword [esp + 0x9c]
mov dword [eax], ecx
lea eax, [esi - 1]
test eax, eax
je 0x4f5b8d
mov ecx, dword [edi + 0x14]
add dword [edi + 0x31738], eax
push eax
push dword [edi + 0x18]
call ecx
add esp, 8
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x88
ret
mov ebx, dword [esp + 0x1c]
cmp ebx, eax
jb 0x4f5bdf
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x9c]
mov ecx, dword [edi + ecx*4 + 0x30e9c]
add ecx, 4
mov dword [eax], ecx
lea eax, [ebx - 1]
test eax, eax
je 0x4f5bd2
add dword [edi + 0x31738], eax
push eax
push dword [edi + 0x18]
mov eax, dword [edi + 0x14]
call eax
add esp, 8
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x88
ret
mov cl, byte [edx]
mov eax, edx
sub eax, dword [esp + 0x60]
mov byte [esp + 0x12], cl
mov al, byte [eax - 1]
mov byte [esp + 0x13], al
cmp ebx, 2
jae 0x4f5c04
cmp cl, al
je 0x4f5c04
cmp esi, 2
jb 0x4f6d05
mov eax, dword [edi + 0x3174c]
mov ecx, 8
mov dword [edi + 0x4a4], eax
sub cl, byte [edi + 0x32398]
movzx edx, byte [edx - 1]
mov ebp, dword [edi + 0x323a8]
mov eax, dword [esp + 0x40]
and ebp, eax
and eax, dword [edi + 0x323a4]
mov ebx, dword [edi + 0x3174c]
shr edx, cl
mov ecx, dword [edi + 0x32398]
shl eax, cl
add edx, eax
mov dword [esp + 0x4c], ebp
imul ecx, edx, 0x600
lea eax, [edi + 0x30ca0]
movzx edx, byte [esp + 0x12]
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x30ca0]
push eax
add ecx, dword [edi + 0x323ac]
cmp ebx, 7
jb 0x4f5c7e
movzx eax, byte [esp + 0x17]
push eax
call fcn.004f52a0
add esp, 8
jmp 0x4f5c86
call fcn.004f5250
add esp, 4
mov ecx, eax
shl ebx, 4
add ebx, ebp
or edx, 0xffffffff
movzx eax, word [edi + ebx*2 + 0x323b0]
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add eax, ecx
mov dword [edi + 0x4ec], 0xffffffff
mov dword [edi + 0x4d0], eax
mov dword [esp + 0x30], eax
mov dword [edi + 0x4d8], 0
mov ebx, dword [edi + 0x3174c]
mov eax, ebx
shl eax, 4
add eax, ebp
movzx eax, word [edi + eax*2 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [edi + eax*4 + 0x30ca0]
movzx eax, word [edi + ebx*2 + 0x32530]
xor eax, 0x7f0
mov dword [esp + 0x38], ecx
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add eax, ecx
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x12]
cmp byte [esp + 0x13], al
jne 0x4f5d5b
mov eax, ebx
or edx, 0xffffffff
shl eax, 4
add eax, ebp
movzx ecx, word [edi + eax*2 + 0x32590]
movzx eax, word [edi + ebx*2 + 0x32548]
shr ecx, 4
shr eax, 4
mov ecx, dword [edi + ecx*4 + 0x30ca0]
add ecx, dword [edi + eax*4 + 0x30ca0]
add ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x30]
jae 0x4f5d5b
mov dword [edi + 0x4d0], ecx
xor edx, edx
mov dword [edi + 0x4ec], 0
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
cmovb ecx, esi
mov dword [esp + 0x2c], ecx
cmp ecx, 2
jae 0x4f5d86
mov eax, dword [esp + 0x9c]
pop ebp
pop edi
pop esi
mov dword [eax], edx
mov eax, 1
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x60]
mov dword [edi + 0x4e8], 0
mov dword [edi + 0x4c0], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 0x4c4], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 0x4c8], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x4cc], eax
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0x4a0
add eax, edi
dec ecx
mov dword [eax], 0x40000000
lea eax, [eax - 0x30]
cmp ecx, 2
jae 0x4f5dc5
xor ebx, ebx
nop word [eax + eax]
mov esi, dword [esp + ebx*4 + 0x88]
cmp esi, 2
jb 0x4f5e52
push ebp
push dword [edi + 0x3174c]
mov edx, ebx
mov ecx, edi
call fcn.004f5860
imul ecx, dword [esp + 0x54], 0x110
mov ebp, eax
add ebp, dword [esp + 0x3c]
lea eax, [edi + 0x4bc]
add esp, 8
add ecx, 0xdd96
add ecx, esi
lea edx, [edi + ecx*4]
lea ecx, [esi + esi*2]
shl ecx, 4
add eax, ecx
mov ecx, dword [edx]
add ecx, ebp
cmp ecx, dword [eax - 0x1c]
jae 0x4f5e42
mov dword [eax - 0x1c], ecx
mov dword [eax - 4], 0
mov dword [eax], ebx
mov dword [eax - 0x14], 0
dec esi
sub edx, 4
sub eax, 0x30
cmp esi, 2
jae 0x4f5e26
mov ebp, dword [esp + 0x4c]
inc ebx
cmp ebx, 4
jb 0x4f5de0
mov eax, dword [edi + 0x3174c]
mov ebx, dword [esp + 0x88]
movzx eax, word [edi + eax*2 + 0x32530]
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
cmp ebx, 2
jb 0x4f5e87
inc ebx
jmp 0x4f5e8c
mov ebx, 2
cmp ebx, dword [esp + 0x1c]
ja 0x4f5fc4
lea ecx, [edi + 0x30ea0]
xor esi, esi
cmp ebx, dword [ecx]
jbe 0x4f5eaa
add esi, 2
cmp ebx, dword [ecx + esi*4]
ja 0x4f5ea2
lea eax, [ebx - 2]
mov edx, ebx
shl eax, 7
mov dword [esp + 0x1c], eax
imul eax, ebp, 0x110
lea ebp, [edi + 0x4bc]
shl edx, 5
add edx, 0x62aa
add eax, 0xcb84
add eax, ebx
lea eax, [edi + eax*4]
mov dword [esp + 0x18], eax
lea eax, [ebx + ebx*2]
shl eax, 4
add ebp, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, dword [esp + 0x30]
mov ecx, dword [ecx + esi*4 + 4]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], eax
cmp ebx, 5
jae 0x4f5f0e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
jmp 0x4f5f1b
mov eax, 0x180
mov dword [esp + 0x34], 0x634a
cmp ecx, 0x80
jae 0x4f5f2e
add eax, ecx
mov eax, dword [edi + eax*4 + 0x31b50]
jmp 0x4f5f70
mov edx, 0x1ffff
mov eax, ecx
sub edx, ecx
shr edx, 0x1f
neg edx
and edx, 0xa
add edx, 6
mov ecx, edx
shr eax, cl
movzx ecx, byte [eax + edi + 0x304a0]
mov eax, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0x3c]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi + eax*4]
and ecx, 0xf
add eax, dword [edi + ecx*4 + 0x32350]
mov ecx, dword [esp + 0x4c]
add eax, dword [esp + 0x38]
cmp eax, dword [ebp - 0x1c]
jae 0x4f5f90
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 4]
mov dword [ebp - 4], 0
mov dword [ebp], eax
mov dword [ebp - 0x14], 0
cmp ebx, dword [edi + esi*4 + 0x30ea0]
lea ecx, [edi + 0x30ea0]
jne 0x4f5fa8
add esi, 2
cmp esi, dword [esp + 0x20]
je 0x4f5fc4
mov eax, dword [esp + 0x18]
inc ebx
sub dword [esp + 0x1c], 0xffffff80
add eax, 4
add edx, 0x20
mov dword [esp + 0x18], eax
add ebp, 0x30
jmp 0x4f5ee5
mov ebx, 1
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
je 0x4f6ce8
nop word [eax + eax]
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.004f57b0
mov ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, dword [edi + 0x31734]
jae 0x4f6cd8
inc dword [esp + 0x40]
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, edi
mov edx, dword [ebx + 0x4a8]
mov ecx, dword [ebx + 0x4b8]
test edx, edx
je 0x4f6073
dec ecx
cmp dword [ebx + 0x4ac], 0
je 0x4f605e
mov eax, dword [ebx + 0x4b0]
lea eax, [eax + eax*2]
add eax, eax
cmp dword [ebx + 0x4b4], 4
mov eax, dword [edi + eax*8 + 0x4a4]
jae 0x4f604e
mov esi, dword [eax*4 + 0x53fdfc]
mov esi, dword [esi*4 + 0x53fd6c]
jmp 0x4f607f
mov esi, dword [eax*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_t_t_t_t_t_t_t_v_v_v_v_v_b_b_b_b_b_b_b_v_v_v_v_v]
mov esi, dword [esi*4 + 0x53fd6c]
jmp 0x4f607f
lea eax, [ecx + ecx*2]
add eax, eax
mov esi, dword [edi + eax*8 + 0x4a4]
mov esi, dword [esi*4 + 0x53fd6c]
jmp 0x4f607f
lea eax, [ecx + ecx*2]
add eax, eax
mov esi, dword [edi + eax*8 + 0x4a4]
mov eax, dword [esp + 0x14]
dec eax
cmp ecx, eax
jne 0x4f60b1
cmp dword [ebx + 0x4bc], 0
jne 0x4f60a1
mov esi, dword [esi*4 + 0x53fdcc]
mov dword [esp + 0x24], esi
jmp 0x4f6172
mov esi, dword [esi*4 + 0x53fd6c]
mov dword [esp + 0x24], esi
jmp 0x4f6172
test edx, edx
je 0x4f60d3
cmp dword [ebx + 0x4ac], 0
je 0x4f60d3
mov ecx, dword [ebx + 0x4b0]
mov edx, dword [ebx + 0x4b4]
mov esi, dword [esi*4 + 0x53fdfc]
jmp 0x4f60ee
mov edx, dword [ebx + 0x4bc]
cmp edx, 4
jae 0x4f60e7
mov esi, dword [esi*4 + 0x53fdfc]
jmp 0x4f60ee
mov esi, dword [esi*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_t_t_t_t_t_t_t_v_v_v_v_v_b_b_b_b_b_b_b_v_v_v_v_v]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x24], esi
shl eax, 4
lea ebp, [edi + 0x4a0]
add ebp, eax
cmp edx, 4
jae 0x4f6156
mov eax, dword [ebp + edx*4 + 0x20]
mov dword [esp + 0x60], eax
mov eax, 1
cmp edx, eax
jb 0x4f6133
lea eax, [edx + 1]
mov ecx, edx
lea esi, [ebp + 0x20]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jb 0x4f6133
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x4f6172
lea esi, [eax*4 + 0x20]
mov ecx, 4
add esi, ebp
lea edi, [esp + 0x60]
lea edi, [edi + eax*4]
sub ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x4f6172
lea eax, [edx - 4]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x4a4], esi
mov dword [ebx + 0x4c0], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x4c4], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x4c8], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x4cc], eax
mov ebp, dword [ebx + 0x4a0]
push dword [edi + 0x18]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], 0
call eax
mov edx, dword [edi + 0x323a8]
add esp, 4
and edx, dword [esp + 0x40]
mov dword [esp + 0x3c], edx
lea ecx, [eax - 1]
mov al, byte [ecx]
mov byte [esp + 0x12], al
mov eax, ecx
sub eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov al, byte [eax]
mov byte [esp + 0x13], al
mov eax, esi
shl eax, 4
add eax, edx
movzx edx, byte [ecx - 1]
mov dword [esp + 0x38], eax
movzx eax, word [edi + eax*2 + 0x323b0]
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add eax, ebp
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x80], eax
mov ecx, 8
sub cl, byte [edi + 0x32398]
mov eax, dword [esp + 0x40]
and eax, dword [edi + 0x323a4]
shr edx, cl
mov ecx, dword [edi + 0x32398]
shl eax, cl
add edx, eax
imul ebp, edx, 0x600
movzx edx, byte [esp + 0x12]
add ebp, dword [edi + 0x323ac]
cmp esi, 7
jb 0x4f626c
lea eax, [edi + 0x30ca0]
mov ecx, ebp
push eax
movzx eax, byte [esp + 0x17]
push eax
call fcn.004f52a0
add esp, 8
mov esi, eax
jmp 0x4f62a4
xor esi, esi
or edx, 0x100
mov eax, edx
shr eax, 8
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
add esi, dword [edi + ecx*4 + 0x30ca0]
cmp edx, 0x10000
jb 0x4f6274
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 0x4d0]
add eax, esi
mov dword [esp + 0x18], eax
cmp eax, edx
jae 0x4f62e5
mov ecx, dword [esp + 0x14]
mov ebp, 1
mov dword [ebx + 0x4d0], eax
mov edx, eax
mov dword [ebx + 0x4e8], ecx
mov dword [ebx + 0x4ec], 0xffffffff
mov dword [ebx + 0x4d8], 0
jmp 0x4f62e9
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
movzx eax, word [edi + esi*2 + 0x323b0]
xor eax, 0x7f0
shr eax, 4
mov ecx, dword [edi + eax*4 + 0x30ca0]
mov eax, dword [esp + 0x24]
add ecx, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
movzx eax, word [edi + eax*2 + 0x32530]
xor eax, 0x7f0
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add eax, ecx
mov cl, byte [esp + 0x13]
mov ch, byte [esp + 0x12]
mov dword [esp + 0x58], eax
cmp cl, ch
jne 0x4f63af
mov eax, dword [esp + 0x14]
cmp dword [ebx + 0x4e8], eax
jae 0x4f634e
cmp dword [ebx + 0x4ec], 0
je 0x4f63af
mov eax, dword [esp + 0x24]
movzx ecx, word [edi + eax*2 + 0x32548]
movzx eax, word [edi + esi*2 + 0x32590]
shr ecx, 4
shr eax, 4
mov ecx, dword [edi + ecx*4 + 0x30ca0]
add ecx, dword [edi + eax*4 + 0x30ca0]
add ecx, dword [esp + 0x58]
cmp ecx, edx
ja 0x4f63a7
mov eax, dword [esp + 0x14]
mov ebp, 1
mov dword [ebx + 0x4d0], ecx
mov dword [ebx + 0x4e8], eax
mov dword [ebx + 0x4ec], 0
mov dword [ebx + 0x4d8], 0
mov ch, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
mov ebx, dword [esp + 0x14]
mov esi, 0xfff
mov eax, dword [edi + 0x49c]
sub esi, ebx
cmp esi, eax
cmovae esi, eax
mov dword [esp + 0x4c], esi
cmp esi, 2
jb 0x4f6cac
mov eax, dword [edi + 0x31734]
mov edx, esi
cmp esi, eax
cmova edx, eax
mov dword [esp + 0x20], edx
test ebp, ebp
jne 0x4f6535
cmp cl, ch
je 0x4f6535
inc eax
lea edx, [ebp + 1]
cmp eax, esi
mov ecx, esi
cmovbe ecx, eax
cmp ecx, edx
jbe 0x4f641d
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
nop word [eax + eax]
mov al, byte [edx + ebx]
cmp al, byte [edx + esi]
jne 0x4f641d
inc edx
cmp edx, ecx
jb 0x4f6410
lea eax, [edx - 1]
mov dword [esp + 0x30], eax
cmp eax, 2
jb 0x4f6531
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
inc ebp
and ebp, dword [edi + 0x323a8]
add esi, edx
mov ebx, dword [eax*4 + 0x53fd6c]
mov eax, ebx
mov edx, dword [esp + 0x2c]
shl eax, 4
add eax, ebp
movzx ecx, word [edi + eax*2 + 0x323b0]
movzx eax, word [edi + ebx*2 + 0x32530]
xor ecx, 0x7f0
shr ecx, 4
xor eax, 0x7f0
shr eax, 4
mov ebx, dword [edi + ecx*4 + 0x30ca0]
add ebx, dword [edi + eax*4 + 0x30ca0]
add ebx, dword [esp + 0x18]
cmp edx, esi
jae 0x4f64af
lea eax, [edx + edx*2]
mov dword [esp + 0x2c], esi
shl eax, 4
mov ecx, esi
add eax, 0x4a0
add eax, edi
sub ecx, edx
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4f64a0
mov eax, dword [esp + 0x24]
xor edx, edx
push ebp
mov ecx, edi
push dword [eax*4 + 0x53fd6c]
call fcn.004f5860
mov edx, dword [esp + 0x28]
add esp, 8
imul ecx, ebp, 0x110
add ecx, dword [esp + 0x30]
add eax, dword [edi + ecx*4 + 0x37658]
lea ecx, [esi + esi*2]
add ecx, ecx
add eax, ebx
cmp eax, dword [edi + ecx*8 + 0x4a0]
jae 0x4f6535
mov dword [edi + ecx*8 + 0x4a0], eax
mov esi, 2
mov eax, dword [esp + 0x14]
inc eax
mov dword [edi + ecx*8 + 0x4bc], 0
xor ebp, ebp
mov dword [edi + ecx*8 + 0x4b8], eax
mov dword [edi + ecx*8 + 0x4a8], 1
mov dword [edi + ecx*8 + 0x4ac], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], ebp
jmp 0x4f654a
mov edx, dword [esp + 0x20]
mov esi, 2
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], ebp
jmp 0x4f654a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov ecx, eax
sub ecx, dword [esp + ebp*4 + 0x60]
mov al, byte [eax]
lea ebx, [ecx - 1]
mov dword [esp + 0x50], ebx
cmp al, byte [ebx]
jne 0x4f686a
mov eax, dword [esp + 0x44]
mov al, byte [eax + 1]
cmp al, byte [ecx]
jne 0x4f686a
mov esi, 2
cmp edx, esi
jbe 0x4f659d
mov edx, dword [esp + 0x44]
lea ecx, [ebx + 2]
sub edx, ebx
mov ebx, dword [esp + 0x20]
nop word [eax + eax]
mov al, byte [ecx + edx]
cmp al, byte [ecx]
jne 0x4f659d
inc esi
inc ecx
cmp esi, ebx
jb 0x4f6590
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add ebx, esi
cmp edx, ebx
jae 0x4f65cf
lea eax, [edx + edx*2]
mov dword [esp + 0x2c], ebx
shl eax, 4
mov ecx, ebx
add eax, 0x4a0
add eax, edi
sub ecx, edx
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4f65c0
push dword [esp + 0x3c]
mov edx, ebp
mov dword [esp + 0x20], esi
push dword [esp + 0x28]
mov ecx, edi
call fcn.004f5860
add eax, dword [esp + 0x60]
add esp, 8
mov dword [esp + 0x38], eax
imul eax, dword [esp + 0x3c], 0x110
mov dword [esp + 0x70], eax
lea ecx, [eax + 0xdd96]
add ecx, esi
lea edx, [edi + ecx*4]
add edi, 0x4bc
lea ecx, [ebx + ebx*2]
mov ebx, dword [esp + 0x38]
shl ecx, 4
add ecx, edi
mov edi, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [edx]
add eax, ebx
cmp eax, dword [ecx - 0x1c]
jae 0x4f6638
mov dword [ecx - 0x1c], eax
mov dword [ecx - 4], edi
mov dword [ecx], ebp
mov dword [ecx - 0x14], 0
dec esi
sub edx, 4
sub ecx, 0x30
cmp esi, 2
jae 0x4f6620
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
inc ecx
mov esi, dword [esp + 0x4c]
test ebp, ebp
mov eax, ecx
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x31734]
add eax, ecx
cmp eax, esi
cmovbe esi, eax
cmp ecx, esi
jae 0x4f668d
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x44]
sub ebx, eax
lea edx, [ecx + eax]
nop dword [eax]
mov al, byte [edx + ebx]
cmp al, byte [edx]
jne 0x4f668d
inc ecx
inc edx
cmp ecx, esi
jb 0x4f6680
mov esi, dword [esp + 0x30]
mov eax, 0xffffffff
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
add ecx, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x18], esi
cmp ecx, 2
jb 0x4f686a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
mov ebx, dword [eax*4 + 0x53fdfc]
add edi, ecx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 0x323a8]
mov eax, dword [esp + 0x54]
movzx eax, byte [ecx + eax]
push eax
mov eax, dword [esp + 0x4c]
movzx esi, byte [ecx + eax - 1]
movzx edx, byte [ecx + eax]
mov ecx, 8
mov eax, dword [esp + 0x30]
sub cl, byte [eax + 0x32398]
mov eax, edi
shr esi, cl
mov ecx, dword [esp + 0x30]
and eax, dword [ecx + 0x323a4]
mov ecx, dword [ecx + 0x32398]
shl eax, cl
add esi, eax
mov eax, dword [esp + 0x30]
imul ecx, esi, 0x600
add ecx, dword [eax + 0x323ac]
call fcn.004f52a0
mov edx, ebp
mov ecx, ebx
shl ecx, 4
and edx, edi
mov edi, dword [esp + 0x30]
add edx, ecx
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
movzx ecx, word [edi + edx*2 + 0x323b0]
mov edx, dword [ebx*4 + 0x53fd6c]
mov ebx, dword [esp + 0x40]
shr ecx, 4
add esi, dword [edi + ecx*4 + 0x30ca0]
mov ecx, dword [esp + 0x70]
add ecx, eax
inc eax
add ebx, eax
mov eax, edx
shl eax, 4
and ebx, ebp
add eax, ebx
add esi, dword [edi + ecx*4 + 0x37658]
add esi, dword [esp + 0x38]
movzx ecx, word [edi + eax*2 + 0x323b0]
movzx eax, word [edi + edx*2 + 0x32530]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
shr eax, 4
mov ebp, dword [edi + ecx*4 + 0x30ca0]
add ebp, dword [edi + eax*4 + 0x30ca0]
mov eax, dword [esp + 0x2c]
add ebp, esi
mov esi, dword [esp + 0x74]
add esi, dword [esp + 0x14]
cmp eax, esi
jae 0x4f67df
lea eax, [eax + eax*2]
mov ecx, esi
shl eax, 4
add eax, 0x4a0
add eax, edi
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4f67d0
push ebx
push edx
xor edx, edx
mov ecx, edi
call fcn.004f5860
mov edx, dword [esp + 0x38]
add esp, 8
imul ecx, ebx, 0x110
mov ebx, dword [esp + 0x14]
add ecx, dword [esp + 0x78]
add eax, dword [edi + ecx*4 + 0x37658]
lea ecx, [esi + esi*2]
add ecx, ecx
add eax, ebp
mov ebp, dword [esp + 0x48]
mov esi, edx
mov dword [esp + 0x18], esi
cmp eax, dword [edi + ecx*8 + 0x4a0]
jae 0x4f686e
mov dword [edi + ecx*8 + 0x4a0], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [edi + ecx*8 + 0x4bc], 0
add eax, ebx
mov dword [edi + ecx*8 + 0x4a8], 1
mov dword [edi + ecx*8 + 0x4b8], eax
mov dword [edi + ecx*8 + 0x4ac], 1
mov dword [edi + ecx*8 + 0x4b0], ebx
mov dword [edi + ecx*8 + 0x4b4], ebp
mov dword [esp + 0x18], esi
jmp 0x4f686e
mov ebx, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x48], ebp
cmp ebp, 4
jb 0x4f6546
mov eax, dword [esp + 0x20]
lea ebp, [edi + 0x30ea0]
mov edx, dword [esp + 0x54]
cmp edx, eax
jbe 0x4f68b6
mov edx, eax
xor ecx, ecx
xor eax, eax
cmp edx, dword [ebp]
jbe 0x4f68ab
nop dword [eax]
add eax, 2
mov ecx, eax
cmp edx, dword [ebp + eax*4]
ja 0x4f68a0
mov dword [ebp + eax*4], edx
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
cmp edx, esi
jb 0x4f6cac
mov eax, dword [esp + 0x24]
add edx, ebx
mov ebx, dword [esp + 0x2c]
movzx eax, word [edi + eax*2 + 0x32530]
shr eax, 4
mov eax, dword [edi + eax*4 + 0x30ca0]
add dword [esp + 0x7c], eax
cmp ebx, edx
jae 0x4f690f
lea eax, [ebx + ebx*2]
mov dword [esp + 0x2c], edx
shl eax, 4
mov ecx, edx
add eax, 0x4a0
add eax, edi
sub ecx, ebx
nop word [eax + eax]
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4f6900
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp esi, dword [ebp]
jbe 0x4f692d
nop word [eax + eax]
add ebx, 2
cmp esi, dword [ebp + ebx*4]
ja 0x4f6920
mov dword [esp + 0x1c], ebx
mov edx, dword [ebp + ebx*4 + 4]
mov ecx, 0x1ffff
sub ecx, edx
mov dword [esp + 0x38], edx
shr ecx, 0x1f
lea ebp, [esi + 1]
neg ecx
mov eax, edx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + edi + 0x304a0]
lea eax, [eax + ecx*2]
mov ecx, esi
mov dword [esp + 0x50], eax
mov eax, esi
shl eax, 7
add eax, 0xc5d4
shl ecx, 6
mov dword [esp + 0x48], eax
add ecx, 0xc554
imul eax, dword [esp + 0x3c], 0x110
add eax, 0xcb84
add eax, esi
lea eax, [edi + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
add eax, esi
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x4bc
add eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x54], eax
lea eax, [ebp - 1]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x84], eax
cmp eax, 5
jae 0x4f69d0
mov eax, dword [esp + 0x48]
mov esi, ecx
jmp 0x4f69da
mov eax, 0xc854
mov esi, 0xc694
cmp edx, 0x80
jae 0x4f69e9
add eax, edx
mov ecx, dword [edi + eax*4]
jmp 0x4f69fe
mov eax, dword [esp + 0x50]
mov ecx, edx
and ecx, 0xf
add eax, esi
mov ecx, dword [edi + ecx*4 + 0x32350]
add ecx, dword [edi + eax*4]
mov eax, dword [esp + 0x54]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
cmp eax, dword [ecx - 0x1c]
jae 0x4f6a27
mov dword [ecx - 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [ecx - 4], eax
lea eax, [edx + 4]
mov dword [ecx], eax
mov dword [ecx - 0x14], 0
lea eax, [ebp - 1]
cmp eax, dword [edi + ebx*4 + 0x30ea0]
jne 0x4f6c84
mov ecx, dword [esp + 0x44]
mov eax, dword [edi + 0x31734]
sub ecx, edx
mov esi, dword [esp + 0x4c]
add eax, ebp
dec ecx
mov edx, ebp
cmp eax, esi
mov dword [esp + 0x30], ecx
cmovbe esi, eax
cmp ebp, esi
jae 0x4f6a74
mov ebx, dword [esp + 0x44]
add ecx, ebp
sub ebx, dword [esp + 0x30]
mov al, byte [ecx + ebx]
cmp al, byte [ecx]
jne 0x4f6a70
inc edx
inc ecx
cmp edx, esi
jb 0x4f6a63
mov ebx, dword [esp + 0x1c]
mov eax, 0xffffffff
mov dword [esp + 0x74], edx
lea ecx, [ebp - 1]
sub eax, ecx
add edx, eax
mov dword [esp + 0x70], edx
cmp edx, 2
jb 0x4f6c3b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov ebx, dword [eax*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_t_t_t_t_t_t_t_v_v_v_v_v_b_b_b_b_b_b_b_v_v_v_v_v]
dec esi
mov eax, dword [esp + 0x34]
add esi, ecx
mov ebp, dword [edi + 0x323a8]
mov edi, esi
mov dword [esp + 0x7c], ebp
and edi, ebp
mov ebp, dword [esp + 0x2c]
movzx eax, byte [ecx + eax - 1]
push eax
mov eax, dword [esp + 0x88]
movzx edx, byte [ecx + eax]
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + ecx - 2]
mov ecx, 8
sub cl, byte [ebp + 0x32398]
shr eax, cl
mov ecx, ebp
and esi, dword [ecx + 0x323a4]
mov ecx, dword [ecx + 0x32398]
shl esi, cl
add eax, esi
mov esi, ebp
imul ecx, eax, 0x600
add ecx, dword [esi + 0x323ac]
call fcn.004f52a0
mov ecx, ebx
mov edx, eax
shl ecx, 4
add esp, 8
add ecx, edi
movzx ecx, word [esi + ecx*2 + 0x323b0]
shr ecx, 4
add edx, dword [esi + ecx*4 + 0x30ca0]
mov esi, dword [ebx*4 + 0x53fd6c]
lea ebx, [edi + 1]
and ebx, dword [esp + 0x78]
mov eax, esi
add edx, dword [esp + 0x54]
mov edi, ebp
shl eax, 4
add eax, ebx
mov dword [esp + 0x54], esi
movzx ecx, word [edi + eax*2 + 0x323b0]
movzx eax, word [edi + esi*2 + 0x32530]
xor ecx, 0x7f0
mov esi, dword [esp + 0x74]
xor eax, 0x7f0
add esi, dword [esp + 0x14]
shr ecx, 4
shr eax, 4
mov ebp, dword [edi + ecx*4 + 0x30ca0]
add ebp, dword [edi + eax*4 + 0x30ca0]
add ebp, edx
mov edx, dword [esp + 0x2c]
cmp edx, esi
jae 0x4f6baf
lea eax, [edx + edx*2]
mov dword [esp + 0x2c], esi
shl eax, 4
mov ecx, esi
add eax, 0x4a0
add eax, edi
sub ecx, edx
mov dword [eax + 0x30], 0x40000000
lea eax, [eax + 0x30]
sub ecx, 1
jne 0x4f6ba0
push ebx
push dword [esp + 0x58]
xor edx, edx
mov ecx, edi
call fcn.004f5860
imul ecx, ebx, 0x110
add esp, 8
mov ebx, dword [esp + 0x1c]
add ecx, dword [esp + 0x70]
add eax, dword [edi + ecx*4 + 0x37658]
lea ecx, [esi + esi*2]
add ecx, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
cmp eax, dword [edi + ecx*8 + 0x4a0]
jae 0x4f6c3b
mov edx, dword [esp + 0x14]
mov dword [edi + ecx*8 + 0x4a0], eax
mov eax, dword [esp + 0x84]
inc eax
mov dword [edi + ecx*8 + 0x4bc], 0
add eax, edx
mov dword [edi + ecx*8 + 0x4a8], 1
mov dword [edi + ecx*8 + 0x4b8], eax
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [edi + ecx*8 + 0x4ac], 1
mov dword [edi + ecx*8 + 0x4b0], edx
mov dword [edi + ecx*8 + 0x4b4], eax
add ebx, 2
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x34]
je 0x4f6ca8
mov edx, dword [edi + ebx*4 + 0x30ea4]
mov dword [esp + 0x38], edx
cmp edx, 0x80
jb 0x4f6c80
mov ecx, 0x1ffff
mov eax, edx
sub ecx, edx
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + edi + 0x304a0]
lea eax, [eax + ecx*2]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add ecx, 0x30
sub dword [esp + 0x48], 0xffffff80
add eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
add ecx, 0x40
mov dword [esp + 0x3c], eax
inc ebp
jmp 0x4f69a7
mov ebx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x2c]
jne 0x4f5fe0
mov edx, dword [esp + 0x9c]
mov ecx, edi
push ebx
call fcn.004f5920
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x34]
mov dword [edi + 0x498], eax
mov dword [edi + 0x494], ecx
mov edx, dword [esp + 0x9c]
mov ecx, edi
push ebx
call fcn.004f5920
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x9c]
pop ebp
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x88
ret