Function at 0x4eae60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx]
mov al, byte [ebx + 0x1ba]
mov dword [ebp - 0x14], edi
mov byte [ebp - 1], al
test dword [edi + 0xc], 0x4000000
je 0x4eb24a
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0xfff0bdc0
mov dword [ebp - 0xc], esi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4eaebf
mov edx, dword [edi + 4]
xor esi, esi
mov dword [ebp - 0xc], esi
test edx, edx
jle 0x4eaebf
mov eax, dword [edi + 8]
add eax, 0xc
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x4eaebc
inc esi
add eax, 0x10
cmp esi, edx
jl 0x4eaeb0
mov dword [ebp - 0xc], esi
mov eax, dword [edi + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
test eax, eax
je 0x4eb063
nop dword [eax]
cmp byte [ebx + 0x1ba], 0
mov eax, dword [eax + 8]
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push eax
je 0x4eaf0e
push edi
call fcn.004ea2e0
add esp, 0xc
jmp 0x4eaf19
push 0
push ebx
call fcn.004f06e0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4eb03b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push esi
push ebx
call fcn.004d3050
add esp, 0x14
test eax, eax
jne 0x4eb03b
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4eaf53
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x14], eax
jle 0x4eafd1
mov edi, dword [ebp + 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax]
cmp eax, dword [edi + 4]
mov edi, dword [ebp - 0x14]
jne 0x4eaf85
mov eax, dword [ebp - 0x10]
mov dword [edx + eax], 0xffffffff
cmp dword [edi + 0x10c], 0
je 0x4eafc5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4eaf9d
mov eax, dword [eax + 8]
mov eax, dword [edx + eax]
jmp 0x4eafa0
mov eax, dword [esi + 4]
push dword [ebp - 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0xc]
push dword [eax + ecx*8]
push dword [esi]
push ebx
call fcn.004df110
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 0x14]
jl 0x4eaf63
push dword [esi]
push 0
push dword [esi + 0x14]
push dword [ebp - 0xc]
push ebx
call fcn.004fab30
inc dword [ebx + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4eb00a
push dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0xc]
push ebx
call fcn.004cecb0
add esp, 0x24
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4eb02d
push dword [ebp - 0x1c]
push 1
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0xc]
push ebx
call fcn.004cecb0
add esp, 0x24
push dword [ebp - 0x20]
push edi
call fcn.004e5400
add esp, 8
jmp 0x4eb04f
cmp byte [ebp - 1], 0
je 0x4eb249
cmp byte [edi + 0x1e], 0
jne 0x4eb249
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4eaee0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, ecx
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4eb084
cmp byte [ecx], 0
je 0x4eb07c
inc esi
cmp byte [esi], 0
jne 0x4eb076
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x38
mov dword [ebp - 0x20], eax
cmp dword [eax + 0xc], 0
je 0x4eb0dc
xor eax, eax
mov dword [ebp - 0x24], ecx
test esi, esi
je 0x4eb0cd
xor edi, edi
mov ebx, esi
movzx eax, byte [ecx]
dec ebx
lea ecx, [edi*8]
movzx edx, byte [eax + 0x5cfac8]
xor edx, ecx
mov ecx, dword [ebp - 0x24]
inc ecx
xor edi, edx
mov dword [ebp - 0x24], ecx
test ebx, ebx
jg 0x4eb0a0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
xor edx, edx
div dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
jmp 0x4eb0de
xor edx, edx
push edx
push esi
push ecx
push eax
call fcn.004ce000
add esp, 0x10
test eax, eax
je 0x4eb249
mov esi, dword [eax + 8]
test esi, esi
je 0x4eb249
nop dword [eax]
cmp byte [esi + 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp + 8], 0
jne 0x4eb12a
cmp dword [ebx + 0x1a8], 0
jne 0x4eb12a
cmp byte [ebx + 0x158], 0
je 0x4eb23e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004d3050
add esp, 0x14
test eax, eax
je 0x4eb15c
cmp byte [ebp - 1], 0
je 0x4eb249
cmp byte [edi + 0x1e], 0
jne 0x4eb249
jmp 0x4eb23e
push 0x40
push edi
call fcn.004e5490
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4eb232
push 0x40
push 0
push eax
call fcn.00586790
mov ecx, dword [ebp - 0x2c]
mov eax, 1
mov word [ecx + 2], ax
movsx eax, word [ecx]
push eax
push 1
push ecx
push edi
call fcn.004f9ec0
mov edi, eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e], 0
je 0x4eb1ab
push edi
mov edi, eax
jmp 0x4eb229
movsx ecx, word [edi]
lea eax, [ecx*8]
sub eax, ecx
mov dword [edi + eax*8 - 0x2c], 0
mov dword [edi + eax*8 - 0x30], 0
mov ecx, dword [esi]
mov dword [edi + 0x14], ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [edi + 0xc], eax
inc word [ecx + 0x20]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x20], eax
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x4eb202
push 0xffffffffffffffff
push ecx
push dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
push edi
push ebx
call fcn.004cf5a0
mov eax, dword [ebp - 0x20]
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4eb21e
push 1
push ecx
push dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
push edi
push ebx
call fcn.004cf5a0
add esp, 0x20
mov dword [edi + 0xc], 0
push edi
mov edi, dword [ebp - 0x14]
push edi
call fcn.004f9bc0
add esp, 8
push dword [ebp + 8]
push edi
call fcn.004e5400
add esp, 8
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4eb100
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret