Function at 0x5903a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebp - 8], eax
lea ecx, [edx + 0x1808]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x14], eax
jle 0x59043a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0xb7c]
mov dword [ebp - 0x10], ecx
lea edx, [esi + 0x1d7c]
lea ecx, [esi + 0x3f1c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
nop
mov eax, dword [ebp + 0xc]
movzx esi, word [edi + 4]
add esi, dword [eax + 4]
mov eax, dword [ebp - 8]
push eax
push edx
push edi
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x18]
call fcn.00590680
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push esi
call fcn.005908e0
mov eax, dword [ebp - 8]
add esi, 0x900
mov ecx, dword [ebp - 0xc]
inc eax
mov edx, dword [ebp - 0x14]
add ecx, 0x27
add esp, 0x2c
mov dword [ebp - 8], eax
add edi, 0x1c
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], esi
cmp eax, dword [ebp + 0x14]
jl 0x5903e0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x180b]
mov edi, dword [ebp + 0xc]
test al, 0x10
je 0x590467
mov esi, dword [ebp + 0x10]
lea eax, [edi + 0x3f43]
push ecx
push esi
push eax
lea eax, [edi + 0xb7c]
push eax
call fcn.00591640
mov edx, dword [ebp + 8]
add esp, 0x10
jmp 0x590487
and al, 0xe0
cmp al, 0x60
jne 0x590484
lea eax, [edi + 0xb7c]
push 0x240
push eax
call fcn.00591930
mov edx, dword [ebp + 8]
add esp, 8
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
jle 0x590675
lea eax, [edx + 0x180a]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
lea ecx, [edx + 0x1809]
lea eax, [esi + 0xe]
mov dword [ebp - 0x24], ecx
add edi, 0xb7c
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edi
lea esp, [esp]
movzx eax, byte [ecx]
mov ecx, eax
mov dword [ebp - 0x18], 0x1f
shr eax, 3
shr ecx, 4
and eax, 1
and ecx, 1
add ecx, eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
lea edx, [ecx + ecx*2]
shr eax, 2
xor ecx, ecx
and eax, 3
add edx, eax
mov eax, 2
cmp edx, 2
mov edx, dword [ebp - 8]
sete cl
xor esi, esi
cmp byte [edx - 2], 0
cmovne esi, eax
shl esi, cl
cmp byte [edx], 0
mov dword [ebp - 0x1c], esi
je 0x590599
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
movzx edi, byte [edx - 1]
add edi, dword [edx - 0xe]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
lea edx, [ecx + 0x1e1c]
add eax, esi
lea eax, [eax + eax*8]
lea eax, [eax*8 + 0xb7c]
add eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, eax
mov eax, edx
movzx edx, byte [edi]
test edx, edx
je 0x59057b
mov esi, edx
lea esp, [esp]
fld dword [ecx]
fstp dword [eax]
fld dword [ecx + edx*4]
fstp dword [eax + 4]
fld dword [ecx + edx*8]
add ecx, 4
fstp dword [eax + 8]
add eax, 0xc
sub esi, 1
jne 0x590550
add edi, 3
lea ecx, [ecx + edx*8]
movzx edx, byte [edi]
test edx, edx
jne 0x590547
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
add ecx, 0x1e1c
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push dword [ebp - 0x20]
call fcn.004867d0
mov edi, dword [ebp - 0x14]
add esp, 0xc
push dword [ebp - 0x18]
push edi
call fcn.005900d0
mov eax, dword [ebp - 8]
add esp, 8
mov edx, edi
mov al, byte [eax - 3]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov ecx, eax
test esi, esi
je 0x5905d8
push esi
push 0x63b640
push eax
push edi
call fcn.00591040
mov ecx, dword [ebp + 8]
lea eax, [esi + esi*8]
lea edx, [edi + eax*8]
add esp, 0x10
lea eax, [esi + esi*8]
lea ecx, [ecx + eax*4]
mov eax, 0x20
sub eax, esi
cmp byte [ebp - 1], 2
push eax
jne 0x5905f2
push ecx
push edx
call fcn.005913c0
add esp, 0xc
jmp 0x590610
xor eax, eax
mov esi, 0x48
cmp byte [ebp - 1], 3
cmove eax, esi
add eax, 0x63b640
push eax
push ecx
push edx
call fcn.00591040
add esp, 0x10
movss xmm1, dword [0x658070]
lea ecx, [edi + 0x48]
mov edx, 0x10
mov eax, 1
jmp 0x590630
movss xmm0, dword [ecx + eax*4]
xorps xmm0, xmm1
movss dword [ecx + eax*4], xmm0
add eax, 2
cmp eax, 0x12
jl 0x590630
add ecx, 0x90
sub edx, 1
jne 0x590620
add dword [ebp - 0xc], 0x20
add edi, 0x900
add dword [ebp + 8], 0x480
add dword [ebp - 8], 0x1c
sub dword [ebp + 0x14], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
jne 0x5904c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret