Function at 0x1004ae20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100caa6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x138]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], esi
lea edi, [ecx + 0x44]
nop
push dword [edi]
call fcn.10010340
test eax, eax
je 0x1004af74
movzx ecx, word [edi + 4]
movzx eax, word [esi]
movaps xmm0, xmmword [0x100e8840]
push ecx
push eax
movups xmmword [ebp - 0x3c], xmm0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x3b]
xor al, byte [ebp - 0x3c]
mov byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004ae95
sub esp, 0x1c
mov byte [ebp - 0x2d], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004aed3
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x58]
push eax
call fcn.1000d650
add esp, 0x28
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e150
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.100891b0
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004b073
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b073
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100e6d9c]
mov esi, dword [ebp - 0x1c]
jmp 0x1004b10a
cmp dword [edi], 1
jne 0x1004b07b
cmp byte [edi + 6], 0
je 0x1004b07b
movzx ecx, word [edi + 4]
mov dl, 0x29
movzx eax, word [esi]
push ecx
push eax
mov dword [ebp - 0x28], 0x94d0c29
xor ecx, ecx
mov dword [ebp - 0x24], 0x4d0c0906
mov byte [ebp - 0x20], 0
xor byte [ebp + ecx - 0x27], dl
inc ecx
cmp ecx, 7
jae 0x1004afb5
mov dl, byte [ebp - 0x28]
jmp 0x1004afa6
sub esp, 0x1c
mov byte [ebp - 0x20], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004afe2
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x58]
push eax
call fcn.1000d650
add esp, 0x28
mov dword [ebp - 4], 1
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e150
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.100891b0
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004b073
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b073
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100e6d9c]
mov esi, dword [ebp - 0x1c]
jmp 0x1004b10a
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x17]
push eax
sub esp, 0x1c
mov word [ebp - 0x18], 0xc
mov edx, esp
mov byte [ebp - 0x17], 0
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b0b3
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x74]
push eax
call fcn.1000d650
add esp, 0x24
mov dword [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e150
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x74]
push 8
push eax
mov dword [ebp - 0x74], 0
call fcn.100891b0
add esp, 8
mov ax, word [esi]
cmp ax, word [edi + 4]
jb 0x1004b137
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1004b134
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b134
push 0xff80ff00
mov ecx, esi
call dword [0x100e6db8]
mov esi, dword [ebp - 0x1c]
add esi, 2
add edi, 0x18
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], esi
jne 0x1004ae70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret