Function at 0x59c3b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2084
call fcn.00618800
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x207c], eax
fldz
push ebx
push ebp
fst qword [esp + 0x30]
push esi
fstp qword [esp + 0x3c]
push edi
xor esi, esi
xor edi, edi
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebp
test ebp, ebp
mov ecx, dword [esp + 0x20a4]
jne 0x59c3f8
mov ecx, dword [esp + 0x20a0]
mov eax, dword [ebx]
cmp dword [eax + 0x14], 0
je 0x59c417
cmp dword [eax + 0x18], 0xffffffff
je 0x59c426
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x59c412
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x59c426
mov eax, dword [eax + 4]
push 0
push ecx
push eax
call fcn.006081d8
add esp, 0xc
xor eax, eax
cmp word [ebx + 0x462], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
jbe 0x59c570
mov ebp, dword [esp + 0x2098]
mov ecx, dword [esp + 0x28]
mov eax, 0x40
sub eax, ebp
imul ecx, ecx, 0x1020
lea edx, [esp + ecx + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edx
sub dword [esp + 0x1c], ebp
jns 0x59c527
jmp 0x59c470
mov eax, esi
mov esi, dword [esp + 0x209c]
mov edx, edi
mov ecx, esi
call fcn.00667540
xor ebp, ebp
test esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jle 0x59c50e
mov esi, dword [ebx]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x59c4e0
mov eax, dword [esi + 0x1c]
mov ebx, 1
cmp eax, ebx
jb 0x59c4af
mov edi, dword [esi + 0x18]
lea edx, [edi + 1]
cmp edx, eax
jbe 0x59c4b8
mov edi, dword [esi + 0x18]
sub eax, edi
mov ebx, eax
je 0x59c4db
lea eax, [edi + ecx]
push ebx
push eax
lea ecx, [esp + 0x1f]
push ecx
call fcn.0060d1b0
add edi, ebx
add esp, 0xc
cmp ebx, 1
mov dword [esi + 0x18], edi
jne 0x59c4db
movzx eax, byte [esp + 0x17]
jmp 0x59c4f4
or eax, 0xffffffff
jmp 0x59c4f4
mov esi, dword [esi + 4]
test esi, esi
je 0x59c4f2
push esi
call fcn.0060963d
add esp, 4
jmp 0x59c4f4
xor eax, eax
mov esi, dword [esp + 0x209c]
mov ebx, dword [esp + 0x34]
mov ecx, ebp
shl eax, cl
add ebp, 8
or dword [esp + 0x20], eax
cmp ebp, esi
jl 0x59c490
add dword [esp + 0x1c], esi
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
js 0x59c470
mov ebp, dword [esp + 0x2098]
mov ecx, 0x40
sub ecx, dword [esp + 0x1c]
mov eax, esi
sub ecx, ebp
mov edx, edi
call fcn.00667540
mov ecx, dword [esp + 0x18]
call fcn.00618370
mov ecx, dword [esp + 0x30]
movzx edx, word [ebx + 0x462]
mov word [ecx], ax
mov eax, dword [esp + 0x2c]
add eax, 1
add ecx, 2
cmp eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jl 0x59c461
mov ebp, dword [esp + 0x28]
add ebp, 1
cmp ebp, 2
mov dword [esp + 0x28], ebp
jl 0x59c3e6
movzx ecx, word [ebx + 0x462]
lea edi, [ecx - 1]
xor eax, eax
test edi, edi
jle 0x59c5f7
movzx edx, word [esp + eax*2 + 0x106a]
movzx ecx, word [esp + eax*2 + 0x48]
sub ecx, edx
mov edx, ecx
sar edx, 0x1f
mov ebx, edx
xor ebx, ecx
movzx ecx, word [esp + eax*2 + 0x1068]
sub ebx, edx
movzx edx, word [esp + eax*2 + 0x4a]
mov dword [esp + 0x18], ebx
sub ecx, edx
mov esi, eax
fild dword [esp + 0x18]
and esi, 1
lea esi, [esp + esi*8 + 0x38]
mov edx, ecx
sar edx, 0x1f
fadd qword [esi]
mov ebx, edx
xor ebx, ecx
sub ebx, edx
fstp qword [esi]
mov esi, eax
not esi
mov dword [esp + 0x18], ebx
and esi, 1
lea esi, [esp + esi*8 + 0x38]
fild dword [esp + 0x18]
add eax, 1
cmp eax, edi
fadd qword [esi]
fstp qword [esi]
jl 0x59c590
fld qword [esp + 0x38]
fdiv qword [esp + 0x40]
call fcn.0066a560
fmul qword [0x6c0c80]
mov ecx, dword [esp + 0x208c]
pop edi
pop esi
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x2084
ret 0x10