Function at 0x4f15b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, 1
push 0x18
push 0x564342
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 0x18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edx, dword [ecx + 4]
cmp edx, 1
jle 0x4f161a
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + esi*4 - 4]
test eax, eax
je 0x4f161a
cmp dword [ecx + esi*4], eax
jl 0x4f161a
inc esi
cmp edx, esi
jg 0x4f1608
cmp edx, esi
je 0x4f16cb
push eax
push 1
push 0
mov eax, dword [ebp + 0xc]
xor esi, esi
push eax
call fcn.004e7370
mov eax, dword [ebp + 8]
add esp, 0x10
mov edx, dword [eax + 4]
cmp edx, 0
jle 0x4f164f
mov ecx, dword [eax + 8]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x4f164f
inc esi
cmp edx, esi
jg 0x4f1643
cmp edx, esi
je 0x4f1893
push ecx
push 1
push 1
mov edx, dword [ebp + 0xc]
xor esi, esi
push edx
call fcn.004e7370
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 4]
test eax, eax
jg 0x4f169e
jmp 0x4f17a0
push eax
push 1
push 0
mov eax, dword [ebp + 0xc]
inc esi
push eax
call fcn.004e7370
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp dword [ecx + 4], esi
jle 0x4f17a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4f1680
push eax
push 1
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov eax, dword [eax + esi*4]
dec eax
push eax
jmp 0x4f1685
mov dword [ebp - 0x10], 0
push edi
push 1
push 1
mov esi, dword [ebp + 0xc]
push esi
call fcn.004e7370
add esp, 0xc
mov esi, 1
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov eax, dword [eax]
dec eax
push eax
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004e7370
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edx, dword [ecx + 4]
cmp edx, 1
jle 0x4f1775
nop
lea esi, [esi]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov edi, dword [eax + esi*4]
mov eax, dword [eax + esi*4 - 4]
cmp edi, eax
jle 0x4f1770
mov ebx, eax
cmp eax, edi
jl 0x4f1736
jmp 0x4f1770
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
sub esp, 0xc
mov ecx, dword [ebp - 0x10]
sub edx, ecx
inc ebx
push edx
call fcn.004f05d0
add esp, 0xc
push eax
mov eax, esi
mov edx, dword [ebp - 0x10]
sub eax, edx
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0x10
mov dword [ebp - 0x10], esi
cmp ebx, edi
jl 0x4f1730
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
lea esi, [esi]
inc esi
cmp edx, esi
jg 0x4f1710
sub esp, 0xc
mov ebx, dword [ebp - 0x10]
sub edx, ebx
push edx
call fcn.004f05d0
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x10]
sub esi, ecx
push esi
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e7370
add esp, 0x10
lea esi, [esi]
push edi
push 4
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004e7370
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4f187e
jl 0x4f1888
cmp eax, 2
jg 0x4f1888
mov ecx, dword [edx + 0x20]
or eax, 0xffffffff
test ecx, ecx
je 0x4f1880
push eax
push 0x20
mov eax, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 0x20
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
dec eax
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0xc
push 1
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
push edi
mov esi, dword [ebp + 0xc]
push esi
call fcn.004e7370
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 0xc]
cmp eax, 1
je 0x4f18ec
cmp eax, 2
je 0x4f18dc
or ebx, 0xffffffff
xor esi, esi
cmp esi, ebx
jge 0x4f187e
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
push edx
mov eax, dword [eax + 0x20]
mov eax, dword [eax + esi*4]
inc esi
mov edx, eax
sar edx, 0x1f
xor eax, edx
sub eax, edx
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7370
add esp, 0x10
cmp esi, ebx
jl 0x4f1855
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push 1
push 0
mov eax, dword [ebp + 0xc]
xor esi, esi
push eax
call fcn.004e7370
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 4]
test eax, eax
jle 0x4f17a0
push edi
push 5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + esi*4]
inc esi
dec eax
push eax
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004e7370
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [eax + 4], esi
jg 0x4f18b4
jmp 0x4f17a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
imul ebx, eax
jmp 0x4f184f
sub esp, 0xc
mov ebx, dword [ebp + 8]
push ebx
call fcn.004f0940
add esp, 0x10
mov ebx, eax
jmp 0x4f184f