Function at 0x10059f01
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
push 0x10
mov ebx, edx
movlpd qword [esp + 0x1c], xmm0
lea eax, [esi + 0x124]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x40]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.10061840
pop ecx
pop ecx
lea edx, [esp + 0x3c]
mov ecx, edx
call fcn.1005896c
mov ebp, dword [esp + 0x50]
xor edi, edi
pop ecx
test ebp, ebp
je 0x1005a051
test ebx, ebx
je 0x1005a051
mov ebx, ebp
mov eax, ebp
and eax, 0xf
shr ebx, 4
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x10059fc8
mov ebp, dword [esp + 0x10]
push 0x10
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.10061840
pop ecx
pop ecx
lea edx, [esp + 0x2c]
mov ecx, edx
call fcn.1005896c
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
xor dword [esp + 0x28], eax
pop ecx
lea ecx, [esp + 0x18]
call fcn.10059dc7
add ebp, 0x10
sub ebx, 1
jne 0x10059f6c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x4c]
test eax, eax
je 0x1005a029
push 0x10
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10061dc0
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call fcn.10061840
pop ecx
pop ecx
lea edx, [esp + 0x2c]
mov ecx, edx
call fcn.1005896c
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
xor dword [esp + 0x28], eax
pop ecx
lea ecx, [esp + 0x18]
call fcn.10059dc7
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x138], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x13c], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x140], eax
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x1005a176
cmp dword [esp + 0x50], edi
je 0x1005a176
mov edx, ebx
mov eax, ebx
and eax, 0xf
shr edx, 4
mov dword [esp + 0x14], eax
cmp dword [esi + 0x144], edi
je 0x1005a0ad
mov ecx, dword [esi + 0x134]
xor eax, eax
or eax, dword [esi + 0x138]
or ecx, edi
mov dword [esp + 0x18], eax
xor eax, eax
or eax, dword [esi + 0x140]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x13c]
or ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
test edx, edx
je 0x1005a113
mov ebx, dword [esp + 0x50]
mov ebp, edx
push 0x10
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.10061840
pop ecx
pop ecx
lea edx, [esp + 0x2c]
mov ecx, edx
call fcn.1005896c
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
xor dword [esp + 0x28], eax
pop ecx
lea ecx, [esp + 0x18]
call fcn.10059dc7
add ebx, 0x10
sub ebp, 1
jne 0x1005a0b7
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x54]
cmp dword [esp + 0x14], edi
je 0x1005a176
push 0x10
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10061dc0
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x14]
push dword [esp + 0x54]
push eax
call fcn.10061840
pop ecx
pop ecx
lea edx, [esp + 0x2c]
mov ecx, edx
call fcn.1005896c
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
xor dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
xor dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
xor dword [esp + 0x28], eax
pop ecx
lea ecx, [esp + 0x18]
call fcn.10059dc7
mov eax, dword [esi + 0x144]
lea edx, [esp + 0x38]
test eax, eax
mov ecx, edi
cmovne ebp, eax
shld ecx, ebx, 3
shld edi, ebp, 3
xor dword [esp + 0x24], ecx
lea ecx, [esp + 0x18]
xor dword [esp + 0x1c], edi
shl ebp, 3
xor dword [esp + 0x18], ebp
shl ebx, 3
xor dword [esp + 0x20], ebx
call fcn.10059dc7
lea edx, [esp + 0x18]
push ecx
mov ecx, edx
call fcn.1005896c
pop ecx
push dword [esp + 0x5c]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x60]
call fcn.10061840
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret