Function at 0x1005a640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [0x100f96a4], 0
push ebx
push esi
push edi
je 0x1005accf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov esi, eax
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
je 0x1005accf
mov eax, dword [0x100f96cc]
xor bh, bh
mov byte [ebp - 1], bh
test eax, eax
je 0x1005a795
dec eax
cmp eax, 5
ja case.default.0x1005a694
jmp dword [eax*4 + 0x1005acd8]
mov ecx, dword [0x100fc35c]
mov bh, 1
push 0
push dword [0x1017de98]
mov byte [ebp - 1], bh
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc35c]
mov bh, 1
push 0
push dword [0x1017dea0]
mov byte [ebp - 1], bh
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc35c]
mov bh, 1
push 0
push dword [0x1017de9c]
mov byte [ebp - 1], bh
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc35c]
mov bh, 1
push 0
push dword [0x1017dea4]
mov byte [ebp - 1], bh
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc35c]
mov bh, 1
push 0
push dword [0x1017deb4]
mov byte [ebp - 1], bh
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc338]
mov bh, 1
push str.mat_hdr_level
mov byte [ebp - 1], bh
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [0x100fc35c]
push 0
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 1
jle 0x1005a770
mov eax, dword [0x1017deac]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov eax, dword [0x1017dea8]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005a7b9
mov ecx, dword [0x100fc35c]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x3f800000
mov dword [ebp - 0x14], 0x3f800000
mov eax, dword [ecx]
mov dword [ebp - 0x10], 0x3f800000
call dword [eax + 0x18]
movss xmm0, dword [0x100f969c]
movss xmm1, dword [0x100f06a8]
comiss xmm1, xmm0
jbe 0x1005a7df
mov ecx, dword [0x100fc34c]
push ecx
movss dword [esp], xmm0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f96b4], 0
je 0x1005a802
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], 0x3e4ccccd
mov dword [esp], 0
call dword [eax + 0x2c]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x1005ac4d
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x1005ac3e
mov ecx, dword [edi]
call fcn.1000e9f0
shr eax, 0xd
test al, 1
jne 0x1005ac3e
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x100fc310]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
call edx
cmp esi, eax
sete bl
je 0x1005a8a8
mov eax, dword [0x100f96c4]
sub eax, 1
je 0x1005a893
sub eax, 1
jne 0x1005a8b5
mov ecx, dword [edi]
call fcn.10005ff0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.10005ff0
cmp esi, eax
jne 0x1005a8b5
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
cmp byte [eax + 0x1017dbf4], 0
jne 0x1005a8b5
jmp 0x1005ac3e
mov ecx, dword [edi]
call fcn.10005ff0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.10005ff0
cmp esi, eax
jmp 0x1005a8af
cmp byte [0x100f96bc], 0
je 0x1005ac3e
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.10025e10
test al, al
je 0x1005ac3e
test bh, bh
je 0x1005ab32
mov dl, byte [0x100f9024]
mov ecx, dword [edi]
call fcn.10020790
cmp dword [0x100f96cc], 6
mov dword [ebp - 8], eax
je 0x1005a941
movss xmm1, dword [0x100f0568]
movzx ecx, al
mov edx, dword [0x100fc34c]
movd xmm0, ecx
mov ecx, eax
cvtdq2ps xmm0, xmm0
shr ecx, 8
movzx ecx, cl
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm1
movss dword [ebp - 0x18], xmm0
movd xmm0, ecx
lea ecx, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, edx
mulss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
movd xmm0, eax
mov eax, dword [edx]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
jmp 0x1005a962
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x3f800000
mov dword [ebp - 0x20], 0x3f800000
mov dword [ebp - 0x1c], 0x3f800000
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp dword [0x100f96cc], 6
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
jne 0x1005ab32
mov ecx, dword [0x1017deb0]
xor edx, edx
mov eax, dword [ecx]
mov dword [ebp - 0x41], 0xafa7b2e4
mov dword [ebp - 0x3d], 0xabaaaca2
mov dword [ebp - 0x39], 0xa2bea4bd
mov esi, dword [eax + 0x2c]
mov dword [ebp - 0x35], 0x100b9a2
mov al, dl
sub al, 0x40
xor byte [ebp + edx - 0x41], al
inc edx
cmp edx, 0xe
jb 0x1005a9a3
push 1
lea eax, [ebp - 2]
mov byte [ebp - 0x32], 0
push eax
lea eax, [ebp - 0x41]
push eax
call esi
cmp byte [ebp - 2], 0
mov esi, eax
je 0x1005aa1f
movzx ecx, byte [0x100f98e6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [0x100f98e4]
mov edx, dword [esi]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, ah
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
call dword [edx + 0x28]
mov ecx, dword [0x1017deb0]
xor edx, edx
mov eax, dword [ecx]
mov dword [ebp - 0x31], 0xb5aca4e4
mov dword [ebp - 0x2d], 0xb3b6a4a9
mov dword [ebp - 0x29], 0xbea7a1
mov esi, dword [eax + 0x2c]
mov byte [ebp - 0x25], 1
mov al, dl
sub al, 0x40
xor byte [ebp + edx - 0x31], al
inc edx
cmp edx, 0xb
jb 0x1005aa45
push 1
lea eax, [ebp - 3]
mov byte [ebp - 0x25], 0
push eax
lea eax, [ebp - 0x31]
push eax
call esi
cmp byte [ebp - 3], 0
mov esi, eax
je 0x1005ab32
test bl, bl
je 0x1005aae1
cmp byte [0x100f94f4], 0
je 0x1005aae1
call fcn.10011d80
mov ebx, eax
call fcn.10011d80
mov dword [ebp - 8], eax
call fcn.10011d80
movss xmm2, dword [0x100f0568]
sub esp, 0xc
movzx ecx, al
mov eax, dword [ebp - 8]
shr ebx, 0x10
shr eax, 8
movd xmm1, ecx
movzx ecx, bl
movzx eax, al
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
mulss xmm0, xmm2
movss dword [esp + 8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
jmp 0x1005ab2b
movzx eax, byte [ebp - 6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
movd xmm0, eax
mov eax, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
movzx ecx, ah
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov byte [0x1017dec9], 1
push 1
lea ecx, [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
lea eax, [ebp - 8]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
cmp byte [0x100f96d4], 0
mov byte [0x1017dec9], 0
je 0x1005abfc
mov eax, dword [edi]
mov ecx, dword [0x100fc320]
mov edx, dword [eax + 0x1b0]
mov eax, dword [ecx]
and edx, 0xfff
push edx
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
xor ebx, ebx
nop
test esi, esi
je 0x1005abfc
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1005abda
cmp dword [eax + 0x14], 0x14f
jne 0x1005abda
mov dword [ebp - 8], esi
lea ecx, [esi + 4]
mov byte [0x1017dec9], 1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x28]
call eax
lea eax, [ebp - 8]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
mov ecx, dword [0x100fc320]
mov edx, dword [esi + 0x1b4]
and edx, 0xfff
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
inc ebx
mov esi, eax
cmp ebx, 0xa
jl 0x1005ab90
cmp byte [0x100f96ac], 0
je 0x1005ac3e
mov ecx, dword [edi]
call fcn.1000eb10
test eax, eax
je 0x1005ac3e
lea ecx, [eax + 4]
mov dword [ebp - 8], eax
mov byte [0x1017dec9], 1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x28]
call eax
lea eax, [ebp - 8]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
mov bh, byte [ebp - 1]
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x1005a812
cmp byte [ebp - 1], 0
je 0x1005ac88
mov ecx, dword [0x100fc35c]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0x3f800000
mov dword [ebp - 0x20], 0x3f800000
mov eax, dword [ecx]
mov dword [ebp - 0x1c], 0x3f800000
call dword [eax + 0x18]
movss xmm0, dword [0x100f06a8]
comiss xmm0, dword [0x100f969c]
jbe 0x1005acac
mov ecx, dword [0x100fc34c]
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f96b4], 0
je 0x1005accf
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8