Function at 0x1004a590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x54], eax
mov eax, 8
push edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], 0x22343247
mov dword [ebp - 0x34], 0x232e35
call fcn.1007cd80
mov eax, esp
lea esi, [ebp - 0x37]
mov ecx, eax
sub esi, eax
mov edx, 6
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x47
mov byte [ecx - 1], al
sub edx, 1
jne 0x1004a5d8
mov ecx, esp
push 0
push ecx
mov byte [ecx + 6], dl
mov eax, dword [0x100e8994]
mov edx, dword [ebp - 0x54]
mov ecx, edx
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [0x100e8994]
push eax
call esi
mov ecx, dword [0x100e8960]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x1004aa1e
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x24]
call edx
test al, al
jne 0x1004aa1e
mov eax, dword [0x100e8ffc]
cmp esi, dword [eax]
je 0x1004aa1e
movsd xmm0, qword [0x100ea790]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
movsd qword [ebp - 0x38], xmm1
lahf
test ah, 0x44
jp 0x1004a678
mov ecx, esi
call fcn.1007ae50
test al, al
jne 0x1004aa1e
movsd xmm1, qword [ebp - 0x38]
movsd xmm0, qword [0x100ea7a0]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x1004a6a2
mov ecx, esi
call fcn.1007ae50
test al, al
jne 0x1004a6a2
mov eax, dword [0x100e8ffc]
cmp esi, dword [eax]
jne 0x1004aa1e
mov edx, 1
mov dword [ebp - 0x2c], 0x156d
mov dword [ebp - 0x30], edx
lea eax, [edx + 1]
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x2b]
xor ecx, ecx
mov dword [ebp - 0x48], esi
mov eax, 1
sub edi, esi
lea edx, [ecx + esi]
mov esi, eax
sub esi, ecx
mov cl, byte [ebp - 0x2c]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1004a6d4
mov eax, dword [ebp - 0x48]
mov edx, 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0x542d
mov byte [eax + edx], 0
lea eax, [edx + 1]
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x2b]
xor ecx, ecx
mov dword [ebp - 0x58], esi
mov eax, 1
sub edi, esi
lea edx, [ecx + esi]
mov esi, eax
sub esi, ecx
mov cl, byte [ebp - 0x2c]
nop dword [eax]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1004a720
mov esi, dword [ebp - 0x58]
mov eax, 1
mov edx, eax
mov dword [ebp - 0x34], 0x6319
mov dword [ebp - 0x38], edx
mov byte [esi + eax], 0
lea eax, [edx + 1]
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x33]
xor ecx, ecx
mov dword [ebp - 0x40], esi
mov eax, 1
sub edi, esi
lea edx, [ecx + esi]
mov esi, eax
sub esi, ecx
mov cl, byte [ebp - 0x34]
nop dword [eax + eax]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1004a770
mov esi, dword [ebp - 0x40]
mov eax, 1
mov edi, dword [ebp - 0x44]
push ecx
mov dword [esp], 0
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x54]
push esi
mov esi, dword [ebp - 0x54]
mov ecx, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x2c]
mov eax, dword [esi]
push ecx
mov dword [esp], 0
mov ecx, esi
push dword [ebp - 0x58]
mov eax, dword [eax + 0x20]
fstp dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x2c]
mov eax, dword [esi]
push ecx
mov dword [esp], 0
mov ecx, esi
push dword [ebp - 0x48]
mov eax, dword [eax + 0x20]
fstp dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
xor esi, esi
fstp dword [ebp - 0x2c]
call fcn.1007ae50
test al, al
je 0x1004a7fc
movsd xmm0, qword [0x100ea798]
jmp 0x1004a810
mov ecx, dword [ebp - 0x50]
call fcn.1007ae50
test al, al
jne 0x1004a83c
movsd xmm0, qword [0x100ea7a8]
call fcn.1007ce50
mov edx, eax
mov ecx, edx
shr ecx, 8
movzx esi, cl
movzx ecx, dl
shl ecx, 8
or esi, ecx
mov ecx, edx
shr ecx, 0x10
and edx, 0xff000000
shl esi, 8
movzx eax, cl
or esi, eax
or esi, edx
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x474]
call eax
mov ecx, dword [0x100e8968]
movss xmm0, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
movss xmm4, dword [ebp - 0x3c]
movss xmm1, dword [ecx + 0x10]
movss xmm3, dword [ebp - 0x38]
movss xmm5, dword [ebp - 0x34]
movss xmm6, dword [ebp - 0x2c]
movss xmm7, dword [ebp - 0x4c]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [0x100f15f0]
ucomiss xmm0, xmm1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
movss dword [ebp - 0x28], xmm4
movss dword [ebp - 0x24], xmm3
lahf
movss dword [ebp - 0x20], xmm5
movss dword [ebp - 0x1c], xmm6
movss dword [ebp - 0x18], xmm7
movss dword [ebp - 8], xmm1
test ah, 0x44
jp 0x1004a9af
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1004a995
mov ecx, dword [edi]
xor eax, eax
mov esi, dword [edi + 0xc]
test ecx, ecx
je 0x1004a8d9
mov eax, dword [ecx]
test eax, eax
je 0x1004a8d7
mov eax, dword [eax]
jmp 0x1004a8d9
xor eax, eax
dec edx
add edx, esi
test eax, eax
je 0x1004a8f4
mov eax, dword [eax]
test eax, eax
je 0x1004a8ea
mov eax, dword [eax]
jmp 0x1004a8ec
xor eax, eax
test eax, eax
je 0x1004a8f4
mov eax, dword [eax]
jmp 0x1004a8f6
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov dword [ebp - 0x68], 0
mov eax, dword [eax + ecx*4]
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm2, dword [eax + 0x10]
subss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax + 0x14]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x2c], xmm2
sqrtss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x68], xmm0
subss xmm5, dword [ebp - 0x40]
movss xmm1, dword [ebp - 0x68]
subss xmm3, xmm7
subss xmm4, xmm6
mov dword [ebp - 0x78], 0
mulss xmm5, xmm5
mulss xmm3, xmm3
mulss xmm4, xmm4
addss xmm3, xmm4
addss xmm3, xmm5
movss dword [ebp - 0x2c], xmm3
sqrtss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x78], xmm0
comiss xmm1, dword [ebp - 0x78]
ja 0x1004aa1e
mov ecx, dword [0x100e8968]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1004aa1e
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x1004a9af
mov dword [edi + 0xc], 0
mov edx, dword [edi + 0x10]
movss xmm0, dword [ecx + 0x10]
mov ecx, dword [edi + 8]
movss dword [0x100f15f0], xmm0
lea eax, [edx + 1]
cmp ecx, eax
ja 0x1004a9d7
push ecx
mov ecx, edi
call fcn.1004ab30
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
lea eax, [ecx - 1]
and dword [edi + 0xc], eax
lea eax, [ecx - 1]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 4]
add esi, edx
and esi, eax
cmp dword [ecx + esi*4], 0
jne 0x1004aa03
push 0x24
call fcn.1007ba14
mov ecx, dword [edi + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + esi*4]
movups xmm0, xmmword [ebp - 0x28]
mov eax, dword [ebp - 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
inc dword [edi + 0x10]
lea esp, [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret 4