Function at 0x57ecc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
push ebx
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jle 0x57ece7
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp - 0x10]
jl 0x57ed63
sub dword [ebp - 0x10], 1
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x24]
shl edx, 5
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ecx + 2]
xor ecx, edx
and ecx, 0x3fff
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
mov edx, dword [ebp - 0x28]
and edx, ecx
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [esi + ecx*4]
mov dword [ebx + edx*4], ecx
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + ebx*4], ecx
add dword [ebp - 0x28], 1
cmp eax, dword [ebp - 0x10]
jg 0x57ed18
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x20], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 4], 0
je 0x57edc3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add dword [eax + 0x48], edx
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x34], 0
je 0x57ee05
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x40]
jb 0x57ee05
mov eax, dword [ebp - 0xc]
call fcn.0057f310
jmp 0x57ee05
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x28]
sub eax, edx
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x60]
jl 0x57ee05
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x28]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x44]
sub eax, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add dword [edx + 0x44], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add dword [eax + 0x48], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x57ee51
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
and eax, 0xfff
jne 0x57ee51
mov eax, dword [ebp - 0xc]
fild dword [eax + 0x10]
fmul dword [0x606468]
mov eax, dword [ebp - 0xc]
fild qword [eax + 0x50]
fdivp st(1)
fistp qword [ebp - 0x30]
wait
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x40]
jb 0x57ee67
mov eax, dword [ebp - 0xc]
call fcn.0057f310
pop esi
pop ebx
leave
ret