Function at 0x4edf10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
test esi, esi
je 0x4edf39
push dword [ebp + 0x10]
push edi
call fcn.0050bcc0
xor edx, edx
add esp, 8
div esi
mov esi, edx
jmp 0x4edf3b
xor esi, esi
push esi
push dword [ebp + 0x10]
push edi
push ebx
call fcn.004ce000
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x4edfbe
mov eax, dword [ebp + 0x14]
mov edi, dword [ecx + 8]
test eax, eax
jne 0x4edfac
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x4edf66
mov dword [edx], eax
jmp 0x4edf69
mov dword [ebx + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0x4edf75
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x4edf8b
cmp dword [edx + esi*8 + 4], ecx
jne 0x4edf88
mov eax, dword [ecx]
mov dword [edx + esi*8 + 4], eax
dec dword [edx + esi*8]
push ecx
call fcn.004b8980
add esp, 4
add dword [ebx + 4], 0xffffffff
jne 0x4edfb5
push ebx
call fcn.004edde0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4ee134
push 0x14
call fcn.004f0890
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4edfb5
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], edi
inc dword [ebx + 4]
mov edx, dword [ebx + 4]
cmp edx, 0xa
jb 0x4ee0fd
mov eax, dword [ebx]
add eax, eax
cmp edx, eax
jbe 0x4ee0fd
lea edi, [edx + edx]
mov edx, 0x80
lea eax, [edi*8]
cmp eax, 0x400
cmova edi, edx
cmp edi, dword [ebx]
je 0x4ee0fd
mov eax, dword [0x64ff68]
test eax, eax
je 0x4ee030
call eax
lea eax, [edi*8]
push eax
call fcn.004f0890
mov ecx, dword [0x64ff6c]
add esp, 4
mov edi, eax
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x4ee051
call ecx
test edi, edi
je 0x4ee0fa
push dword [ebx + 0xc]
call fcn.004b8980
push edi
mov dword [ebx + 0xc], edi
call dword [0x6490c4]
shr eax, 3
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push edi
call fcn.00586790
mov eax, dword [ebx + 8]
add esp, 0x14
mov dword [ebp + 8], eax
mov dword [ebx + 8], 0
test eax, eax
je 0x4ee0e6
mov edx, dword [eax + 0x10]
xor edi, edi
mov esi, dword [eax + 0xc]
test edx, edx
jle 0x4ee0c3
movzx eax, byte [esi]
lea esi, [esi + 1]
dec edx
movzx ecx, byte [eax + 0x5cfac8]
lea eax, [edi*8]
xor ecx, eax
xor edi, ecx
test edx, edx
jg 0x4ee0a3
mov eax, dword [ebp + 8]
mov esi, dword [eax]
xor edx, edx
push eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
div dword [ebp - 8]
lea eax, [ecx + edx*8]
push eax
push ebx
call fcn.004d25e0
add esp, 0xc
mov eax, esi
mov dword [ebp + 8], eax
test esi, esi
jne 0x4ee097
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0050bcc0
xor edx, edx
add esp, 8
div dword [ebx]
mov esi, edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4ee11b
push ecx
lea eax, [eax + esi*8]
push eax
push ebx
call fcn.004d25e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x4ee12a
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [ebx + 8], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret