Function at 0x40fad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46ed48]
movss xmm0, dword [0x45b808]
push ebx
mov ebx, eax
mov dword [ebp - 8], ebx
comiss xmm0, dword [ebx + 0x1c44]
ja 0x40fe61
cmp dword [ebx + 0x1c40], 0
jne 0x40fb3f
movaps xmm0, xmmword [str.Abbb]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x3532280d
mov byte [ebp - 0x3c], 0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x13
jb 0x40fb17
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x3c], 0
push eax
call fcn.00409a20
mov dword [ebx + 0x1c40], eax
add esp, 4
mov eax, dword [0x46ed48]
movss xmm2, dword [ebx + 0x10]
movss xmm1, dword [ebx + 0x14]
mulss xmm2, dword [0x45b810]
or dword [eax + 0x1a88], 0x10
mulss xmm1, dword [0x45b810]
mov dword [eax + 0x1ad4], 0
mov dword [eax + 0x1ad8], 0
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm1
mov dword [ebp - 0x24], 0x7f7fffff
mov dword [ebp - 0x20], 0x7f7fffff
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [eax + 0x1ac4], xmm0
mov eax, dword [0x46ed48]
movss xmm2, dword [ebx + 0x10]
movss xmm1, dword [ebx + 0x14]
mulss xmm2, dword [0x45b81c]
or dword [eax + 0x1a88], 1
mulss xmm1, dword [0x45b81c]
mov dword [eax + 0x1aa0], 0x3f000000
movss dword [eax + 0x1a98], xmm2
mov dword [eax + 0x1aa4], 0x3f000000
movss dword [eax + 0x1a9c], xmm1
mov dword [eax + 0x1a8c], 1
lea eax, [ebp - 0x10]
movss xmm0, dword [ebx + 0x151c]
addss xmm0, xmm0
push eax
push 1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebx + 0x1520]
addss xmm0, xmm0
movss dword [ebp - 0xc], xmm0
call fcn.00411260
movaps xmm0, xmmword [0x45b930]
add esp, 8
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x292e3411
xor ecx, ecx
mov byte [ebp - 0x3c], 0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x13
jb 0x40fc33
push edi
push 0xc1347
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x3c], 0
push 0
push eax
call fcn.00404670
mov edi, dword [ebx + 0x19d4]
add esp, 0xc
sub edi, 1
js 0x40fe51
push esi
nop dword [eax + eax]
mov eax, dword [ebx + 0x19dc]
mov esi, dword [eax + edi*4]
cmp byte [esi + 0x7a], 0
je 0x40fe47
cmp esi, dword [esi + 0x2f8]
jne 0x40fe47
test dword [esi + 8], 0x80000
jne 0x40fe47
mov ecx, dword [esi]
mov edx, ecx
cmp ecx, 0xffffffff
jae 0x40fcc6
mov bl, byte [edx]
test bl, bl
je 0x40fcbb
cmp bl, 0x23
jne 0x40fcb5
cmp byte [edx + 1], bl
je 0x40fcbb
inc edx
cmp edx, 0xffffffff
jb 0x40fca5
mov ebx, dword [ebp - 8]
cmp ecx, edx
jne 0x40fe1d
mov eax, dword [esi + 8]
test eax, 0x4000000
je 0x40fd16
mov bh, 0x31
mov byte [ebp - 0x11], 0
mov bl, 0x41
mov byte [ebp - 0x19], bh
mov ch, bl
mov byte [ebp - 0x11], 0
mov cl, 0x61
mov al, 0x19
mov dl, 0x5e
mov ah, 0x44
xor cl, bh
xor ch, bh
mov dh, 0x18
mov byte [ebp - 0x17], cl
xor al, bh
mov byte [ebp - 0x13], ch
xor dl, bh
mov byte [ebp - 0x18], al
xor bl, bh
mov byte [ebp - 0x16], dl
xor ah, bh
mov byte [ebp - 0x15], bl
xor dh, bh
mov byte [ebp - 0x14], ah
mov byte [ebp - 0x12], dh
lea ecx, [ebp - 0x18]
jmp 0x40fe1a
test eax, 0x400
je 0x40fdb6
mov dl, 0x48
mov dword [ebp - 0x3b], 0x56b6b48
mov dword [ebp - 0x37], 0x5262129
xor eax, eax
mov dword [ebp - 0x33], 0xa3d262d
mov word [ebp - 0x2f], 0x3a29
mov byte [ebp - 0x2d], 0
xor byte [ebp + eax - 0x3a], dl
inc eax
cmp eax, 0xd
jae 0x40fd53
mov dl, byte [ebp - 0x3b]
jmp 0x40fd44
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x3a]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40fd80
test dl, dl
je 0x40fd7c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40fd80
add ecx, 2
add eax, 2
test dl, dl
jne 0x40fd60
xor eax, eax
jmp 0x40fd85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40fdb6
movaps xmm0, xmmword [0x45b960]
xor ecx, ecx
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x3c], al
nop dword [eax]
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0xf
jb 0x40fda0
mov byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x4b]
jmp 0x40fe1d
mov byte [ebp - 0x28], 0x42
mov cl, 0x17
xor cl, byte [ebp - 0x28]
mov al, 0x6a
xor al, byte [ebp - 0x28]
mov bl, 0x36
mov byte [ebp - 0x27], al
mov ch, bl
mov byte [ebp - 0x26], cl
mov dl, 0x2c
mov cl, byte [ebp - 0x28]
mov ah, 0x2b
mov byte [ebp - 1], 0x26
mov dh, 0x2e
mov al, byte [ebp - 1]
mov bh, 0x27
xor al, cl
mov byte [ebp - 2], 0x6b
mov byte [ebp - 0x1f], al
xor dl, cl
mov al, byte [ebp - 2]
xor bl, cl
xor ah, cl
mov byte [ebp - 0x1d], 0
xor ch, cl
mov byte [ebp - 0x25], dl
xor dh, cl
mov byte [ebp - 0x22], ch
xor bh, cl
mov byte [ebp - 0x24], bl
xor al, cl
mov byte [ebp - 0x23], ah
mov byte [ebp - 0x21], dh
lea ecx, [ebp - 0x27]
mov byte [ebp - 0x20], bh
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], 0
mov ebx, dword [ebp - 8]
cmp dword [ebx + 0x1c38], esi
lea eax, [ebp - 0x10]
push eax
sete al
mov dword [ebp - 0x10], 0
push 0
movzx eax, al
push eax
push ecx
mov dword [ebp - 0xc], 0
call fcn.004335a0
add esp, 0x10
sub edi, 1
jns 0x40fc70
pop esi
call fcn.00408ab0
push 1
call fcn.00410d70
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret