Function at 0x5d1210
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0xffffffffffffffff
push 0x669ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea esi, [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
lea ebp, [edx + ecx*4]
xor edi, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], edi
call fcn.005d3000
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
cmp ecx, ebx
je 0x5d1284
mov edx, dword [ebx]
mov dword [esp + 0x2c], edx
mov dword [ebx], edi
lea ecx, [esp + 0x30]
cmp ecx, esi
je 0x5d1294
mov edx, eax
mov dword [esp + 0x30], edx
mov dword [esi], eax
mov dword [ebx + 0x10], edi
mov edi, dword [ebx + 0x18]
cmp edi, ebp
je 0x5d12f8
mov edi, edi
mov ecx, dword [edi]
test ecx, ecx
je 0x5d12f1
cmp dword [ecx + 0x1c], 0x10
jb 0x5d12b1
mov edx, dword [ecx + 8]
jmp 0x5d12b4
lea edx, [ecx + 8]
mov esi, dword [ecx + 0x18]
add esi, edx
xor eax, eax
cmp edx, esi
jae 0x5d12d0
nop
movzx ebp, byte [edx]
imul eax, eax, 0x1000193
inc edx
xor eax, ebp
cmp edx, esi
jb 0x5d12c0
xor edx, edx
div dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea eax, [eax + edx*4]
mov edx, dword [ecx]
mov dword [edi], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [eax], ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x5d12a6
mov ebp, dword [esp + 0x14]
add edi, 4
cmp edi, ebp
jne 0x5d12a0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [ebx + 0x10], eax
cmp ecx, ebx
je 0x5d1313
mov eax, dword [esp + 0x20]
mov edx, dword [ebx]
mov dword [esp + 0x20], edx
mov dword [ebx], eax
lea ecx, [esp + 0x24]
lea eax, [ebx + 4]
cmp ecx, eax
je 0x5d132a
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov dword [eax], ecx
cmp dword [ebx + 0x10], 0
je 0x5d134e
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x5d1358
lea ebx, [ebx]
add dword [ebx + 0x18], 4
mov eax, dword [ebx + 0x18]
cmp dword [eax], 0
je 0x5d1340
jmp 0x5d1358
mov ecx, dword [eax]
mov edx, dword [ebx]
lea eax, [edx + ecx*4]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
fld dword [ebx + 0x14]
fild dword [ebx + 4]
test ecx, ecx
jge 0x5d136b
fadd qword [0x6b2c20]
fmulp st(1)
sub esp, 8
fstp qword [esp]
call fcn.00614810
fld qword [str.d:_ymir_work_ui_public_slotactiveeffect_10.sub]
add esp, 8
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x5d1393
fstp st(0)
mov eax, 0xffffffff
jmp 0x5d13b5
fnstcw word [esp + 0x48]
movzx eax, word [esp + 0x48]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
fldcw word [esp + 0x48]
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x1c], eax
test esi, esi
je 0x5d13ee
mov edx, dword [esp + 0x30]
lea edi, [esi + edx*4]
cmp esi, edi
je 0x5d13e1
jmp 0x5d13d0
push esi
lea ecx, [esp + 0x30]
call fcn.005d1090
add esi, 4
cmp esi, edi
jne 0x5d13d0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00611358
add esp, 4
mov esi, dword [esp + 0x20]
test esi, esi
je 0x5d141f
mov ecx, dword [esp + 0x24]
lea edi, [esi + ecx*4]
cmp esi, edi
je 0x5d1416
push esi
lea ecx, [esp + 0x24]
call fcn.005d1090
add esi, 4
cmp esi, edi
jne 0x5d1401
mov esi, dword [esp + 0x20]
push esi
call fcn.00611358
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4